Posted: Wed Jul 02, 2003 9:42 am Post subject: When are client channels opened?
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
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