|   | 
	 
  
    | 
RSS Feed - WebSphere MQ Support
 | 
RSS Feed - Message Broker Support
 |   
 
  
	     | 
	 | 
   
 
  
	|  JMS Trasaction | 
	« View previous topic :: View next topic »  | 
   
  
  	
	  
		
		
		  | Author | 
		  Message
		 |  
		
		  | techno | 
		  
		    
			  
				 Posted: Tue Apr 22, 2003 9:06 pm    Post subject: JMS Trasaction | 
				     | 
			   
			 
		   | 
		 
		
		   Chevalier
 
 Joined: 22 Jan 2003 Posts: 429
  
  | 
		  
		    
			  
				How do I include transaction strat and end in my stand-alone JMS program? I do not have application server?
 
 
I am getting reason-code 2121, in my case
 
 
qMgr.begin();
 
--------
 
--------
 
qMgr.backout();
 
 
Can you help me providing some links on this stuff?
 
 
 
Thanks
 
Shiva. | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | techno | 
		  
		    
			  
				 Posted: Tue Apr 22, 2003 9:08 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		   Chevalier
 
 Joined: 22 Jan 2003 Posts: 429
  
  | 
		  
		    
			  
				In above code, I do not have any database involved in it. I just have MQ.
 
Nothing else.
 
 
Thanks
 
Shiva. | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | vmcgloin | 
		  
		    
			  
				 Posted: Tue Apr 22, 2003 11:56 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		   Knight
 
 Joined: 04 Apr 2002 Posts: 560 Location: Scotland 
  | 
		  
		    
			  
				This appears to be just a warning. You may not need to use the MQBEGIN call.
 
 
   
	| Quote: | 
   
  
	2121  X'0849'  MQRC_NO_EXTERNAL_PARTICIPANTS 
 
An  MQBEGIN  call was issued to start a unit of work coordinated by the queue manager, but no participating resource managers have been registered with the queue manager. As a result, only changes to MQSeries resources can be coordinated by the queue manager in the unit of work. 
 
 
This reason code occurs in the following environments: AIX, HP-UX, OS/2, AS/400, Sun Solaris, Windows NT. 
 
 
Corrective action: If the application does not require non-MQSeries resources to participate in the unit of work, this reason code can be ignored or the  MQBEGIN  call removed. Otherwise consult your system support programmer to determine why the required resource managers have not been registered with the queue manager; the queue manager's configuration file may be in error. 
 
  | 
   
 
 | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | techno | 
		  
		    
			  
				 Posted: Wed Apr 23, 2003 10:55 am    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		   Chevalier
 
 Joined: 22 Jan 2003 Posts: 429
  
  | 
		  
		    
			  
				Can you clear me of 
 
 
qConnection.createQueueSession(transected, Session.AUTO_ACKNOWLEDGE)
 
 
When do I use transected= true ?
 
 
Thanks
 
Shiva. | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | techno | 
		  
		    
			  
				 Posted: Sun Apr 27, 2003 5:45 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		   Chevalier
 
 Joined: 22 Jan 2003 Posts: 429
  
  | 
		  
		    
			  
				I used session's commit and rollback.
 
Also did transacted = true.
 
 
This works fine.
 
 
May be, in case of just having MQ under transactions, only session's methods should be used, not of q-manager!
 
 
Am I right?
 
 
Thanks
 
Shiva. | 
			   
			 
		   | 
		 
		
		  | 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
  | 
  		 
	   
	 | 
   
 
  	 | 
	  |