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 » Triggering MQ Queues using JMS

Post new topic  Reply to topic
 Triggering MQ Queues using JMS « View previous topic :: View next topic » 
Author Message
srinivasraom
PostPosted: Thu Oct 05, 2006 6:40 pm    Post subject: Triggering MQ Queues using JMS Reply with quote

Apprentice

Joined: 18 May 2006
Posts: 31

Hi

I want to associate a MQ trigger to a JMS queue. But as per JMS1.1 specification it stated that "JMS does not provide a mechanism for
triggering the execution of the client.

I came to know that using JMS interfaces and IBM MQ implementations, it is possible to do this.
Can anyone tell me, how can i do this.

Regards
Srinivas
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Oct 05, 2006 6:43 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You can create a JMS Listener, if you aren't in an App Server environment.

You can create a Message Driven Bean, if you are in an App Server.

You can use standard MQ triggering to start a Java Virtual Machine that runs a class that uses JMS.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
srinivasraom
PostPosted: Thu Oct 05, 2006 6:57 pm    Post subject: Triggering MQ Queues using JMS Reply with quote

Apprentice

Joined: 18 May 2006
Posts: 31

Thanks for the reply.
I am not using any application server environment.
In JMS/IBM MQ API, i havent saw any class/interface with the name JMSListener. Please help me in knowing how to write this JMSListener. It will be a great help if i can get any sample for this.

Regards
Srinivas
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Oct 05, 2006 7:30 pm    Post subject: Reply with quote

Grand High Poobah

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

Lookup the javax.jms.MessageListener interface. Goes as far back as J2EE 1.3 if not earlier still.

You can as well look into triggering and running a java JVM.
Lookup the manual about triggering and information from other sources such as
the NY user group
And more specifically How to use mq triggering in the right java environment

Enjoy
_________________
MQ & Broker admin
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 » IBM MQ Java / JMS » Triggering MQ Queues using JMS
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.