org.jboss.jms.serverless
Class GroupConnectionFactory

java.lang.Object
  extended byorg.jboss.jms.serverless.GroupConnectionFactory
All Implemented Interfaces:
ConnectionFactory (src)

public class GroupConnectionFactory
extends java.lang.Object
implements ConnectionFactory (src)


Constructor Summary
GroupConnectionFactory(java.lang.String stackConfigFileName)
           
 
Method Summary
 Connection (src) createConnection()
          The Connection is stopped, but it is active (ready to send and receive traffic), which means the method throws an exception if the group cannot be contacted for some reason.
 Connection (src) createConnection(java.lang.String userName, java.lang.String password)
          The Connection is stopped, but it is active (ready to send and receive traffic), which means the method throws an exception if the group cannot be contacted for some reason.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GroupConnectionFactory

public GroupConnectionFactory(java.lang.String stackConfigFileName)
Method Detail

createConnection

public Connection (src)  createConnection()
                            throws JMSException (src) 
The Connection is stopped, but it is active (ready to send and receive traffic), which means the method throws an exception if the group cannot be contacted for some reason.

Specified by:
createConnection in interface ConnectionFactory (src)
Returns:
a newly created connection
Throws:
JMSException (src) - if the JMS provider fails to create the connection due to some internal error.
See Also:
ConnectionFactory.createConnection()

toString

public java.lang.String toString()

createConnection

public Connection (src)  createConnection(java.lang.String userName,
                                   java.lang.String password)
                            throws JMSException (src) 
The Connection is stopped, but it is active (ready to send and receive traffic), which means the method throws an exception if the group cannot be contacted for some reason.

Specified by:
createConnection in interface ConnectionFactory (src)
Parameters:
userName - the caller's user name
password - the caller's password
Returns:
a newly created connection
Throws:
JMSException (src) - if the JMS provider fails to create the connection due to some internal error.
See Also:
ConnectionFactory.createConnection(String, String)