Skip to main content
18-Opal
September 26, 2025
Question

Reload WRS files without restarting Method Server?

  • September 26, 2025
  • 2 replies
  • 462 views

Version: Windchill 13.0

 

Use Case: Updating a custom WRS domain.


Description:

Hello All,

 

I need to do quite a lot of trial-and-error on my custom WRS domain, mainly manipulating .js files. Restarting MS every time to pick up my changes is annoying.

 

Since those scripts are interpreted by Nashorn anyway, I thought... maybe there's some magic trick (e.g. calling some MBean method) to reload them without restarting MS every time?

 

Thanks!

2 replies

Catalina
Community Moderator
October 2, 2025

Hi @Constantine 

Thank you for your question. 

Your post appears well documented but has not yet received any response. I am replying to raise awareness. Hopefully, another community member will be able to help.

Also, feel free to add any additional information you think might be relevant.

 

Best regards,

Catalina | PTC Community Moderator
18-Opal
October 3, 2025

At the end of the day I didn't find a good solution, so I fired up my Java debugger and moved the code from JS files into Java classes instead. This way I can do trial and error on my OData endpoints without restarting the server thanks to JVM code hot swapping. The latter has its own limitations, but it takes away 90% of the pain associated with restarting the MS.

10-Marble
October 6, 2025

Hi @Constantine 

Its great to know what you have found some approach . I am interested to know  how did you achieved it in the java classes . can  you please elaborate about this JVM code hot swapping approach