cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Translate the entire conversation x

Reload WRS files without restarting Method Server?

Constantine
17-Peridot

Reload WRS files without restarting Method Server?

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!


Vilia (my company) | GitHub | LinkedIn
2 REPLIES 2

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
PTC

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.


Vilia (my company) | GitHub | LinkedIn
Announcements
Top Tags