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 » Priority

Post new topic  Reply to topic
 Priority « View previous topic :: View next topic » 
Author Message
manika
PostPosted: Sun Jun 14, 2015 4:36 am    Post subject: Priority Reply with quote

Newbie

Joined: 14 Jun 2015
Posts: 2

Hi,

I have multiple messages in my request queue where i can find priority of messages, but those are individual XML messages. when i am using additional instances in to my flow ,i am able to store first message in to Environment variables and other messages are not able to store as those are in separate thread/instances.

I have used MQRFH2 to archive this, but i can see/store only first instances of message in my Environment and i am not able to see first message when second instances of message is arriving in to my flow.

Please suggest if any idea to store all messages in to environment which are coming as individual.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Sun Jun 14, 2015 5:33 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.

Is the 'priority' based upon MQ Message priority or some value in the XML data?

Storing messages in the Environment?
Every thread/instance will have its own Environment tree.
Are you talking about Shared Variables?

Personally, I think it is a bad idea.
How many messages do you have to read before you decide which one is 'top' priority? 5, 10, 50, 500, 50000?

If your sending apps can be modified then why not use the Priority feature in MQ to mark those that are important. Then if the Queue is setup with Priority ordering you won't have to do anything in Broker because MQ will deliver them in priority order for you.

Perhaps you could explain your requirement a bit better?
_________________
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
manika
PostPosted: Sun Jun 14, 2015 7:38 am    Post subject: Reply with quote

Newbie

Joined: 14 Jun 2015
Posts: 2

Is the 'priority' based upon MQ Message priority or some value in the XML data?

Ans : Priority is based on MQ message priority that i can set in MQMD,

Storing messages in the Environment? :

Ans :Yes i want to store all request messages in Environment for further processing.

Are you talking about Shared Variables?:

Ans : No i am not using any shared variables.

I have number of ( Max 1 lac) messages to decide the priority.

Queue is setting Priority before message is coming in to broker, but i need to store all messages(Individual messages) in to Environment as i need to compare and do the further integration, i have tried to store all request messages in to environment , but as i said previous messages are being lost ,when next message is coming/storing to environment.

Below steps are followed to archive this.

1: Set additional instances to my flow and deployed.
2: set Priority in MQMD while put messages from Queue
3: I have put 10's of messages at a time
4: first message comes to broker and storing in the Environment.
5: second message successfully stored but i lost my previous message as it is next instances of message.

Please suggest as i don't want to loose my previous messages while storing next messages.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Jun 14, 2015 8:05 am    Post subject: Reply with quote

Grand High Poobah

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

manika wrote:
Is the 'priority' based upon MQ Message priority or some value in the XML data?

Ans : Priority is based on MQ message priority that i can set in MQMD,

Storing messages in the Environment? :

Ans :Yes i want to store all request messages in Environment for further processing.

Are you talking about Shared Variables?:

Ans : No i am not using any shared variables.

I have number of ( Max 1 lac) messages to decide the priority.

Queue is setting Priority before message is coming in to broker, but i need to store all messages(Individual messages) in to Environment as i need to compare and do the further integration, i have tried to store all request messages in to environment , but as i said previous messages are being lost ,when next message is coming/storing to environment.

Your design is crazy and really requires a DB and process the messages off the database. If you need up to 100,000 messages to know in which order to process there is no way you can compare and hold them in the broker's environment ... There are multiple methods including broker cache ... but the most appropriate here looks like a DB!!!

Quote:
Below steps are followed to archive this.

1: Set additional instances to my flow and deployed.
2: set Priority in MQMD while put messages from Queue
3: I have put 10's of messages at a time
4: first message comes to broker and storing in the Environment.
5: second message successfully stored but i lost my previous message as it is next instances of message.

Please suggest as i don't want to loose my previous messages while storing next messages.

Review your design...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Sun Jun 14, 2015 8:30 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.

fjb_saper wrote:

Review your design...


Now that we have had some more details then I'm inclined to agree.

The batch size and the priority of a message in an unknown group of messages? currently you are just asking for trouble.
_________________
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
inMo
PostPosted: Mon Jun 15, 2015 4:57 am    Post subject: Reply with quote

Master

Joined: 27 Jun 2009
Posts: 216
Location: NY

As it seems to have gotten lost in the conversation:

Quote:
Every thread/instance will have its own Environment tree.


You can't expect to have 1 thread look at another thread's environment. Further, you cannot expect the environment tree to survive beyond the execution of the single instance/thread it is part of.

Quote:
Review your design...


That really seems like the best idea - there are multiple core issues with the design that has been presented.
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 » Priority
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.