ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » SOAP nodes participating in XA coordination

Post new topic  Reply to topic
 SOAP nodes participating in XA coordination « View previous topic :: View next topic » 
Author Message
GeneRK4
PostPosted: Sun Jan 05, 2014 11:08 pm    Post subject: SOAP nodes participating in XA coordination Reply with quote

Master

Joined: 08 Jul 2013
Posts: 220

Hi,
I need some clarification in this new design.

I have two flows.

1st flow :
SOAP Input -->Compute -->SoapRequest

2nd flow :
SOAP Input -->Compute -->SoapReply

1st flow acts as a Webservice and it in-turn calls another Webservice.

Both are in HTTP transactions.

Now,if there are any issue that occurs in 2nd flow,whatever happened at first flow commited transaction should be reverted back.Both the flows have to be in XA-coordination.
Please clarify how to achieve this scenario with and without database in 1st flow..
Back to top
View user's profile Send private message
PEPERO
PostPosted: Mon Jan 06, 2014 7:52 am    Post subject: Reply with quote

Disciple

Joined: 30 May 2011
Posts: 177

In think since the SOAP protocol is not a transactional protocol, using an XA coordinator wouldn't handle your recoverable resources. I suggest you to use the MQ or either JMS protocols instead to use XA capabilities.
Even if using the appropriate protocol , when the first flow is run , the UOW would be completed and you've to make the recovery process yourself.
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Jan 06, 2014 8:23 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Depending on which version you are using, you could look at WS-Reliable Messaging:
http://pic.dhe.ibm.com/infocenter/wmbhelp/v8r0m0/topic/com.ibm.etools.mft.samples.wssecsamp.doc/doc/ws_rm_introduction.htm
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
sridhsri
PostPosted: Mon Jan 06, 2014 9:08 am    Post subject: Reply with quote

Master

Joined: 19 Jun 2008
Posts: 297

Are you sure it is WS Reliable Messaging? I thought one had to use WS Atomic Transaction for transaction coordination. I don't know if WS-AT is supported in broker.
Back to top
View user's profile Send private message
GeneRK4
PostPosted: Mon Jan 06, 2014 5:02 pm    Post subject: Reply with quote

Master

Joined: 08 Jul 2013
Posts: 220

PEPERO wrote:
In think since the SOAP protocol is not a transactional protocol, using an XA coordinator wouldn't handle your recoverable resources. I suggest you to use the MQ or either JMS protocols instead to use XA capabilities.
Even if using the appropriate protocol , when the first flow is run , the UOW would be completed and you've to make the recovery process yourself.


If the SOAP Client is Synchronous,it will be waiting for the reply from Server.
So,do you think whether the UOW would be completed still even in this case?
Back to top
View user's profile Send private message
GeneRK4
PostPosted: Mon Jan 06, 2014 5:04 pm    Post subject: Reply with quote

Master

Joined: 08 Jul 2013
Posts: 220

kimbert wrote:
Depending on which version you are using, you could look at WS-Reliable Messaging:
http://pic.dhe.ibm.com/infocenter/wmbhelp/v8r0m0/topic/com.ibm.etools.mft.samples.wssecsamp.doc/doc/ws_rm_introduction.htm


It looks like if there are any timeout failures,WS-Reliable messaging will retry with new sequence number.I think it does not match with my scenario because my scenario is we need rollback for committed transaction in first flow for any type of errors in second flow..Please correct me if I am wrong in this understanding,.
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Jan 07, 2014 2:55 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

No, I was wrong. WS-Reliable Messaging is not the answer to your problem.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
mgk
PostPosted: Tue Jan 07, 2014 3:03 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

If any exceptions are thrown in the First flow and they are allowed to propagate back to the Input node, then all transactional work done in Flow one will be rolled back. This means that Flow one can choose to throw an exception if Flow 2 returns an error or does not return at all (times out). But, Flow 2 is a separate transaction so you cannot do is link the two flows into one transaction as WS-AT is not supported in WMB/IIB.

What is your scenario here? What transactional work is being done by Flow one and Flow two?

Kind regards,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Back to top
View user's profile Send private message
GeneRK4
PostPosted: Tue Jan 07, 2014 3:22 am    Post subject: Reply with quote

Master

Joined: 08 Jul 2013
Posts: 220

A database update in Flow1 and another database update in flow2.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Jan 07, 2014 6:13 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

GeneRK4 wrote:
A database update in Flow1 and another database update in flow2.


And are your 2 flows so complex that they can't be rolled into one?
Or have flow 2 invoked as a subflow?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
GeneRK4
PostPosted: Tue Jan 07, 2014 5:08 pm    Post subject: Reply with quote

Master

Joined: 08 Jul 2013
Posts: 220

Not so complex...

I have a SOAPRequest node and it waits for the input from the second flow that starts with SOAPInput node and ends with SOAPReply node.
And after the first flow gets the reply from the second flow, it processes further and sends response to client.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » SOAP nodes participating in XA coordination
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.