Skip to main content
5-Regular Member
April 4, 2017
Solved

Dev improvement with rest API import without tomcat restart

  • April 4, 2017
  • 2 replies
  • 3008 views

Hello everyone, I'm writing a script with REST calls in order to automatize our extension development. I want it to export some files, delete extensions and reimport them into thingworx. So until now everything works fine.

It seems after refresh the mashups are indeed being updated but my classes are not. I mean, let's say I want to add a new service and a new mashup within my extension. I build and use my script, I can see the new mashups but I can't see my new service.

In order to see it, I need to do a tomcat reboot.

The problem is the tomcat reboot takes about 4-6min in my case (some security configurations) and I want it to appear without doing the tomcat reboot.

How can I load my new classes in thingworx?

PS: If I import my new extension using TWX UI, I can see that my extension is indeed appearing with my new service, so maybe I need to do another REST call?

Best answer by CarlesColl

Hi Elie,

Extensions Updates with java classes needs a Tomcat restart in order to refresh, that's mandatory.

Extensions Updates with UI changes doesn't needs a Tomcat restart, but of course it may need a browser refresh.

Carles.

2 replies

20-Turquoise
April 4, 2017

Hi, does the extension major version change when you upgrade it (in the metadata file)?

emadar5-Regular MemberAuthor
5-Regular Member
April 5, 2017

Hi, no it doesn't, this is for development purpose so I'm still working on the same version.

But actually, even though the import UI it doesn't work, it was probably a mistake then.

1-Visitor
April 5, 2017

Hi Elie,

Extensions Updates with java classes needs a Tomcat restart in order to refresh, that's mandatory.

Extensions Updates with UI changes doesn't needs a Tomcat restart, but of course it may need a browser refresh.

Carles.