public class JmsConnectionFactoryImpl extends Object implements JmsConnectionFactory, Referenceable
AGNOSTIC, QUEUE, TOPIC
Constructor and Description |
---|
JmsConnectionFactoryImpl(ManagedConnectionFactory mcf,
ConnectionManager cm) |
Modifier and Type | Method and Description |
---|---|
Connection |
createConnection()
Creates a connection with the default user identity.
|
Connection |
createConnection(String userName,
String password)
Creates a connection with the specified user identity.
|
QueueConnection |
createQueueConnection()
Creates a queue connection with the default user identity.
|
QueueConnection |
createQueueConnection(String userName,
String password)
Creates a queue connection with the specified user identity.
|
TopicConnection |
createTopicConnection()
Creates a topic connection with the default user identity.
|
TopicConnection |
createTopicConnection(String userName,
String password)
Creates a topic connection with the specified user identity.
|
Reference |
getReference() |
void |
setReference(Reference reference)
Sets the Reference instance.
|
public JmsConnectionFactoryImpl(ManagedConnectionFactory mcf, ConnectionManager cm)
public void setReference(Reference reference)
Referenceable
reference
- A Reference instanceReferenceable.getReference()
public Reference getReference()
getReference
in interface Referenceable
public QueueConnection createQueueConnection() throws JMSException
QueueConnectionFactory
Connection.start
method
is explicitly called.
.createQueueConnection
in interface QueueConnectionFactory
JMSException
- if the JMS provider fails to create the queue
connection due to some internal error.JMSSecurityException
- if client authentication fails due to
an invalid user name or password.public QueueConnection createQueueConnection(String userName, String password) throws JMSException
QueueConnectionFactory
Connection.start
method
is explicitly called.createQueueConnection
in interface QueueConnectionFactory
userName
- the caller's user namepassword
- the caller's passwordJMSException
- if the JMS provider fails to create the queue
connection due to some internal error.JMSSecurityException
- if client authentication fails due to
an invalid user name or password.public TopicConnection createTopicConnection() throws JMSException
TopicConnectionFactory
Connection.start
method
is explicitly called.createTopicConnection
in interface TopicConnectionFactory
JMSException
- if the JMS provider fails to create a topic
connection due to some internal error.JMSSecurityException
- if client authentication fails due to
an invalid user name or password.public TopicConnection createTopicConnection(String userName, String password) throws JMSException
TopicConnectionFactory
Connection.start
method
is explicitly called.createTopicConnection
in interface TopicConnectionFactory
userName
- the caller's user namepassword
- the caller's passwordJMSException
- if the JMS provider fails to create a topic
connection due to some internal error.JMSSecurityException
- if client authentication fails due to
an invalid user name or password.public Connection createConnection() throws JMSException
ConnectionFactory
Connection.start
method
is explicitly called.createConnection
in interface ConnectionFactory
JMSException
- if the JMS provider fails to create the
connection due to some internal error.JMSSecurityException
- if client authentication fails due to
an invalid user name or password.public Connection createConnection(String userName, String password) throws JMSException
ConnectionFactory
Connection.start
method
is explicitly called.createConnection
in interface ConnectionFactory
userName
- the caller's user namepassword
- the caller's passwordJMSException
- if the JMS provider fails to create the
connection due to some internal error.JMSSecurityException
- if client authentication fails due to
an invalid user name or password.Copyright © 2018 JBoss by Red Hat. All rights reserved.