org.exolab.jms.client.intravm
Class IntravmJmsServerStub
java.lang.Object
|
+--org.exolab.jms.client.intravm.IntravmJmsServerStub
- All Implemented Interfaces:
- JmsServerStubIfc
- public class IntravmJmsServerStub
- extends java.lang.Object
- implements JmsServerStubIfc
This class is a client stub facilitating communication with the server
in an intra-VM configuration.
- Version:
- $Revision: 1.7 $ $Date: 2003/08/07 13:32:52 $
- Author:
- Jim Alateras
Constructor Summary |
IntravmJmsServerStub()
The default constructor does nothing |
IntravmJmsServerStub(java.util.Hashtable env)
The constructor instantiate server based on the environment variables
passed in |
Method Summary |
JmsConnectionStubIfc |
createConnection(java.lang.String id,
java.lang.String username,
java.lang.String password)
Create a connection to the JMS Server. |
void |
setExceptionListener(javax.jms.ExceptionListener listener)
Set the exception listener so that the client can be notified of
client disconnection events. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntravmJmsServerStub
public IntravmJmsServerStub()
- The default constructor does nothing
IntravmJmsServerStub
public IntravmJmsServerStub(java.util.Hashtable env)
- The constructor instantiate server based on the environment variables
passed in
- Parameters:
env
- environment
createConnection
public JmsConnectionStubIfc createConnection(java.lang.String id,
java.lang.String username,
java.lang.String password)
throws javax.jms.JMSException
- Create a connection to the JMS Server.
- Specified by:
createConnection
in interface JmsServerStubIfc
- Parameters:
id
- the identity of clientusername
- the client usernamepassword
- the client password- Returns:
- the connection
- Throws:
javax.jms.JMSException
- if the connection cannot be created
setExceptionListener
public void setExceptionListener(javax.jms.ExceptionListener listener)
- Description copied from interface:
JmsServerStubIfc
- Set the exception listener so that the client can be notified of
client disconnection events.
- Specified by:
setExceptionListener
in interface JmsServerStubIfc
- Following copied from interface:
org.exolab.jms.client.JmsServerStubIfc
- Parameters:
listener
- the exception listener
Copyright © 1999-2004 The OpenJMS Group. All Rights Reserved.