|   | 
	 
  
    | 
RSS Feed - WebSphere MQ Support
 | 
RSS Feed - Message Broker Support
 |   
 
  
	     | 
	 | 
   
 
  
	|  .Net: Transactional Get with System.Transaction or WCF | 
	« View previous topic :: View next topic »  | 
   
  
  	
	  
		
		
		  | Author | 
		  Message
		 |  
		
		  | mfrenzel | 
		  
		    
			  
				 Posted: Thu Oct 25, 2007 7:24 am    Post subject: .Net: Transactional Get with System.Transaction or WCF | 
				     | 
			   
			 
		   | 
		 
		
		   Newbie
 
 Joined: 25 Oct 2007 Posts: 3
  
  | 
		  
		    
			  
				Hello,
 
 
I try to implement a service which is able to get and put WMQ messages using server binding executing
 
in a distributed transaction with for example oralce.
 
 
The examples in IBM's guide still use com+ (SWC) .Net 1.1 style. I like to use at least .Net 2.0
 
system.transaction transaction support, better WCF transaction support. 
 
 
I succeeded with Sys.Transaction and WCF in the PUT scenario. Even if I use
 
WCF's declarative transaction support and no manual transaction controlling code in the
 
MQ layer (syncpoints,backout,commit).
 
 
But in the get Scenario I am not able to get it working. I tried this without success:
 
 
a) WCF declarative transaction, with no syncpoint
 
b) system transaction, with no syncpoint
 
c) system transaction (with EnterpriseInteroperationOption.Full), with no syncpoint
 
d) system transaction, with syncpoint
 
 
In every case the message was retrieved also inside the transaction block the transaction was aborted through an
 
exception. Even if I did not closed the queue!
 
 
Only controlling the MQ transaction manually worked, with
 
 
 	a) open queue with syncpoint
 
	b) do get
 
	c) If (Exception) then backout
 
	d) else close Queue (with impliziet commit)
 
 
Does someone have a transactional example working based on .Net 2.0 or 3.0 for both put and get?
 
 
Any hints?
 
 
Regards
 
Martin | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Thu Oct 25, 2007 8:04 am    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
			  
				Is .NET 2.0 supported with the MQ .NET API yet?
 
 
Are you doing the right things to use the external transaction control? _________________ I am *not* the model of the modern major general. | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | mfrenzel | 
		  
		    
			  
				 Posted: Thu Oct 25, 2007 11:57 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		   Newbie
 
 Joined: 25 Oct 2007 Posts: 3
  
  | 
		  
		    
			  
				Yes, I think .Net is officially supporting .Net 2.0 since 6.0.2.2. 
 
 
System.Transaction is one of the important new features of .Net 2.0!
 
 
Of course WCF declarative Transaction are not officially supported. But I guess under the hood they use the same transactional modell.... | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | Vitor | 
		  
		    
			  
				 Posted: Fri Oct 26, 2007 12:01 am    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| mfrenzel wrote: | 
   
  
	| Yes, I think .Net is officially supporting .Net 2.0 since 6.0.2.2.  | 
   
 
 
 
I imagine .Net is officially supporting .Net!    
 
 
More seriously, has IBM actually announced (somewhere I've clearly missed) that WMQ is now compliant with .Net 2.0? If so, any chance of a link? _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | mfrenzel | 
		  
		    
			  
				 Posted: Fri Oct 26, 2007 12:16 am    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		   Newbie
 
 Joined: 25 Oct 2007 Posts: 3
  
  | 
		  
		    
			  
				http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg27010275
 
 
 
>The 32-bit version of the .NET framework versions 1.1 and 2.0 are both 
 
supported for use with Windows 64-bit operating systems. One of
 
these versions must be installed if you wish to write .NET applications.
 
 
By default, applications built using .NET Framework 2.0 can run as either 
 
32-bit or 64-bit depending on your operating system. However, because 
 
WebSphere MQ supports 32-bit applications only, if you are using a 64-bit 
 
operating system, applications must be built with the platform explicitly 
 
set to x86, so that they will run as 32-bit applications on 64-bit Windows.< | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | Vitor | 
		  
		    
			  
				 Posted: Fri Oct 26, 2007 12:21 am    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				Thanks for the link    _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		 
		
		  | 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
  | 
  		 
	   
	 | 
   
 
  	 | 
	  |