Guest
Welcome login


TIBCOmmunity > Products > ActiveMatrix SOA > Resources
Home   Members Communities
Conversations () Resources () Blogs ()

Resources

Up to Resources in ActiveMatrix SOA

Use external jars in your Java component's implementation logic (here we use the Java component to create a queue on EMS)

VERSION 1 Published

Created on: May 23, 2009 12:05 PM by Setumadhav - Last Modified:  May 23, 2009 12:18 PM by Setumadhav

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.

Referencing external jars-EMS example.zip
You are currently not logged in. To be able to access attachments, please login.
Average User Rating
(0 ratings)







Jun 5, 2009 9:57 AM Click to view Alex Garrison's profile Alex Garrison says:

 

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.

 

May 19, 2010 4:16 PM Click to view Samuel Griek's profile Samuel Griek says: in response to: Alex Garrison

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?

More Like This

  • Retrieving data ...