org.exolab.jms.client
Class JmsClientStubFactory

java.lang.Object
  |
  +--org.exolab.jms.client.JmsClientStubFactory

public final class JmsClientStubFactory
extends java.lang.Object

This is a helper clas that is responsible for cresting the various types of stubs. The client requires three stubs one to talk to the remote jms server (i.e connection factory) one to talk to the connection and another to talk to the session.

This classrelies on configuration information to determine which ORB to use.

Version:
$Revision: 1.3 $ $Date: 2003/08/07 13:32:49 $
Author:
Jim Alateras

Constructor Summary
JmsClientStubFactory()
           
 
Method Summary
static JmsConnectionStubIfc createJmsConnectionStub(java.lang.String id)
          This class method creates and returns a stub to the remote connection entity.
static JmsServerStubIfc createJmsServerStub()
          This class method creates and returns a stub to the remote server entity.
static JmsSessionStubIfc createJmsSessionStub(java.lang.String id)
          This class method creates and returns a stub to the rmeote session entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmsClientStubFactory

public JmsClientStubFactory()
Method Detail

createJmsServerStub

public static JmsServerStubIfc createJmsServerStub()
                                            throws javax.jms.JMSException
This class method creates and returns a stub to the remote server entity. This entity must support the JmsServerStubIfc interface

If there is problem creating the stub then throw the JMSException exception

Parameters:
id - client identity
Throws:
javax.jms.JMSException -  

createJmsConnectionStub

public static JmsConnectionStubIfc createJmsConnectionStub(java.lang.String id)
                                                    throws javax.jms.JMSException
This class method creates and returns a stub to the remote connection entity. This entity must support the JmsConnectionStubIfc interface It uses the client identity to initialise the connection.

If there is problem creating the stub then throw the JMSException exception

Parameters:
id - client identity
Throws:
javax.jms.JMSException -  

createJmsSessionStub

public static JmsSessionStubIfc createJmsSessionStub(java.lang.String id)
                                              throws javax.jms.JMSException
This class method creates and returns a stub to the rmeote session entity. The created entity must support the JmsSessionStubIfc interface. This level of indirection will assist us in supported different ORB environments

If there is a problem creating the stub then throw the JMSException exception

Parameters:
id - client identity
Throws:
javax.jms.JMSException -  


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