Are there exceptions or ways to work around the above? Sure - but then you're basically going through "non-standard" / "unsupported" processes -- that is except for when you build your jar files outside of the above mentioned areas and instead place the jar file in ..../lib (instead of .../src), but then you still do the make_toolkit.ipl / build.sh piece to be in a "supported" process.
Not very clear with this reply1) I have link under menu, which calls Perl script. (So this is not a workflow, its only a link in UI, which executes Perl script)2) This Perl script executes java program using system("java -jar link.jar arg1 arg2 arg3")3) Does link.jar need to be built using make_toolkit.ipl ? OR even if I make it outside (in eclipse IDE) ,copy it in some place and execute this jar file using system command, will it work ? 4) I am generating link.jar using eclipse IDE, putting it in same location where iwperl is and executing it. It works fine. I did not need to use make_toolkit.ipl5) Is using make_toolkit.ipl optional ? Whats the difference between jar file created using make_toolkit.ipl and one created outside of TeamSite and then used in IWHOME/local/config/lib/content_center/customer_src/src/ location ?Thanks
but why go through the overhead of using Perl to invoke a system call to run java - why not create a Java / JSP CGI program and invoke it directly ( the JSP would [normally] go under .../web as opposed to .../src)
Does your Java code actually do anything with the TeamSite toolkits / perform any interactions with TeamSite - or is it some completely external standalone kind of thing?
You should not be putting anything into IWHOME/iw-perl/bin - that's a vendor location. You could put it any number of places that would be "ok", though putting it into .../lib and using make_toolkit.ipl would be the officially supported manner - so that it ends up within /iw-cc/...
The jar file would never be used within customer_src/src - that would be a "source" location (and in this case, the jar would be in customer_src/lib). The make_toolkit.ipl would put that jar file into ApplicationContainer/server/default/deploy/iw-cc.war/... and restart the jboss application to make it "part of the toolkit" (older versions of TeamSite would put it into IWHOME/httpd/webapps/... and restart tomcat). Again, that's the officially supported way to go.
Perl script is already in use with link, I am adding some changes to business logic
edition name and edition path is passed to jar file as arguments. Then files within this edition are checked. This code is invoked from link in TS UI, so does it qualify as interacting with TeamSite toolkit ? If no, then when does a code is considered to be interacting with TeamSite toolkit ?
I am putting code here just for the sake of convenience for now. I will move it to different dir, when code starts working without any issues
jar file is placed in customer_src/lib, which is then integrated into toolkit by make_toolkit.ipl.If jar file is placed in any other location, then make_toolkit.ipl will not find it and it will not become a part of TS toolkit. Stand alone Java classes are placed in customer_src/src location