| Author | 
		  Message
		 | 
		
		  | paatchu | 
		  
		    
			  
				 Posted: Mon Apr 02, 2007 1:33 am    Post subject: XA transaction from JAVA.? | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 07 Sep 2006 Posts: 32
  
  | 
		  
		    
			  
				I have few doubts.
 
1) Can the XA transactions can be manipulated just with JAVA MQ Base class.?
 
2) javax.transaction.xa.* & javax.sql.XADataSource; were actually JTA.?
 
 
pls give some light on this subject pls. _________________ Poetry with Programming | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | BenR | 
		  
		    
			  
				 Posted: Mon Apr 02, 2007 2:03 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Acolyte
 
 Joined: 31 Jan 2006 Posts: 60 Location: Hursley, UK 
  | 
		  
		    
			  
				| The base Java classes allow WMQ to be transaction manager for an XA transaction involving WMQ and a supported database. For example, you could write code to consume a message and update a database table; if the database update failed, the transaction would be backed out and the message would be rolled back on to a queue. No external transaction manager is required (or, for that matter, supported). | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Mon Apr 02, 2007 2:35 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				As far as I remember the only external TM's supported are 
 
- Mainframe IBM TM's like CICS (IMS?) etc...
 
 - WAS : Websphere Application Server  (using J2EE and JTA)
 
 - WebLogic (using J2EE and JTA)
  
 
 
I hope somebody from Big Blue can correct me and add a few more.    _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | BenR | 
		  
		    
			  
				 Posted: Mon Apr 02, 2007 2:37 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Acolyte
 
 Joined: 31 Jan 2006 Posts: 60 Location: Hursley, UK 
  | 
		  
		    
			  
				From base Java, none of the above  
 
 
With JMS it was WAS and WebLogic, as of last friday it's a bit different. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Mon Apr 02, 2007 2:39 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				
   
	| BenR wrote: | 
   
  
	From base Java, none of the above  
 
 
With JMS it was WAS and WebLogic, as of last friday it's a bit different. | 
   
 
 
 
Thanks for the update Ben. Can you please provide a link to the press release? _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | BenR | 
		  
		    
			  
				 Posted: Mon Apr 02, 2007 2:45 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Acolyte
 
 Joined: 31 Jan 2006 Posts: 60 Location: Hursley, UK 
  | 
		  
		    
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | paatchu | 
		  
		    
			  
				 Posted: Mon Apr 02, 2007 7:27 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 07 Sep 2006 Posts: 32
  
  | 
		  
		    
			  
				We're trying to use XA-transaction with our JAVA code in the following way...
 
 
1) If we STOP the queue manager manually( to test), our server will continously listening, and when the Q-Mgr is active... will Re-connec t to the Quemanager and continue the transaction..
 
 
But the problem we're facing is that...
 
 
When we manually stop the Qmgr & try to re-connect it, the QMgr shows AMQ8041 & AMQ 7018,saying that the Process is not complete.!
 
 
How this scenario could be avoided.?
 
Or what are the points to take care,when we're using XA-Transaction.? _________________ Poetry with Programming | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |