Package net.timewalker.ffmq4.jndi
Class FFMQConnectionFactory
- java.lang.Object
-
- net.timewalker.ffmq4.jndi.FFMQConnectionFactory
-
- All Implemented Interfaces:
Serializable,javax.jms.ConnectionFactory,Referenceable
- Direct Known Subclasses:
FFMQQueueConnectionFactory,FFMQTopicConnectionFactory
public class FFMQConnectionFactory extends Object implements javax.jms.ConnectionFactory, Serializable, Referenceable
Implementation of a JMS
ConnectionFactory- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FFMQConnectionFactory()ConstructorFFMQConnectionFactory(Hashtable<String,Object> environment)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.jms.ConnectioncreateConnection()javax.jms.ConnectioncreateConnection(String userName, String password)protected intgetIntProperty(String propertyName, int defaultValue)protected URIgetProviderURI()Lookup the provider URIStringgetProviderURL()ReferencegetReference()StringgetSecurityCredentials()StringgetSecurityPrincipal()protected StringgetStringProperty(String propertyName, String defaultValue)voidsetProviderURL(String providerURL)voidsetSecurityCredentials(String securityCredentials)voidsetSecurityPrincipal(String securityPrincipal)
-
-
-
Method Detail
-
getStringProperty
protected final String getStringProperty(String propertyName, String defaultValue)
-
getIntProperty
protected final int getIntProperty(String propertyName, int defaultValue)
-
getSecurityPrincipal
public String getSecurityPrincipal()
-
setSecurityPrincipal
public void setSecurityPrincipal(String securityPrincipal)
-
getSecurityCredentials
public String getSecurityCredentials()
-
setSecurityCredentials
public void setSecurityCredentials(String securityCredentials)
-
getProviderURL
public String getProviderURL()
-
setProviderURL
public void setProviderURL(String providerURL)
-
createConnection
public final javax.jms.Connection createConnection() throws javax.jms.JMSException- Specified by:
createConnectionin interfacejavax.jms.ConnectionFactory- Throws:
javax.jms.JMSException
-
createConnection
public final javax.jms.Connection createConnection(String userName, String password) throws javax.jms.JMSException
- Specified by:
createConnectionin interfacejavax.jms.ConnectionFactory- Throws:
javax.jms.JMSException
-
getProviderURI
protected final URI getProviderURI() throws javax.jms.JMSException
Lookup the provider URI- Throws:
javax.jms.JMSException
-
getReference
public final Reference getReference() throws NamingException
- Specified by:
getReferencein interfaceReferenceable- Throws:
NamingException
-
-