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

Post new topic  Reply to topic
 OnMessageListener « View previous topic :: View next topic » 
Author Message
suri
PostPosted: Fri Aug 27, 2004 7:03 am    Post subject: OnMessageListener Reply with quote

Apprentice

Joined: 16 May 2004
Posts: 39
Location: NewYork

Is it possible to create on message listener with file system using JMS admin tool?

My requirement is, I need to get message from request Q and send replay to Response Q as a client dynamically.

If so how to create, can anyone help me.
Thanks in advance.
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Fri Aug 27, 2004 7:18 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The Using Java manual has specific code examples of how to create queue connections and queue destinations dynamically, without using JNDI at all.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
suri
PostPosted: Fri Aug 27, 2004 7:40 am    Post subject: Reply with quote

Apprentice

Joined: 16 May 2004
Posts: 39
Location: NewYork

Thank you, the Requesst and Response Q are remote queue's.
Back to top
View user's profile Send private message Send e-mail
gunter
PostPosted: Fri Aug 27, 2004 7:57 am    Post subject: Reply with quote

Partisan

Joined: 21 Jan 2004
Posts: 307
Location: Germany, Frankfurt

You can't read messages from a remote queue.
_________________
Gunter Jeschawitz
IBM Certified System Administrator - Websphere MQ, 5.3
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Aug 27, 2004 8:10 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Gunter is right, provided you know what you mean when you say "remote queue".

If you mean "a queue that is defined on a queue manager that is on a different machine than the client application", that is not a "remote queue". You will make a client connection to the remote queue manager, and the queue will be local.

If you mean "a queue that is defined on a queue manager that is different from the queue manager I am connected to", then Gunter is right. You can't get from those queues.

But again, the Using Java manual has specific code examples.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
suri
PostPosted: Fri Aug 27, 2004 9:00 am    Post subject: Reply with quote

Apprentice

Joined: 16 May 2004
Posts: 39
Location: NewYork

jefflowrey,
.......
If you mean "a queue that is defined on a queue manager that is on a different machine than the client application", that is not a "remote queue". You will make a client connection to the remote queue manager, and the queue will be local.
.....
This is my environment, my question is how to configure OnMessagelistener in client side.

Other question is, I have wls6.1 app server, can I create listener in app server? can you please advise me the best way to do.

Thanks.
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Fri Aug 27, 2004 9:03 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

jefflowrey wrote:
But again, the Using Java manual has specific code examples.


What is wls6.1?

WebLogic?

I'm sure the WebLogic documentation will tell you how to configure a JMS resource.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
suri
PostPosted: Fri Aug 27, 2004 9:14 am    Post subject: Reply with quote

Apprentice

Joined: 16 May 2004
Posts: 39
Location: NewYork

It is weblogic, I will try to configure jms.

Using file system as directory is better or weblogic? can you please suggest me.

Thanks.
Back to top
View user's profile Send private message Send e-mail
vennela
PostPosted: Fri Aug 27, 2004 9:30 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Quote:
Using file system as directory is better or weblogic?

WebLogic.

For an MDB I don't think you can use file system (atleast with WAS MDB's you cannot do that). You can use WebLogic for storing JMS objects for your JNDI lookups. That will make it easier for you to configure the MDB.

Search for WebLogic or WLS on this site in the Java/JMS forum and you will get quite a few hits which might be helpful
Back to top
View user's profile Send private message Send e-mail Visit poster's website
fjb_saper
PostPosted: Fri Aug 27, 2004 5:16 pm    Post subject: Reply with quote

Grand High Poobah

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

Coming back to your initial question the MessageDrivenBean (MDB)implements the MessageListener interface:
Code:
void onMessage(Message msg){}

You cannot just retrieve it from JNDI you will have to code it and create the implementation of the interface.

Have fun.
F.J.
Back to top
View user's profile Send private message Send e-mail
leongor
PostPosted: Sun Aug 29, 2004 12:30 am    Post subject: Reply with quote

Master

Joined: 13 May 2002
Posts: 264
Location: Israel

AFAK, Weblogic 6.0 doesn't support jndi with MQ. I think the only way is a file system.
_________________
Regards.
Leonid.

IBM Certified MQSeries Specialist.
Back to top
View user's profile Send private message
JLRowe
PostPosted: Tue Aug 31, 2004 8:43 am    Post subject: Reply with quote

Yatiri

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

Shouldn't be a problem, it's all within the J2EE spec. You'll just have to use the JMS administration tool to configure the JNDI objects.
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 » OnMessageListener
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.