|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Classpath for EGs |
« View previous topic :: View next topic » |
Author |
Message
|
goffinf |
Posted: Sun Jan 25, 2009 1:10 pm Post subject: Classpath for EGs |
|
|
Chevalier
Joined: 05 Nov 2005 Posts: 401
|
WBIMB v6.1
I have a number of JARs which are used by our custom nodes and declared in the CLASSPATH environment variable.
However, this CLASSPATH has become pretty long and recently I have noted a whole bunch of ClassNotFound exceptions when I attempt to add any more. I had thought that on XP (which is what we develop on) that this could be up to 8K and its no where near that length, but nonetheless its easy to demonstrate this behaviour by adding a few more characters and watching as the Event log fills up with errors !
I have read on this forum that the shared-classes folder is a place where required JARs can be placed. Does this mean that I won't need to include them in the CLASSPATH if I do that. I could put JARs which don't really change there I suppose (log4j, etc..).
If I use shared-classes does that mean that updated JARs are only seen after a broker restart or will an msqireload foran execution group be sufficient ? (I guess shared-classes are broker wide so perhaps there's a better way of defining JARs that are specific to an EG - see below).
I could also deploy them via a BAR but we run quite a few execution groups and they would all need most of them.
One of our resident IBM'ers told me that each execution group can declare its own CLASSPATH, but I can't find anything in the docs about how to do that. Does anyone know ?
All guidance appreciated.
Fraser. |
|
Back to top |
|
 |
mqjeff |
Posted: Sun Jan 25, 2009 1:56 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You should always use shared-classes over setting stuff on the CLASSPATH.
Yes, you don't need to include jars in shared-classes on the CLASSPATH.
Yes, I believe mqsireload is sufficient. It should restart the DFE process.
Any JAR that is going to change frequently should be deployed in a BAR file.
I'm not directly aware of any specific means to give each individual EG it's own CLASSPATH - that doesn't mean there isn't one, it just means I haven't ever had a need to look for one. You can define a different workpath for individual brokers, which gives them their own shared-classes. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|