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

Server side extension + thridparty library import

SOLVED
Highlighted
Newbie

Server side extension + thridparty library import

Hi Guys,

I am wondering about best practice when using thirdparty libraries in server extensions.

I used to import the library into TOMCAT/webapps/Thingworx/WEB-INF/lib and just having it in my classpath during compile time (so the extension is light), but it enforces managing the server manually (deploy the library in the Tinhgworx lib dir) and I do not want to do it.

I know that external jars can be somehow included into extension jar (unpacked into the extension jar) but I am having trouble with appropriate ant script for acheving it.

Can someone give me a hint on the ant script or maybe suggest some other approach?

Thanks in advance & Regards,

Jacek

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Server side extension + thridparty library import

I am answering my own question:

I've included third party jar in the build.xml of the extension so it has been included next to extension jar in the zip file and reference the library in the metadata.xml under ThingPackage node.

1 REPLY 1

Re: Server side extension + thridparty library import

I am answering my own question:

I've included third party jar in the build.xml of the extension so it has been included next to extension jar in the zip file and reference the library in the metadata.xml under ThingPackage node.