jrun.jms.core.client
Interface JmsConnectionStubIfc

All Known Implementing Classes:
IntravmJmsConnectionStub, RmiJmsConnectionStub, IpcJmsConnectionStub

public interface JmsConnectionStubIfc

This is the interface that connection stubs must implement in order to support remote invocations. This level of indirection willenbale 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.6 $ $Date: 2001/10/12 07:55:31 $
Author:
Jim Alateras

Method Summary
 void close()
          Close the connection and deallocate any resources.
 JmsSessionStubIfc createSession(int ackMode, boolean transacted)
          Create a session for the specified client.
 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 for the specified client. If it fails then throw the JMSException exception
Parameters:
ackMode - - the session ack mode
transacted - - true if it is a transacted session
Throws:
JMSException -  

close

public void close()
           throws javax.jms.JMSException
Close the connection and deallocate any resources. If this method does not complete successfully then throw the JMSException exception
Throws:
JMSException -  

destroy

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

getConnectionId

public java.lang.String getConnectionId()
                                 throws javax.jms.JMSException
Retrieve the identity of this conection. If this method does not complete successfully then throw JMSException.
Returns:
String


Copyright � 2002 Macromedia Corporation. All Rights Reserved.