Author |
Message
|
suri |
Posted: Fri Aug 27, 2004 7:03 am Post subject: OnMessageListener |
|
|
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 |
|
 |
jefflowrey |
Posted: Fri Aug 27, 2004 7:18 am Post subject: |
|
|
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 |
|
 |
suri |
Posted: Fri Aug 27, 2004 7:40 am Post subject: |
|
|
Apprentice
Joined: 16 May 2004 Posts: 39 Location: NewYork
|
Thank you, the Requesst and Response Q are remote queue's. |
|
Back to top |
|
 |
gunter |
Posted: Fri Aug 27, 2004 7:57 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Fri Aug 27, 2004 8:10 am Post subject: |
|
|
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 |
|
 |
suri |
Posted: Fri Aug 27, 2004 9:00 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Fri Aug 27, 2004 9:03 am Post subject: |
|
|
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 |
|
 |
suri |
Posted: Fri Aug 27, 2004 9:14 am Post subject: |
|
|
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 |
|
 |
vennela |
Posted: Fri Aug 27, 2004 9:30 am Post subject: |
|
|
 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 |
|
 |
fjb_saper |
Posted: Fri Aug 27, 2004 5:16 pm Post subject: |
|
|
 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 |
|
 |
leongor |
Posted: Sun Aug 29, 2004 12:30 am Post subject: |
|
|
 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 |
|
 |
JLRowe |
Posted: Tue Aug 31, 2004 8:43 am Post subject: |
|
|
 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 |
|
 |
|