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 » Reg : Sequencing Of Messages

Post new topic  Reply to topic
 Reg : Sequencing Of Messages « View previous topic :: View next topic » 
Author Message
Abhinay185127
PostPosted: Sat Jul 13, 2013 9:37 pm    Post subject: Reg : Sequencing Of Messages Reply with quote

Acolyte

Joined: 20 May 2013
Posts: 58

Hi all,

I am having a flow like this

SoapInput -> Compute1 -> SoapRequest -> Compute2 -> SoapReply

All nodes expect SoapInput are connected to a subflow that put messages in a queue. In the compute 1 i am generating a id and storing it in the environment. This number is going as one of the inputs whenever i am calling the subflow. The subflow puts messages in a queue.

There can me many threads active at one point of time and for each thread a id will be given as a input which will be same for all subflows.

How can i achieve sequencing of messages if diffrent instances are running.I saw various posts regarding grouping but in this case it can be a possibility that while putting messages in a queue in one of the subflows an error occur and in such cases there is a exception handler subflow to take care. But then how will i ensure group is complete.

If this is achieved then there is diffrent flow that take messages out of the MQ (group messages) and puts them in a file. All the messages from one Instance(one request) should be present in the file together and then all the messages from other instance. So sequencing between messages of diffrent instances has to be achieved.

Please give some pointers.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Sun Jul 14, 2013 12:52 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Please be more careful with your posts. This is a clear continuation of a previous thread.
If you don't like the answers you were given there please use that thread rather than re-posting the same question.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Abhinay185127
PostPosted: Sun Jul 14, 2013 12:54 am    Post subject: Reply with quote

Acolyte

Joined: 20 May 2013
Posts: 58

No basically i wanted to know more about the grouping mechanism of MQ here used for sequencing

So thought that should start as a new thread.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Sun Jul 14, 2013 3:51 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

so what have you learned from the MQ documentation about message groups?

- how to start a group?
- how to end a group?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Abhinay185127
PostPosted: Sun Jul 14, 2013 11:32 pm    Post subject: Reply with quote

Acolyte

Joined: 20 May 2013
Posts: 58

I am setting Group Id in the MQMD.
I am setting the MSG_IN_GROUP flag for the messages and for the last message I set the LAST_MSG_IN_GRP flag keeping the Group Id same in all the messages.

The problem is there can be a situation where one of the message inside subflow fails then how will i determine that which is the last message.
Back to top
View user's profile Send private message
Abhinay185127
PostPosted: Tue Jul 16, 2013 2:56 am    Post subject: Reply with quote

Acolyte

Joined: 20 May 2013
Posts: 58

Will this grouping mechanism work out in this scenario or should i go for something else.

Kindly give me some pointers.
Back to top
View user's profile Send private message
dogorsy
PostPosted: Sat Jul 20, 2013 12:44 am    Post subject: Reply with quote

Knight

Joined: 13 Mar 2013
Posts: 553
Location: Home Office

Abhinay185127 wrote:
Will this grouping mechanism work out in this scenario or should i go for something else.

Kindly give me some pointers.


POINTER: Read the documentation
Back to top
View user's profile Send private message
mqjeff
PostPosted: Sat Jul 20, 2013 3:17 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Where does MQ grouping come into this?

You are sending out a set of SOAP requests, either using HTTP or JMS.

JMS doesn't support MQ Grouping.

Either I don't understand what you're saying, or you don't understand how message flows handle multiple instances of a given flow.
Back to top
View user's profile Send private message
digoshc
PostPosted: Sat Jul 20, 2013 2:52 pm    Post subject: Reply with quote

Apprentice

Joined: 11 Jul 2013
Posts: 25

Hi mqjeff,

"Either I don't understand what you're saying, or you don't understand how message flows handle multiple instances of a given flow."

What do you mean by "how message flows handle multiple instances of a given flow" ? Could you please explain a little bit more?

Thank you,

Rodrigo.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Jul 21, 2013 2:01 am    Post subject: Reply with quote

Grand High Poobah

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

mqjeff wrote:
JMS doesn't support MQ Grouping.

I thought that JMS did not support message SEGMENTATION, but that is supported message GROUPING fine. Am I mistaken?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Sun Jul 21, 2013 7:54 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

digoshc wrote:
Hi mqjeff,

"Either I don't understand what you're saying, or you don't understand how message flows handle multiple instances of a given flow."

What do you mean by "how message flows handle multiple instances of a given flow" ? Could you please explain a little bit more?

Thank you,

Rodrigo.


How can I explain more when the problem is that I don't understand what you are asking?

I don't understand your question.

Please explain your question more.

Please explain what happens to a message flow when you deploy the flow with more than one instance.

Please explain how each instance of that message flow deals with the logical message tree.
Back to top
View user's profile Send private message
digoshc
PostPosted: Sun Jul 21, 2013 10:42 am    Post subject: Reply with quote

Apprentice

Joined: 11 Jul 2013
Posts: 25

Well, I couldn't understand what you mean by "how message flow handle multiple instances of a given flow". I know that the execution group(process) has control over the message flows(threads,TCBs). I can't see how a message flow has control over another flows since they are separeted threads and supposely, the execution group would have control over them.

I'm newer to Message Broker so I might not explain your 2 last questions correctly. But, I'm gonna try. I believe you are asking them as a tip to answer my doubt, right?

"Please explain what happens to a message flow when you deploy the flow with more than one instance."

In this case, there will be multiple threads per input node of that message flow. If we are using stateless message flows, we don't need to take are of anything. However, if there is any node in the message flow that keeps state(stateful), we need to syncronize access to the variables or information keeping state to avoid misleading situations.

"Please explain how each instance of that message flow deals with the logical message tree"

Each instance has its own copy of the logical message tree.
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 » Reg : Sequencing Of Messages
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.