A restart is not required, you can simply reload the package after placing the jar file in the code/jars directory of the package where you have created your java service. However, if you want the eclipse IDE to recognise your new classes then you will need to also add it the build path of the java project that was created automatically for you package. Add the view “package explorer” to your perspective. Then find your package postfixed with ‘[55555]’, right click and then select modify build path and make sure your jar file is added there too. That will allow you to use code completion and get the correct colouring in the editor.
Remember the java service is not compiled in your local project, but instead in the IS, when saving.
The advantage of using dynamically loaded jar files is that you don’t have to restart the server if it changes. This is really important if you want to avoid downtime when updating a server. The other advantage is that the jar file is only accessible to the package and hence reduces the risk of conflicts if using a fairly common jar file that may be used elsewhere but of different versions.
If you must reference a jar file statically then create a sub folder in your code/jars directory and name it “static”. Place the jar file into directory and obviously restart the server. This is often the case for drivers etc. as the calling code will search for it explicitly using the global class path and not locally. Also necessary if you want to be able to reference the jar file from a different package.
regards,
John.
#webMethods#jar#Integration-Server-and-ESB