I would like to know the steps to copy a Java Service (Package A)to an another Package (Package B).
The problem is that I don’t know where to put the classe of my Java Service in the destination folder. I know that it’s in “packages\myPackageName\code\classes” but when I compile my service that uses this java service, it doesn’t find. I’ve got the following alert:
symbol : variable NSNodeHelper
location: class Capgemini_Test_Module
IData data = NSNodeHelper.getNodeInfo(nsname);
^
1 error
Thank you for your answers. If you want more explanations, tell me, I’ll try to explain my problem clearer.
Hi Chacha,
After copying the NSNodeHelper.class to the destination packages\myPackageName\code\classes" , did you reload the package myPackageName?
On a side note: You can directly invoke the Java service getNodeInfo in PkgA from any other Java service in other packageB without moving the class file to PackageB.
Hi bsingh,
Thank you for your answer. Yes I’ve already reload the package with the java class added. In fact I want this class in a specific package because this one will be loaded in different IS Server. In this way I will have to load one package instead of loading different packages.
That’s certainly an answer but not the greatest. Everyone gets so wrapped up in Java code that they forget that Integration Server uses other files to define services. The easiest way to move a service from one package to another is to use Developer to copy/paste or drag/drop the service. This will move all the files, including the node.ndf file (which defines the service) that you apparently have been missing.
If you must move things at the file level by hand, you’ll want a better understanding of the files involved before doing so.