| Author | 
		  Message
		 | 
		
		  | newbieToMB | 
		  
		    
			  
				 Posted: Fri Jul 14, 2006 10:01 am    Post subject: MB Classpath | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Fri Jul 14, 2006 2:05 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | newbieToMB | 
		  
		    
			  
				 Posted: Fri Jul 14, 2006 2:42 pm    Post subject: Document reference | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | newbieToMB | 
		  
		    
			  
				 Posted: Fri Jul 14, 2006 2:44 pm    Post subject: Other files like configuration files | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | newbieToMB | 
		  
		    
			  
				 Posted: Tue Jul 18, 2006 8:41 am    Post subject: Property files | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jbanoop | 
		  
		    
			  
				 Posted: Tue Jul 18, 2006 11:00 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | shrek | 
		  
		    
			  
				 Posted: Thu Jul 20, 2006 4:05 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |