jrun.jms.core.client.intravm
Class IntravmJmsServerStub

java.lang.Object
  |
  +--jrun.jms.core.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.4 $ $Date: 2001/05/24 15:34:36 $
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)
          Create a connection to the JMS Server.
 JmsConnectionStubIfc createConnection(java.lang.String id, java.lang.String user, java.lang.String password)
          Create a connection to the JMS Server.
protected  Logger getLogger()
          Return a reference to the logger.
 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
 

Constructor Detail

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
Method Detail

createConnection

public JmsConnectionStubIfc createConnection(java.lang.String id,
                                             java.lang.String user,
                                             java.lang.String password)
                                      throws javax.jms.JMSException
Create a connection to the JMS Server. If one cannot be established then throw JMSException exception
Specified by:
createConnection in interface JmsServerStubIfc
Parameters:
id - identity of client
user - user name
password - user password
Returns:
JmsConnectionStubIfc created stub
Throws:
JMSException -  

createConnection

public JmsConnectionStubIfc createConnection(java.lang.String id)
                                      throws javax.jms.JMSException
Create a connection to the JMS Server. If one cannot be established then throw JMSException exception
Specified by:
createConnection in interface JmsServerStubIfc
Parameters:
id - identity of client
Returns:
JmsConnectionStubIfc created stub
Throws:
JMSException -  

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: jrun.jms.core.client.JmsServerStubIfc
Parameters:
listener - the exception listener

getLogger

protected Logger getLogger()
Return a reference to the logger.
Returns:
Logger


Copyright � 2002 Macromedia Corporation. All Rights Reserved.