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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Translate the entire conversation x

What changes require a restart?

AG_10348570
2-Explorer

What changes require a restart?

I am using Windchill PDMLink Release 12.0 and Datecode with CPS 12.0.2.13

How would I know whether or not a change to code in my codebase requires a restart of windchill to deploy? For instance, some customizations/changes can be deployed when windchill is up and will take effect and others require windchill to be down. So how do I tell whether or not deployable code requires a restart?
ACCEPTED SOLUTION

Accepted Solutions
HelesicPetr
22-Sapphire II
(To:AG_10348570)

Hi @AG_10348570 

If you use an IDE and debug mode for coding, your ide is connected to the method server.

Each compilation tries to deploy the modification to the vm memory and a change is instantly applied but there are several changes that require file class deploy and restart.

 

  • Adding a public method in the class 
  • Removing a method in the class
  • Renaming a method in the class

All this changes need the restart

HelesicPetr_0-1756462284807.png

With following information the change is applied

HelesicPetr_3-1756462351659.png

With following information restart is needed

HelesicPetr_2-1756462336894.png

PetrH

View solution in original post

4 REPLIES 4

Similar discussion - "Is it possible to modify the code and without a restart of method server see the new reflected changes?": https://community.ptc.com/t5/Windchill-Customization/Is-it-possible-to-modify-the-code-and-without-a-restart-of/td-p/52028 

Generally yes, code changes will require restart since the class might have been loaded into the JVM memory already. There are some exceptions. 

https://www.ptc.com/en/support/article/CS35160?source=search That article talks about property files changes (like site.xconf changes). If the classes are new and not invoked yet, likely no restart is needed. If you are updating existing classes with modification, I would restart. If you are doing JSP changes, you can set tomcat to run in development mode. Any modifications will cause the JSP to be recompiled which is handly not having to clear work cache all the time.

https://www.ptc.com/en/support/article/CS30396?source=search

 

HelesicPetr
22-Sapphire II
(To:AG_10348570)

Hi @AG_10348570 

If you use an IDE and debug mode for coding, your ide is connected to the method server.

Each compilation tries to deploy the modification to the vm memory and a change is instantly applied but there are several changes that require file class deploy and restart.

 

  • Adding a public method in the class 
  • Removing a method in the class
  • Renaming a method in the class

All this changes need the restart

HelesicPetr_0-1756462284807.png

With following information the change is applied

HelesicPetr_3-1756462351659.png

With following information restart is needed

HelesicPetr_2-1756462336894.png

PetrH

Hello @AG_10348570

 

It looks like you have some responses from some community members. If any of these replies helped you solve your question please mark the appropriate reply as the Accepted Solution. 

Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.

Thanks,
Vivek N.
Community Moderation Team.

Announcements
Top Tags