org.mom4j.jms
Class ConnectionFactoryImpl

java.lang.Object
org.mom4j.jms.ConnectionFactoryImpl
- All Implemented Interfaces:
- javax.jms.ConnectionFactory, javax.jms.QueueConnectionFactory, java.io.Serializable, javax.jms.TopicConnectionFactory
- public class ConnectionFactoryImpl
- extends java.lang.Object
- implements javax.jms.ConnectionFactory, javax.jms.TopicConnectionFactory, javax.jms.QueueConnectionFactory, java.io.Serializable
hostname
private java.lang.String hostname
port
private int port
pollSync
private long pollSync
pollAsync
private long pollAsync
ConnectionFactoryImpl
public ConnectionFactoryImpl(java.lang.String hostname,
int port,
long pollSync,
long pollAsync)
- Creates new ConnectionFactory
createConnection
public javax.jms.Connection createConnection()
throws javax.jms.JMSException
- Specified by:
createConnection in interface javax.jms.ConnectionFactory
createConnection
public javax.jms.Connection createConnection(java.lang.String userName,
java.lang.String password)
throws javax.jms.JMSException
- Specified by:
createConnection in interface javax.jms.ConnectionFactory
createConnectionInternal
private ConnectionImpl createConnectionInternal(java.lang.String userName,
java.lang.String password)
throws javax.jms.JMSException
createTopicConnection
public javax.jms.TopicConnection createTopicConnection()
throws javax.jms.JMSException
- Specified by:
createTopicConnection in interface javax.jms.TopicConnectionFactory
createTopicConnection
public javax.jms.TopicConnection createTopicConnection(java.lang.String userName,
java.lang.String password)
throws javax.jms.JMSException
- Specified by:
createTopicConnection in interface javax.jms.TopicConnectionFactory
createQueueConnection
public javax.jms.QueueConnection createQueueConnection()
throws javax.jms.JMSException
- Specified by:
createQueueConnection in interface javax.jms.QueueConnectionFactory
createQueueConnection
public javax.jms.QueueConnection createQueueConnection(java.lang.String userName,
java.lang.String password)
throws javax.jms.JMSException
- Specified by:
createQueueConnection in interface javax.jms.QueueConnectionFactory
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).