ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to set the classpath for an execution group?

Post new topic  Reply to topic
 How to set the classpath for an execution group? « View previous topic :: View next topic » 
Author Message
zpat
PostPosted: Fri Jan 21, 2011 5:29 am    Post subject: How to set the classpath for an execution group? Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Fri Jan 21, 2011 5:35 am    Post subject: Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Fri Jan 21, 2011 6:17 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Sorry, WMB 6.1 in this case. AIX 5.3
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Jan 21, 2011 6:19 am    Post subject: Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Fri Jan 21, 2011 6:55 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Fri Jan 21, 2011 7:13 am    Post subject: Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Fri Jan 21, 2011 7:25 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Fri Jan 21, 2011 7:31 am    Post subject: Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Fri Jan 21, 2011 9:07 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Thanks, I've done the last option.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Jan 21, 2011 9:18 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to set the classpath for an execution group?
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.