Demonstrate how user can reference an external jar like the EMS jars in his/her java implementation. This sample takes takes the queue name from the user and creates the same on the EMS server the user specifies. The java implementation then pushes on 10 messages to the created queue. The java implementation is borrowed from the EMS samples. You can extend this method to use any jar. * The attached zip file has a webex recording, the readme with step by step instructions, the required projects). ** Ensure you have EMS installed on your machine.
I want to build my archive without these jars included and instead add these jars to the classpath using the tra file of the node hosting the service. How can this be done?
Thank you very much for the example, especially going the extra step of including a webex recording!
I was working on doing pretty much just what you provided in the example. My Java component is doing inline writes to a JMS destination.
Question: The resultant service assembly includes the jms.jar and tibjms.jar contents. Shouldnt these already be available in the runtime AMX environment? The grid already reads and writes to EMS destinations in the background, so it seems like the node classloader should already have the EMS jars. However when I remove the EMS jars from the service assembly I get classdefnotfound errors, so clearly it does seem to need these jars explicitly in the service assembly. Is there a workaround? I'm a little worried that I will have to keep updating the service assemblies to update these EMS jars.