Class JmsServerStubImpl

All Implemented Interfaces:, JmsServerStubIfc, ServerConnectionFactory

public class JmsServerStubImpl
extends java.lang.Object
implements JmsServerStubIfc,

This class is responsible for returning a reference to the remote JMS server.

$Revision: 1.5 $ $Date: 2005/11/18 03:29:41 $
Jim Alateras, Tim Anderson

Constructor Summary
JmsServerStubImpl(java.util.Map properties, java.util.Map environment)
          Construct a new JmsServerStubImpl.
Method Summary
 ServerConnection createConnection(java.lang.String clientID, java.lang.String user, java.lang.String password)
          Creates a connection with the specified user identity.
 void disconnected( caller)
          Notifies that a caller has been disconnected.
 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


public JmsServerStubImpl(java.util.Map properties,
                         java.util.Map environment)
Construct a new JmsServerStubImpl.
properties - properties to initialise this with
environment - the environment used. May be null
Method Detail


public ServerConnection createConnection(java.lang.String clientID,
                                         java.lang.String user,
                                         java.lang.String password)
                                  throws javax.jms.JMSException
Creates a connection with the specified user identity.

The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called.

If clientID is specified, it indicates the pre-configured client identifier associated with the client ConnectionFactory object.

Specified by:
createConnection in interface ServerConnectionFactory
clientID - the pre-configured client identifier. May be null.
user - the caller's user name. May be null
password - the caller's password. May be null
a newly created connection
javax.jms.InvalidClientIDException - if the JMS client specifies an invalid or duplicate client ID.
javax.jms.JMSException - if the JMS provider fails to create the connection due to some internal error.
javax.jms.JMSSecurityException - if client authentication fails due to an invalid user name or password.


public void setExceptionListener(javax.jms.ExceptionListener listener)
Set the exception listener so that the client can be notified of client disconnection events.
Specified by:
setExceptionListener in interface JmsServerStubIfc
listener - the exception listener


public void disconnected( caller)
Notifies that a caller has been disconnected.
Specified by:
disconnected in interface
caller - the caller that was disconnected

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