Author |
Message
|
visasimbu |
Posted: Wed Jan 27, 2010 3:36 am Post subject: Adding userdefined jar file in message broker |
|
|
 Disciple
Joined: 06 Nov 2009 Posts: 171
|
We can call external jar file from our java compute node by placing in /var/mqsi folder.
Can i know what is advantage of using the external jar in message broker. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Jan 27, 2010 5:39 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
broker_new |
Posted: Wed Jan 27, 2010 6:51 am Post subject: |
|
|
 Yatiri
Joined: 30 Nov 2006 Posts: 614 Location: Washington DC
|
The question is not specific, would you please elaborate more on it? _________________ IBM ->Let's build a smarter planet |
|
Back to top |
|
 |
visasimbu |
Posted: Wed Jan 27, 2010 9:04 pm Post subject: |
|
|
 Disciple
Joined: 06 Nov 2009 Posts: 171
|
We have the option to create our own class and function and make it as bar file. This bar file can be accessed by the javacompute node using shared class loader (workpath/shared-classes/).
Here we have the one more option to place our jar file is deploy into EG directly. What is the need to place JAR file in the Shared folder.
Anyone know about the purpose of it...
Thank you. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Jan 28, 2010 5:11 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Every last piece of information you need to answer your own question is in the below link, which I have already given you.
mqjeff wrote: |
http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac37125_.htm |
|
|
Back to top |
|
 |
broker_new |
Posted: Thu Jan 28, 2010 5:25 am Post subject: |
|
|
 Yatiri
Joined: 30 Nov 2006 Posts: 614 Location: Washington DC
|
Quote: |
Anyone know about the purpose of it... |
You can achieve one requirement in many ways.
in your case if you really want to make use of the java classes you can either place the jar file at the location specified in infocenter or you can deploy it along with the message flows.
The advantage of placing it in shared-classes folder is you can call it from multiple brokers, if you deploy it in one broker you may not call it from other broker instance _________________ IBM ->Let's build a smarter planet |
|
Back to top |
|
 |
mqmatt |
Posted: Thu Jan 28, 2010 8:45 am Post subject: |
|
|
 Grand Master
Joined: 04 Aug 2004 Posts: 1213 Location: Hursley, UK
|
If in doubt, deploy your JAR inside a BAR and don't use shared-classes.
That way it's accessible from, and can be managed using, standard broker tools. |
|
Back to top |
|
 |
|