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 » IBM MQ Java / JMS » How to Set the Trigger Depth Dynamically in JMS/Java

Post new topic  Reply to topic
 How to Set the Trigger Depth Dynamically in JMS/Java « View previous topic :: View next topic » 
Author Message
harshvajra
PostPosted: Sun Nov 25, 2007 8:04 pm    Post subject: How to Set the Trigger Depth Dynamically in JMS/Java Reply with quote

Apprentice

Joined: 23 Apr 2007
Posts: 46
Location: India

Hello all,
I have a requirement to set the trigger type as "Depth" and trigger depth as changable value.
Would any one guide me how to set the trigger depth level dynamically using JMS or Java.
Any suggessions/solutions are welcome.
Thanks in advance.
_________________
Failure is not a defeat,it's just a delay, Walk TALL
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Mon Nov 26, 2007 1:07 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

This is a bad requirement.

You can only do this with PCF.

It will also be very very unreliable.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
harshvajra
PostPosted: Mon Nov 26, 2007 3:15 am    Post subject: Reply with quote

Apprentice

Joined: 23 Apr 2007
Posts: 46
Location: India

Yes,
The way i was thinking would have made the requirement much complex,
anyways i have an idea for this req.

The no. of messages are changable for the trigger app to get triggered.
This can be achieved with the message priority.
All the messahes are set to default 0 and last message is set to 1 and trigger type should be set to every with trigger message priority 1.

let me try, I beleive this would definetly work.
_________________
Failure is not a defeat,it's just a delay, Walk TALL
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Mon Nov 26, 2007 3:47 am    Post subject: Reply with quote

Grand High Poobah

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

harshvajra wrote:
Yes,
The way i was thinking would have made the requirement much complex,
anyways i have an idea for this req.

The no. of messages are changable for the trigger app to get triggered.
This can be achieved with the message priority.
All the messahes are set to default 0 and last message is set to 1 and trigger type should be set to every with trigger message priority 1.

let me try, I beleive this would definetly work.


You definitely don't want trigger every because of the resource drag it is and especially in JAVA you have no way of controlling the number of JVMs created. You can trigger on priority 1 but you should then run it as trigger 1st, make the app configurable and spawn off as many instances as you think safe. You shut the app down when there is no more trigger message available...(i.e. with priority 1)
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Mon Nov 26, 2007 9:15 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

What are you *actually* trying to do?

And why?

maybe you can do this with grouping instead.
_________________
I am *not* the model of the modern major general.
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 » IBM MQ Java / JMS » How to Set the Trigger Depth Dynamically in JMS/Java
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.