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 » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » WPS/bpc - sync SOAP/JMS

Post new topic  Reply to topic
 WPS/bpc - sync SOAP/JMS « View previous topic :: View next topic » 
Author Message
MaheshPN
PostPosted: Thu Jun 22, 2006 1:51 pm    Post subject: WPS/bpc - sync SOAP/JMS Reply with quote

Master

Joined: 21 May 2003
Posts: 245
Location: Charlotte, NC

Hi,
I am trying to setup a scenario where, Invoke activity sends a SOAP/JMS message to an WMQ queue and waits for the reply to come before proceeding. This is an actually synchronous implementation of SOAP/JMS.
Even though it looks simple, I am not able to setup the system to work synchronously.
In the assembly diagram, I will have only import and no export as it is a sync and I expect the message to be returned to some q.
When I run the application, it sends out a message to an external Q and I am not sure, where to send message back as there is no listener running on WPS to receive it(make sense bcos there are no exports or deployed code did not created any reply Q).
It may be my lack of knowledge in how to setup the infrastructure. If somebody worked on it, please share. Or if u guys know of any link that gives an instructions on how to model a invoke activity with sync SOAP/JMS that would be great.


Thanks,
-Mahesh
Back to top
View user's profile Send private message
vennela
PostPosted: Thu Jun 22, 2006 3:08 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Mahesh:

I have worked with SOAP/JMS samples in WSADIE and WBISF and I am not able to find the link. Back then, SOAP/JMS implementation was pretty straight forward and you could specify the ReplyToQ and all in the WSDL editor. Now this ReplyToQ is to be one of the BPE queues and I believe it was BPEInputQueue. The trick is to use Correlation sets to identify which response is for which process instance id. The samething works for Pick activites.

In WPS, this is done little differently. I haven't done any SOAP/JMS implementations, but I expect the concept to remain the same.

JMS is not a synchronous protocol. It is always asynch. You can have a suedo syhnch type of implementation. So you cannot avoid having to have an interface to represent your SOAP/JMS implementation. Once you do that, I think everything else should fall in place. You can then wire the interfaces in the assembly editor.

But to your question, the key is to use correlation sets. PM me your email id and I'll try to send you a working example over the weekend.

Here are some links. They may be old though.



http://www-128.ibm.com/developerworks/websphere/library/techarticles/0603_tan/0603_tan.html

http://www.mqseries.net/phpBB2/viewtopic.php?t=24138&highlight=soap+jms

http://www.redbooks.ibm.com/redbooks/SG246303/wwhelp/wwhimpl/js/html/wwhelp.htm

http://publib.boulder.ibm.com/infocenter/dmndhelp/v6rxmx/topic/com.ibm.websphere.nd.doc/info/ae/ae/twsf_prsjwe.html
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vennela
PostPosted: Thu Jun 22, 2006 3:29 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Got the prefect example for you.

http://publib.boulder.ibm.com/bpcsamp/processInteraction/jms.html
Back to top
View user's profile Send private message Send e-mail Visit poster's website
MaheshPN
PostPosted: Fri Jun 23, 2006 6:22 am    Post subject: Reply with quote

Master

Joined: 21 May 2003
Posts: 245
Location: Charlotte, NC

Thanks Vennela.
I have gone through that examples. That example implements jms binding where we send the pure JMS message. I am looking for implementing the SOAP/JMS(Webservice binding).
In JMS binding we don't need the corelation set as we define one more queue on the WPS which will keep track the instances based on the MQ co-relationID.
As you mentioned, we need correlation set for implementing the Async Soap/jms. When I say Async, there will be 2 one way interfaces.
One to send the message to an external Q and one for reply message.
On BPC we will have either receive or receive choice(PICK).
The above method works because, we have an receive activity and an 'export' in the assembly diagram.
I am trying to see, whether I can implement the same with twoway interface.
I found from IBM that, it was not supported in WAS 5 but not sure with WAS 6.
"Web Services Invocation Framework (WSIF) supports the request/response pattern by allowing asynchronous request/response operations. In this mode of operation, the client puts the request message as part of one transaction, and carries on with the thread of execution. The response message is then handled by a different thread, with a separate transaction. Note that SOAP/JMS is not supported for request/response pattern. "

Thanks,
-Mahesh
Back to top
View user's profile Send private message
vennela
PostPosted: Sun Jun 25, 2006 7:30 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

And with WAS6, WSIF is deprecated I guess.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » WPS/bpc - sync SOAP/JMS
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.