Author |
Message
|
pfaulkner |
Posted: Tue Apr 19, 2005 11:27 am Post subject: Has anyone swnt message from WMQI to a BPC process |
|
|
Master
Joined: 18 Mar 2002 Posts: 241 Location: Colorado, USA
|
I have been able to send a message from a WMQI BPC process successfully but now we need to use the same BPC process to call another WMQI flow and then get a reply back.
Can do everything up to getting the reply back.
Just wondering if anyone else is doing anything similar and how they handled a request response scenario from BPC to WMQI.
thanks |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Apr 19, 2005 11:31 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
What is BPC? WSF Business Process Choreographer/Container?
If you were going from WBIMB to WSF, I would say that you would use Aggregation to collect your reply.
But I don't know how to do the same in WSF. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
pfaulkner |
Posted: Tue Apr 19, 2005 1:04 pm Post subject: |
|
|
Master
Joined: 18 Mar 2002 Posts: 241 Location: Colorado, USA
|
Business Process Choreographer.
The problem is within Choreographer (collecting the reply) and not WMQI. |
|
Back to top |
|
 |
prasadpav |
Posted: Mon May 23, 2005 4:55 am Post subject: |
|
|
 Centurion
Joined: 03 Oct 2004 Posts: 142
|
Hi pfaulkner,
I'm also doing the same thing of calling WMQI from Websphere process choreographer and waiting for the response. I just started doing this. Were you able to send request to WMQI and get a response in Process choreographer? I have few questions around setting up the partner links. This is how i'm planning to implement the request and response activities. For request, i'll use invoke activity will call a partner link, lets say "RequestPartner". I create RequestPartner as a JMS service. For response, i create another partner service say "ResponsePartner", for which I create EJB skeleton out of portType and message definitions. Then I create MDB from this EJB skeleton. My Pick activity in the main Process, will receive the message from ResponsePartner. WMQI will write response messages to the response queue as usual. I'll configure my MDB to read the responses from this response queue. For correlating responses, I use correlation set in Main Process. My main process is a long running, asynchronous process. Is it this way you implemented? or is there a better way? Any suggestions are greatly appreciated. I still need to test this, i've few problems around getting my complex message type parsed.
Cheers,
Prasad |
|
Back to top |
|
 |
JLRowe |
Posted: Mon May 23, 2005 6:36 am Post subject: |
|
|
 Yatiri
Joined: 25 May 2002 Posts: 664 Location: South East London
|
|
Back to top |
|
 |
prasadpav |
Posted: Tue May 24, 2005 8:50 am Post subject: |
|
|
 Centurion
Joined: 03 Oct 2004 Posts: 142
|
Thanks JLRowe. This article is quite helpful. I'm still stuck at small problem though . When I used invoke activity to write a message to real MQ queue, i can see my Current Depth increased after this invoke activity, but when I browse for the message using "amqsbcg", I can't see the message. This is the output which I get.
AMQSBCG0 - starts here
**********************
MQOPEN - 'TESTQ'
No more messages
MQCLOSE
MQDISCmessage
I presume it is something to do with commit of the message. I've set the Transactional Behaviour of invoke to all possible values (commit after, participates, create own).
Anyone had this problem?
Cheers
Prasad |
|
Back to top |
|
 |
prasadpav |
Posted: Tue May 24, 2005 8:51 am Post subject: |
|
|
 Centurion
Joined: 03 Oct 2004 Posts: 142
|
I forgot to mention, my business process is a long-running process (interruptible). And I have the check-box checked at the main process level to make the process long-running. |
|
Back to top |
|
 |
prasadpav |
Posted: Wed May 25, 2005 8:17 am Post subject: |
|
|
 Centurion
Joined: 03 Oct 2004 Posts: 142
|
Hi all,
I tried Asynchronous one-way invoke request to put message to a queue. My outgoing message must be JMS Text message inorder for message broker to read the message properly. But since i'm using complex type derived from importing a schema during message definition, I need to do serialize/deserialize in order for complex type to be represented as JMS text message. Do I need to go for generating JAXB objects in order to do this or can this be achievable from WPC itself without doing this? I'm not very good at java...so, whoever have achieved in successfully sending complex message to MQ queue as JMS text message, please share your experiences. The article:
http://www.mqseries.net/phpBB2/viewtopic.php?p=94409&highlight=#94409 explains about creating JMSobjectMessage but not JMStextMessage.
I also experimented (with no success ), in exactly same way, as that mentioned in the article: "Send a simple JMS message inside a BPEL process without using Java code".
http://www-128.ibm.com/developerworks/websphere/library/techarticles/0411_marrazzo/0411_marrazzo.html
The comment in Conclusion section did said that for complex types, some coding needs to be done, but didn't said what needs to be done.
Please help....my deadlines are close by, so any suggestions are greatly appreciated.
Thanks alot,
Prasad |
|
Back to top |
|
 |
JLRowe |
Posted: Wed May 25, 2005 8:39 am Post subject: |
|
|
 Yatiri
Joined: 25 May 2002 Posts: 664 Location: South East London
|
WSADIE should generate beans that represent the complex types, if the schema is not supported then you need to write serializers/deserializers. I don't think you can register the ser/deser with the BPEL engine, so you may have to invoke as a java snippet or via a java bean/EJB service using the WSIF api. |
|
Back to top |
|
 |
|