org.jboss.mq
Class GenericConnectionFactory

java.lang.Object
  extended byorg.jboss.mq.GenericConnectionFactory
All Implemented Interfaces:
java.io.Serializable

public class GenericConnectionFactory
extends java.lang.Object
implements java.io.Serializable

The RMI implementation of the DistributedConnectionFactory object

See Also:
Serialized Form

Constructor Summary
GenericConnectionFactory(ServerIL (src)  server, java.util.Properties props)
          The constructor takes a ServerIL and the Connection Properties parameters, The connection properties are allways required since they are used to setup the ClientIL, but the ServerIL can be null if the connection properties defines a ServerILFactory so that the SeverIL can be created on the client side.
 
Method Summary
 ClientILService (src) createClientILService(Connection (src)  connection)
          Creates a new instance of the ClientILService
 ServerIL (src) createServerIL()
          Creates a new instance of the ServerIL
 void initialise(Connection (src)  connection)
          Initialise the connection
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericConnectionFactory

public GenericConnectionFactory(ServerIL (src)  server,
                                java.util.Properties props)
The constructor takes a ServerIL and the Connection Properties parameters, The connection properties are allways required since they are used to setup the ClientIL, but the ServerIL can be null if the connection properties defines a ServerILFactory so that the SeverIL can be created on the client side. The ServerIL paramter is usefull for IL such as RMI or the JVM IL since trying to explicity create a connection to them is not strait forward.

Parameters:
server - the serverIL
props - the connection properties
Method Detail

initialise

public void initialise(Connection (src)  connection)
                throws JMSException (src) 
Initialise the connection

Parameters:
connection - the connection to initialise
Throws:
JMSException (src)

createClientILService

public ClientILService (src)  createClientILService(Connection (src)  connection)
                                      throws java.lang.Exception
Creates a new instance of the ClientILService

Parameters:
connection - the connection
Returns:
the client il
Throws:
java.lang.Exception - for any error

createServerIL

public ServerIL (src)  createServerIL()
                        throws JMSException (src) 
Creates a new instance of the ServerIL

Returns:
the server il
Throws:
JMSException (src) - for any error

toString

public java.lang.String toString()