| Author | 
		  Message
		 | 
		
		  | zigeesha | 
		  
		    
			  
				 Posted: Wed Sep 29, 2004 8:05 am    Post subject: use of MQBEGIN | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 16 Aug 2004 Posts: 32 Location: california 
  | 
		  
		    
			  
				HI all,
 
 
Can anyone explain the use of MQBEGIN ..and how I can use it in a java code.
 
 
Thx a lot
 
lakshmi | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | bower5932 | 
		  
		    
			  
				 Posted: Wed Sep 29, 2004 8:20 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA 
  | 
		  
		    
			  
				MQBEGIN is used in a two-phase commit environment to notify the queue manager that it will need to start a transaction involving multiple resources (ie, itself and a DB).   
 
 
There is a sample program at:
 
 
http://www.developer.ibm.com/tech/sampmq.html
 
 
It is called mqdb2log.java.  You might want to look at it. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | zigeesha | 
		  
		    
			  
				 Posted: Thu Sep 30, 2004 8:41 am    Post subject: how do i register the participating resource managers? | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 16 Aug 2004 Posts: 32 Location: california 
  | 
		  
		    
			  
				Hi ,
 
 
The example code  was very helpful .but again when i executed the program i had a exception with reason code 2121 .I went ahead to check the error messages which indicates that" no participating resource managers have been registered with the queue manager"
 
 
I am working on MQ v5.3 on Linux ..can iu plz suggest as to how i can define the participating resource managers to my Queue Manager....
 
 
lakshmi | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | kirani | 
		  
		    
			  
				 Posted: Thu Sep 30, 2004 8:49 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Jedi Knight
 
 Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA 
  | 
		  
		    
			  
				There is a chapter in System Admin Guide which explains in detail how to setup queue manager for 2-phase commit. _________________ Kiran
 
 
 
IBM Cert. Solution Designer & System Administrator - WBIMB V5
 
IBM Cert. Solutions Expert - WMQI
 
IBM Cert. Specialist - WMQI, MQSeries
 
IBM Cert. Developer - MQSeries
 
 
 | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Nigelg | 
		  
		    
			  
				 Posted: Thu Sep 30, 2004 11:52 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 02 Aug 2004 Posts: 1046
  
  | 
		  
		    
			  
				| The chapter that Kirani is referring to is CH 11 Transactional Support. A resource manager is defined to the qmgr acting as the transaction manager by adding an XAResource stanzas to qm.ini. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |