Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
What are some best practices for packaging and deploying custom Java into a Windchill environment?
I am used todeveloping packaged groupings of java code for deployment as JAR files, so I'm surprised to see pretty much everything "exploded" into one giant "codebase" directory in Windchill.
Should my deployment strategy for custom Windchill code avoid the use of JAR files for deployment, and if so, what is the reasoning?
I ALWAYS build into and then deploy as a jar and explode it on the server using the unjar and copy tasks in Apache ANT which is already in Windchill and is like UNIX makefiles on steroids.Can you tell me more about "Copy Tasks"? I have been looking for an Ant task that will install tasks and register them for SOAP
Sorry to be late on this, but I'm having trouble with this same issue. I'm trying to execute my jar from a JSP under codebase/com/mycompany. I put my jar into codebase/lib, but I still cannot get the jar to execute. What is the relative path to a jar living in codebase/lib from a JSP in codebase/com?
My jar is executing a rather lengthy export function using Info Engine so I'd prefer for it to execute on the server.
In Reply to Jess Holle:
Well the underlying question is really what you're trying to invoke where?
Do you want to run some Java on the server? Or on the client?
I'm not sure how long the process will take on the server, within Tomcat or not. I'd like to get it running so I can benchmark it. I know that it takes longer than I'd like running off the client. But then, I'm trying to run from within Arbortext Editor and over a VPN connection. That creates more overhead. When I just run the jar outside of Editor, it's not as bad, but I still think the process would be better executed serverside in any capacity.
I could just run it on the server, but I'd like to use JSP so the user has a familiar interface to start the process.
My process really has no other tie to Windchill other than trying to utilize the tomcat install as a front-end. Would it be better or is it possible to deploy war files on the tomcat installation within Windchill? I'm wondering if it wouldn't be easier to build a seprate servlet that just executes the jar, thereby not involving Windchill at all.
