Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JMS suscriber

843830Apr 16 2007 — edited Apr 17 2007
hello im french excuse my english...

i have realize a jms server with a topic name MYTOPIC
i create 2 clients each one nead to create a distinct DURABLE suscriber FirstSub and SecondSub

after i atatch a listenner on each suscriber.

another client can post message with publisher. its work fine. message arrive in the two subscriber

but...

when i m stopping my application, durable suscriber dont delete message, its good and normal becaus i use durable, but when i restart my application i want to suscribe to FirstSub and SecondSub to create a listenner on it and to consume message but it doeasn't work
i do this : ts.createDurableSuscriber(topic, "FirstSub"); but
i have a jmsecpetion and message : durable susbcription have already been activated and after that my queue message are not consume...

i want to know if we can list suscriber into a topic and get a topicssubscriber objet on it if already exist and attach my listener and if not exist call method createdurablesubscriber...

thanks a lot
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 15 2007
Added on Apr 16 2007
2 comments
91 views