dcsimg
Can a single Connection be used to create multiple Sessions, each of which listens to a specific Topic?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Abe_Mirrashidi
Posted On:   Wednesday, March 21, 2001 01:14 PM

I'd like to use a single TopicConnection and create two TopicSessions. Each TopicSession creates a TopicSubscriber and sets a MessageListener (shared MessageListener).

Is this proper JMS usage? When I try to share the connection across two Topics, after thirty or so messages, the JMS Thread that was receiving messages gets GC'd. When I create a separate Connection for each Session/Topic/Subscriber, I can receive messages just fine.

About | Sitemap | Contact