jrun.jms.core.client.rmi
Class RmiJmsServerStub

java.lang.Object
  |
  +--jrun.jms.core.client.rmi.RmiJmsServerStub
All Implemented Interfaces:
JmsServerStubIfc

public class RmiJmsServerStub
extends java.lang.Object
implements JmsServerStubIfc

This class is repsonsible for returning a reference to the remote JMS server. If it cannot access the remote server then the constructor will fail with a JMSException.

This is a singleton class.

Version:
$Revision: 1.9 $ $Date: 2001/06/15 03:29:35 $ created by Jim Alateras

Field Summary
protected  int m_port
           
 
Constructor Summary
RmiJmsServerStub(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.
 RemoteJmsServerIfc getDelegate()
          This class attempts to return a delegate remote stub to the RMI JMS Server.
 javax.jms.ExceptionListener getExceptionListener()
          Return a reference to the exception listener
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
 

Field Detail

m_port

protected int m_port
Constructor Detail

RmiJmsServerStub

public RmiJmsServerStub(java.util.Hashtable env)
The constructor instantiate server based on the environment variables passed in
Parameters:
env - environment
Method Detail

getDelegate

public RemoteJmsServerIfc getDelegate()
                               throws javax.jms.JMSException
This class attempts to return a delegate remote stub to the RMI JMS Server. If there are any problems creating or returning the singleton then throw JMSException
Returns:
RemoteJmsServerIfc remote reference to stub
Throws:
JMSException -  

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

getExceptionListener

public javax.jms.ExceptionListener getExceptionListener()
Return a reference to the exception listener
Parameters:
ExceptionListener -  

getLogger

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


Copyright � 2002 Macromedia Corporation. All Rights Reserved.