Author |
Message
|
In_love_with_MQ |
Posted: Mon Mar 20, 2006 2:48 am Post subject: durable subscriber on WAS 6.0 using MQ 6 BROKER:IMPOSSIBLE? |
|
|
Acolyte
Joined: 10 Jul 2005 Posts: 70
|
Hi,
I need to create durable subscribers via jms on WAS 6.0 and my broker is MQ 6.0 .
As per j2ee specification setclientID cannot be used in ejb or web containers .
But without that i cant create D subscriber .
How can a jms running on WAS 6 then create durable subscriptions ?  |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Mar 20, 2006 8:32 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Have you tried looking at the properties of the Topic in WAS? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
In_love_with_MQ |
Posted: Thu Mar 23, 2006 2:18 am Post subject: Hi |
|
|
Acolyte
Joined: 10 Jul 2005 Posts: 70
|
Hi ,
As soon as i make a topic to durable in WAS and start, i get the error , jmsillegalstate exception ..
And even in my code if i try to make them durable , ie using createdurablesubsciption () method the same error message flashes .
As per JMS specifications these methods cant be used in EJB OR WEB containers ...
Then How to create a DURABLE subscriber? |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Mar 23, 2006 4:55 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
As a durable subscriber did you provide a queue to host your subscription?
If you did what prevents you from placing a standard MDB on the queue?
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Mar 23, 2006 6:00 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You do not need a durable subscriber.
You might want one - but you almost certainly don't need it.
What are you actually trying to accomplish? We can help you with that, rather than tell you the same thing that the spec says - which is that if the spec says you can't do it then you can't do it. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
In_love_with_MQ |
Posted: Thu Mar 23, 2006 7:05 am Post subject: Hi |
|
|
Acolyte
Joined: 10 Jul 2005 Posts: 70
|
Hi ,
My requirement
Apllication publishes and the message reaches the subscribed queues .
The message should be staying in the queues even if the application which gets the messages is inactive (durable) .
As of now it is non- durable wherein we have the subscribing app listening to the queue (mdb) + listener . |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Mar 23, 2006 7:33 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Under what conditions is the subscriber not available?
Under what conditions is the publisher available when the subscriber isn't?
That is, if you're running both the publisher and the subscriber in the same container - how is it ever possible for the publisher to be available when the subscriber isn't? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|