javax.xml.messaging
Class ProviderConnectionFactory

java.lang.Object
  |
  +--javax.xml.messaging.ProviderConnectionFactory

public abstract class ProviderConnectionFactory
extends java.lang.Object

A factory for creating connections to a particular messaging provider. A ProviderConnectionFactory object can be obtained in two different ways.


Constructor Summary
ProviderConnectionFactory()
           
 
Method Summary
abstract  ProviderConnection createConnection()
          Creates a ProviderConnection object to the messaging provider that is associated with this ProviderConnectionFactory object.
static ProviderConnectionFactory newInstance()
          Creates a default ProviderConnectionFactory object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProviderConnectionFactory

public ProviderConnectionFactory()
Method Detail

createConnection

public abstract ProviderConnection createConnection()
                                             throws JAXMException
Creates a ProviderConnection object to the messaging provider that is associated with this ProviderConnectionFactory object.
Returns:
a ProviderConnection object that represents a connection to the provider associated with this ProviderConnectionFactory object
Throws:
JAXMException - if there is an error in creating the connection

newInstance

public static ProviderConnectionFactory newInstance()
                                             throws JAXMException
Creates a default ProviderConnectionFactory object.
Returns:
a new instance of a ProviderConnectionFactory
Throws:
JAXMException - if there was an error creating the default ProviderConnectionFactory