Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mom4j.jms
Class ConnectionFactoryImpl  view ConnectionFactoryImpl download ConnectionFactoryImpl.java

java.lang.Object
  extended byorg.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


Field Summary
private  java.lang.String hostname
           
private  long pollAsync
           
private  long pollSync
           
private  int port
           
 
Constructor Summary
ConnectionFactoryImpl(java.lang.String hostname, int port, long pollSync, long pollAsync)
          Creates new ConnectionFactory
 
Method Summary
 javax.jms.Connection createConnection()
           
 javax.jms.Connection createConnection(java.lang.String userName, java.lang.String password)
           
private  ConnectionImpl createConnectionInternal(java.lang.String userName, java.lang.String password)
           
 javax.jms.QueueConnection createQueueConnection()
           
 javax.jms.QueueConnection createQueueConnection(java.lang.String userName, java.lang.String password)
           
 javax.jms.TopicConnection createTopicConnection()
           
 javax.jms.TopicConnection createTopicConnection(java.lang.String userName, java.lang.String password)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

hostname

private java.lang.String hostname

port

private int port

pollSync

private long pollSync

pollAsync

private long pollAsync
Constructor Detail

ConnectionFactoryImpl

public ConnectionFactoryImpl(java.lang.String hostname,
                             int port,
                             long pollSync,
                             long pollAsync)
Creates new ConnectionFactory

Method Detail

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()).