org.exolab.jms.client
Interface JmsConnectionStubIfc

All Known Implementing Classes:
HttpJmsConnectionStub, IntravmJmsConnectionStub, IpcJmsConnectionStub, RmiJmsConnectionStub

public interface JmsConnectionStubIfc

This is the interface that connection stubs must implement in order to support remote invocations. This level of indirection will enable us to support different ORB environments. The only restriction is that the stubs must support this interface and that it must have a default constructor.

Version:
$Revision: 1.8 $ $Date: 2003/08/17 01:32:21 $
Author:
Jim Alateras

Method Summary
 void close()
          Close the connection and deallocate any resources.
 JmsSessionStubIfc createSession(int ackMode, boolean transacted)
          Create a session.
 void destroy()
          Release all local resources used by this object.
 java.lang.String getConnectionId()
          Retrieve the identity of this conection.
 

Method Detail

createSession

public JmsSessionStubIfc createSession(int ackMode,
                                       boolean transacted)
                                throws javax.jms.JMSException
Create a session.
Parameters:
ackMode - the session ack mode
transacted - true if it is a transacted session
Throws:
javax.jms.JMSException - for any JMS error

close

public void close()
           throws javax.jms.JMSException
Close the connection and deallocate any resources.
Throws:
javax.jms.JMSException - for any JMS error

destroy

public void destroy()
             throws javax.jms.JMSException
Release all local resources used by this object.
Throws:
javax.jms.JMSException - for any JMS error

getConnectionId

public java.lang.String getConnectionId()
                                 throws javax.jms.JMSException
Retrieve the identity of this conection.
Returns:
the identity of this conection
Throws:
javax.jms.JMSException - for any JMS error


Copyright © 1999-2004 The OpenJMS Group. All Rights Reserved.