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 » Has anyone swnt message from WMQI to a BPC process

Post new topic  Reply to topic
 Has anyone swnt message from WMQI to a BPC process « View previous topic :: View next topic » 
Author Message
pfaulkner
PostPosted: Tue Apr 19, 2005 11:27 am    Post subject: Has anyone swnt message from WMQI to a BPC process Reply with quote

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
View user's profile Send private message AIM Address
jefflowrey
PostPosted: Tue Apr 19, 2005 11:31 am    Post subject: Reply with quote

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
View user's profile Send private message
pfaulkner
PostPosted: Tue Apr 19, 2005 1:04 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
prasadpav
PostPosted: Mon May 23, 2005 4:55 am    Post subject: Reply with quote

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
View user's profile Send private message
JLRowe
PostPosted: Mon May 23, 2005 6:36 am    Post subject: Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

There was a thread about this in the workflow forum:

http://www.mqseries.net/phpBB2/viewtopic.php?p=94409&highlight=#94409

You can invoke the WMQI flow directly as a JMS service. There are 2 patterns, 2-way invoke or 1-way invoke followed by a receive.
Back to top
View user's profile Send private message Send e-mail
prasadpav
PostPosted: Tue May 24, 2005 8:50 am    Post subject: Reply with quote

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
View user's profile Send private message
prasadpav
PostPosted: Tue May 24, 2005 8:51 am    Post subject: Reply with quote

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
View user's profile Send private message
prasadpav
PostPosted: Wed May 25, 2005 8:17 am    Post subject: Reply with quote

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
View user's profile Send private message
JLRowe
PostPosted: Wed May 25, 2005 8:39 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Has anyone swnt message from WMQI to a BPC process
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.