Author |
Message
|
visasimbu |
Posted: Sun Nov 08, 2009 1:38 am Post subject: I want to know how to add external jar in wmb. |
|
|
 Disciple
Joined: 06 Nov 2009 Posts: 171
|
am created my own java program and am converted into jar file. i want to know how to link that jar to my flow. Actually am placed my jar file in C:\Documents and Settings\All Users\ApplicationData\IBM\MQSI\SharedClasses. Eventhough flow unable to load that jar file.. i dont want to add my jar file in bar file..(if i added it in bar file it was working..)... and tell me wat is LILPATH....???
please anyone help me... If possible send the answer to my mail id also visasimbu@gmail.com ... looking for ur answers.... |
|
Back to top |
|
 |
visasimbu |
Posted: Sun Nov 08, 2009 1:54 am Post subject: |
|
|
 Disciple
Joined: 06 Nov 2009 Posts: 171
|
Hi all...
In my program am getting classnotfount exception... and also i put my jarfiles in javabuildpath and also in sharedclass folder also.. i dont know what i missed... (If i added my jar file in bar file that program works fine..)
my broker name is WBRK61_DEFAULT_BROKER
exuction group name is POC1.
please help me....  |
|
Back to top |
|
 |
smdavies99 |
Posted: Sun Nov 08, 2009 3:28 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
There are a number of the Sample Flows that use .jar files. Why not try them?
They will give you some insight into the use of Java in Broker.
There are also numerous posts in this forum that discuss using .jar files. Take a look at them as well. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
Vitor |
Posted: Sun Nov 08, 2009 5:00 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
smdavies99 wrote: |
There are also numerous posts in this forum that discuss using .jar files. Take a look at them as well. |
You might also want to look at the New section in this forum, which explains that double posting is considered rude!
http://www.mqseries.net/phpBB2/viewtopic.php?t=51495 _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Nov 09, 2009 5:44 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Did you consider restarting Broker? |
|
Back to top |
|
 |
visasimbu |
Posted: Tue Nov 10, 2009 8:40 pm Post subject: |
|
|
 Disciple
Joined: 06 Nov 2009 Posts: 171
|
sorry vitor... posting two times is not my intentional.. am new to this forum.. i dont where to post and all.. thats why.... now am able to manage..
Thank you mqjeff... after restarting broker it was working fine... but i have many execution group(under one broker) each one handling different system... so if i place my project in one of my execution group. i cant simply restart the broker.
Without restarting broker any other solution is there..? |
|
Back to top |
|
 |
joebuckeye |
Posted: Wed Nov 11, 2009 7:07 am Post subject: |
|
|
 Partisan
Joined: 24 Aug 2007 Posts: 365 Location: Columbus, OH
|
As far as I know in dealing with jar files you have two options:
1) put the jar file in the shared classes directory and then restart the BROKER to pick up any changes
- OR -
2) put the jar file in the bar file and deploy the bar, the changes will be picked up when the bar file is deployed
So we only put 3rd party, rarely changing jar files in our shared classes directory, like log4j and Oracle JDBC jars.
Application jars go into the bar files as we don't want to restart the broker for every jar file change. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Nov 11, 2009 7:21 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
There is option 3: Put the jar files on the classpath.
But that is essentially equivalent to option 1 in that it also requires a Broker restart.
The only way to convince the broker to reload any of the classloaders other than the EGShared classloader is to restart the JVM.
You can see if mqsireload on the EG will accomplish the same. But I don't think it does. |
|
Back to top |
|
 |
visasimbu |
Posted: Fri Nov 13, 2009 10:16 pm Post subject: |
|
|
 Disciple
Joined: 06 Nov 2009 Posts: 171
|
Thank you joebuckeye.
ok mqjeff.. can you tell..
1) how to restart JVM.
2)how to do mqsireload ? |
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Nov 13, 2009 11:49 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
visasimbu wrote: |
Thank you joebuckeye.
2)how to do mqsireload ? |
The Information Centre will tell you everything you need to know about mqsireload. There is a link at the top of the page. That place is a goldmine of information about Broker.  _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
|