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 » When are client channels opened?

Post new topic  Reply to topic
 When are client channels opened? « View previous topic :: View next topic » 
Author Message
sley
PostPosted: Wed Jul 02, 2003 9:42 am    Post subject: When are client channels opened? Reply with quote

Novice

Joined: 18 Dec 2001
Posts: 11

Hi.
Is there any documentation by IBM indicating when the client channels are opened? I wrote a stand-alone java application that uses JMS for pub/sub. I lookup the TopicConnectionFactory and receive a connection. The thread sleeps and I was able to check that a client channel was open at that point. When the thread is alive again, it creates a session object and sleeps again. I checked and another client channel was created. After the session, I lookup the Topic object from the bindings file. No channel created. Using the session, we create a topicPublisher object (let's say A) for a specific topic. No channel created there. We keep a handle "A" and create a new topicPublisher using the same session to a different topic. No new channels created. So it seems that a channel is only created for each connection and session.
However, we have a separate application that also uses JMS running on WebLogic 6.1. A stateless session EJB instantiates a new class called publisher and keeps the handle to the class. The publisher does the same thing as the stand-alone app. It creates a connection from the TCF. It uses the connection to create the session and uses the session to create a topicPublisher -- one per unique topic. We cache all the topicPublisher objects. However, when we check how many instances of the channels we have open, the #s don't match. The # of channels open is much greater than the # of ejbs instantiated and creater than the connection objects and session objects. (We also cache the connection and session objects so there's only 1 connection + session per instance of the class). This directly conflicts what we saw for the stand-alone app.
Is there any documentation when the client channel is opened for jms pub/sub?
many thx.
--Sley
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » When are client channels opened?
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.