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 » MB Classpath

Post new topic  Reply to topic
 MB Classpath « View previous topic :: View next topic » 
Author Message
newbieToMB
PostPosted: Fri Jul 14, 2006 10:01 am    Post subject: MB Classpath Reply with quote

Newbie

Joined: 23 May 2006
Posts: 6

What is the classpath hierachy for MB? If I wanted to place a configuration file in some directory and I have code that tries to find it on the classpath where do I update the classpath for MB so it can find it?

Is there certain directories ithat MB searches first? Does it start with the contents of the bar file, then shared-classes? Is there documentation on this?

What directory is recommended for placing property files? I would like the file to be editable. I have code that will reload it if changes are detected.

If I update a file in shared-classes do I need to restart the broker to pick up the changes? Say it is a jar file for some external code I am using.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Jul 14, 2006 2:05 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/as24996_.htm

Generally, if you have a Java program that relies on external jars and you update those external jars, you should expect to have to restart the JVM.

In the case of MB, each execution group has it's own JVM.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
newbieToMB
PostPosted: Fri Jul 14, 2006 2:42 pm    Post subject: Document reference Reply with quote

Newbie

Joined: 23 May 2006
Posts: 6

I am using MB V6 and a javaCompute node. So I don't have a PAR file. Does the documentation still apply but just replace PAR with BAR? All of my java code is in a bar file.
Back to top
View user's profile Send private message
newbieToMB
PostPosted: Fri Jul 14, 2006 2:44 pm    Post subject: Other files like configuration files Reply with quote

Newbie

Joined: 23 May 2006
Posts: 6

And what about configuration files. What directory are they supposed to reside in?

I placed the configuration file in the bar file, but my code that is looking for it on the classpath could not find it.

I placed it in the shared-classes dir but still did not find it.


I had to resort to configuring the path as a User Defined property and find it via full path.
Back to top
View user's profile Send private message
newbieToMB
PostPosted: Tue Jul 18, 2006 8:41 am    Post subject: Property files Reply with quote

Newbie

Joined: 23 May 2006
Posts: 6

Anyone have advise for what directory to place configuration files like property files so javaCompute node can access them via classpath?
Back to top
View user's profile Send private message
jbanoop
PostPosted: Tue Jul 18, 2006 11:00 pm    Post subject: Reply with quote

Chevalier

Joined: 17 Sep 2005
Posts: 401
Location: SC

Could you give us the line you are using for accessing the property file in java compute node ?

Could you also give us the path to the location where you store your properties file ?

Did you check it by running the same code (as in java compute node) as a java application and did it work ?

One option you could try would be to jar just the properties file alone and place the jar in the
C:\Documents and Settings\All Users\Application Data\IBM\MQSI\shared-classes

or equivalent directory and try running ...

Let us know how it goes.
Regards,
Anoop
Back to top
View user's profile Send private message Yahoo Messenger
shrek
PostPosted: Thu Jul 20, 2006 4:05 am    Post subject: Reply with quote

Acolyte

Joined: 19 Feb 2005
Posts: 61
Location: Gudivada,India

I think you should be able to do this as well...

Quote:
Create jar by exporting the required Java/.classpath/.project files and include jar in your bar file.


Thanks.[/quote]
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 » MB Classpath
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.