org.exolab.jms.client.intravm
Class IntravmJmsConnectionStub

java.lang.Object
  |
  +--org.exolab.jms.client.intravm.IntravmJmsConnectionStub
All Implemented Interfaces:
JmsConnectionStubIfc

public class IntravmJmsConnectionStub
extends java.lang.Object
implements JmsConnectionStubIfc

This class is responsible for implementing the client side of a intravm client-server connection for the JMS server. It is used to ovecome the performance issues associated with say and RMI based client-server running in the same VM. Depending on the different implementation of the client server ORB (i.e RMI or CORBA) some of the smarter products will simply turn a distributed request into a local client server call hence bypassing all marshalling.

Generic, by implication, impliesthat we are sacrificing the performance of the lower end ORB (intravm ORB) to provide a transparent framework for all underlying ORBs.

Version:
$Revision: 1.5 $ $Date: 2003/08/07 13:32:52 $
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createSession

public JmsSessionStubIfc createSession(int ackMode,
                                       boolean transacted)
                                throws javax.jms.JMSException
Description copied from interface: JmsConnectionStubIfc
Create a session.
Specified by:
createSession in interface JmsConnectionStubIfc
Following copied from interface: org.exolab.jms.client.JmsConnectionStubIfc
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
Description copied from interface: JmsConnectionStubIfc
Close the connection and deallocate any resources.
Specified by:
close in interface JmsConnectionStubIfc
Following copied from interface: org.exolab.jms.client.JmsConnectionStubIfc
Throws:
javax.jms.JMSException - for any JMS error

destroy

public void destroy()
             throws javax.jms.JMSException
Description copied from interface: JmsConnectionStubIfc
Release all local resources used by this object.
Specified by:
destroy in interface JmsConnectionStubIfc
Following copied from interface: org.exolab.jms.client.JmsConnectionStubIfc
Throws:
javax.jms.JMSException - for any JMS error

getConnectionId

public java.lang.String getConnectionId()
                                 throws javax.jms.JMSException
Description copied from interface: JmsConnectionStubIfc
Retrieve the identity of this conection.
Specified by:
getConnectionId in interface JmsConnectionStubIfc
Following copied from interface: org.exolab.jms.client.JmsConnectionStubIfc
Returns:
the identity of this conection
Throws:
javax.jms.JMSException - for any JMS error


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