Author |
Message
|
zpat |
Posted: Fri Jan 21, 2011 5:29 am Post subject: How to set the classpath for an execution group? |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
I would like to be able to specify the Java classpath for a particular execution group's JVM, without affecting other execution groups.
I can't see this option in the mqsichangeproperties (ComIbmJVMManager) command.
Anyone know a way to achieve this?
Can it be done using the jvmSystemProperty option to set a name/value pair? |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Jan 21, 2011 5:35 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Remind me again if you're at Broker v7?
If not, you likely can't. |
|
Back to top |
|
 |
zpat |
Posted: Fri Jan 21, 2011 6:17 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Sorry, WMB 6.1 in this case. AIX 5.3 |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Jan 21, 2011 6:19 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
New broker, new workpath, new EG, new Shared-Classes, new CLASSPATH in shell that issues mqsistart... |
|
Back to top |
|
 |
zpat |
Posted: Fri Jan 21, 2011 6:55 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
New QM, new HA resource, new WLM class, new filesystem, new DNS alias, new broker userid, new DB2 database and so on - I think not somehow!! |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Jan 21, 2011 7:13 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Well.
There are, of course, other solutions. You can indeed deploy the JARS you need on the CLASSPATH to the EG in question, using a non-message flow BAR file. Then the only EG that has the JARS in it have these classes on their classpath.
You could include a JCN in whatever flow needs these classes, that manually loads the relevant classes.
Neither of these will allow you to *remove* things from the classpath of a given EG.
You can certainly *try* setting -cp using mqsichangeproperties and -n jvmSystemProperty... but that's as likely to cause things to halt and catch fire as not. |
|
Back to top |
|
 |
zpat |
Posted: Fri Jan 21, 2011 7:25 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
It's actually a properties file that I am trying to add, but only for this one E.G. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Jan 21, 2011 7:31 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
zpat wrote: |
It's actually a properties file that I am trying to add, but only for this one E.G. |
Stick it in a JAR file. Stick that in a BAR file... deploy it.
Or reference it by full path in whatever needs to use it, and put it in a known location on the broker system. |
|
Back to top |
|
 |
zpat |
Posted: Fri Jan 21, 2011 9:07 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Thanks, I've done the last option. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Jan 21, 2011 9:18 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
There might also be a corresponding -D property that could be set to indicate where the properties file is. Depends, again, on what's using it. |
|
Back to top |
|
 |
|