|   | 
	 
  
    | 
RSS Feed - WebSphere MQ Support
 | 
RSS Feed - Message Broker Support
 |   
 
  
	     | 
	 | 
   
 
  
	|  WebSphere MQ publish/subscribe with JMS | 
	« View previous topic :: View next topic »  | 
   
  
  	
	  
		
		
		  | Author | 
		  Message
		 |  
		
		  | Sonal | 
		  
		    
			  
				 Posted: Tue Mar 31, 2009 1:36 am    Post subject: WebSphere MQ publish/subscribe with JMS | 
				     | 
			   
			 
		   | 
		 
		
		   Apprentice
 
 Joined: 20 Mar 2009 Posts: 45
  
  | 
		  
		    
			  
				Hi All,
 
 
I am trying to do WebSphere MQ publish/subscribe with JMS. I followed following steps:
 
 
Installed A Version 1.4.2 JDK is supplied in Prereqs directory of the WebSphere MQ V6.0 installation media
 
 
Added java and javac executables from this JDK to the operating system path
 
 
Change directory to the chosen working directory. For example:
 
C:
 
cd C:\Program Files\IBM\WebSphere MQ\Sonal
 
set CLASSPATH=%CLASSPATH%;.
 
 
Create and start a queue manager - host1/jmspubsub
 
Start the broker on the queue manager
 
Right-click the service called SYSTEM.BROKER and select Start to start the
 
WebSphere MQ publish/subscribe broker
 
 
Configure the queue manager for JMS publish/subscribe
 
runmqsc host1/jmspubsub < "C:\Program Files\IBM\WebSphere MQ
 
\Java\bin\MQJMS_PSQ.mqsc"
 
 
Set up a simple JMS provider:
 
Within the working directory, created the following
 
subdirectory: jms.provider
 
 
Within the working directory, create a file called JMSAdmin.config with the
 
following contents:
 
INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory
 
PROVIDER_URL=file:jms.provider
 
SECURITY_AUTHENTICATION=none
 
 
Use WebSphere MQ JMS Administration tool to configure JMS
 
Run the WebSphere MQ JMS Administration tool as follows:
 
 
"C:\Program Files\IBM\WebSphere MQ\Java\Bin\JMSAdmin.bat".
 
 
Here, its not showing the desired output:
 
The initial output is as follows:
 
5724-H72, 5655-L82, 5724-L26 (c) Copyright IBM Corp. 2002,2005. All Rights
 
Reserved.
 
Starting Websphere MQ classes for Java(tm) Message Service Administration
 
InitCtx>
 
Its showing following in cmd:
 
usage: java [options] class [args]
 
......
 
........
 
load java programming agent, see java.lang.instrument.
 
 
please help me to know why its not showing the "5724-H72, 5655-L82, 5724-L26 (c) Copyright IBM Corp. 2002,2005. All Rights
 
Reserved."?
 
 
Also, while installing jdk with prereq folder, it had asked me to overwrite the previously installed jsk...I chose "no"... should I'd chosen yes?
 
 
Please help!!
 
 
jms.provider | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | bruce2359 | 
		  
		    
			  
				 Posted: Tue Mar 31, 2009 5:30 am    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		    Poobah
 
 Joined: 05 Jan 2008 Posts: 9486 Location: US: west coast, almost. Otherwise, enroute. 
  | 
		  
		    
			  
				please help me to know why its not showing the "5724-H72, 5655-L82, 5724-L26 (c) Copyright IBM Corp. 2002,2005. All Rights Reserved."? 
 
I'm confused.  Did you receive this message? _________________ I like deadlines. I like to wave as they pass by.
 
ב''ה
 
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | Sonal | 
		  
		    
			  
				 Posted: Tue Mar 31, 2009 8:49 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		   Apprentice
 
 Joined: 20 Mar 2009 Posts: 45
  
  | 
		  
		    
			  
				No, its not showing this message. Thats the problem. 
 
Instead, its showing something like this in cmd:
 
 
usage: java [options] class [args]
 
......
 
........
 
load java programming agent, see java.lang.instrument. | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Wed Apr 01, 2009 5:41 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				What version of java are you using? _________________ MQ & Broker admin | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | Sonal | 
		  
		    
			  
				 Posted: Thu Apr 02, 2009 4:17 am    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		   Apprentice
 
 Joined: 20 Mar 2009 Posts: 45
  
  | 
		  
		    
		   | 
		 
		
		  | 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
  | 
  		 
	   
	 | 
   
 
  	 | 
	  |