|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.soa.esb.addressing.EPR org.jboss.soa.esb.addressing.eprs.JMSEpr
public class JMSEpr
A helper class for using JMS style EPRs. Simply create and use instances of this type.
Nested Class Summary | |
---|---|
static class |
JMSEpr.AcknowledgeMode
Enum to type-safe JMS Client Acknowledgement mode string mappings to JMS Session's integers. |
Field Summary | |
---|---|
static java.lang.String |
ACKNOWLEDGE_MODE_TAG
JMS Client acknowledgment mode configuration tag |
static java.lang.String |
CONNECTION_FACTORY_TAG
|
static java.lang.String |
DEFAULT_REPLY_TO_DESTINATION_SUFFIX
|
static java.lang.String |
DESTINATION_NAME_TAG
|
static java.lang.String |
DESTINATION_TYPE_TAG
|
static java.lang.String |
JMS_PROTOCOL
|
static java.lang.String |
JMS_SECURITY_CREDENTIAL_TAG
JMS Destination password. |
static java.lang.String |
JMS_SECURITY_PRINCIPAL_TAG
JMS Destination username. |
static java.lang.String |
JNDI_CONTEXT_FACTORY_TAG
|
static java.lang.String |
JNDI_PKG_PREFIX_TAG
|
static java.lang.String |
JNDI_URL_TAG
|
static java.lang.String |
MESSAGE_SELECTOR_TAG
|
static java.lang.String |
ONE_ONE_PROTOCOL
|
static java.lang.String |
ONE_ZERO_TWO_PROTOCOL
|
static java.lang.String |
PERSISTENT_TAG
|
static java.lang.String |
PROTOCOL_SEPARATOR
|
static java.lang.String |
QUEUE_TYPE
|
static java.lang.String |
SPECIFICATION_VERSION_TAG
|
static java.lang.String |
TOPIC_TYPE
|
static java.lang.String |
TRANSACTED_TAG
|
Constructor Summary | |
---|---|
JMSEpr(EPR epr)
|
|
JMSEpr(EPR epr,
org.w3c.dom.Element header)
|
|
JMSEpr(java.lang.String destinationType,
java.lang.String destinationName,
java.lang.String connection)
Create a new JMS EPR. |
|
JMSEpr(java.lang.String destinationType,
java.lang.String destinationName,
java.lang.String connection,
java.util.Properties environment,
java.lang.String messageSelector)
Create a new JMS EPR. |
|
JMSEpr(java.lang.String protocol,
java.lang.String destinationType,
java.lang.String destinationName,
java.lang.String connection,
java.util.Properties environment,
java.lang.String messageSelector)
Create a new JMS EPR. |
|
JMSEpr(java.lang.String protocol,
java.lang.String destinationType,
java.lang.String destinationName,
java.lang.String connection,
java.util.Properties environment,
java.lang.String messageSelector,
boolean peristent)
Create a new JMS EPR. |
|
JMSEpr(java.lang.String protocol,
java.lang.String destinationType,
java.lang.String destinationName,
java.lang.String connection,
java.util.Properties environment,
java.lang.String messageSelector,
boolean peristent,
boolean transacted)
Create a new JMS EPR. |
|
JMSEpr(java.lang.String protocol,
java.lang.String destinationType,
java.lang.String destinationName,
java.lang.String connection,
java.util.Properties environment,
java.lang.String messageSelector,
boolean peristent,
java.lang.String acknowledgeModeStr)
Create a new JMS EPR. |
|
JMSEpr(java.lang.String protocol,
java.lang.String destinationType,
java.lang.String destinationName,
java.lang.String connection,
java.util.Properties environment,
java.lang.String messageSelector,
boolean peristent,
java.lang.String acknowledgeModeStr,
boolean transacted)
Create a new JMS EPR. |
|
JMSEpr(java.lang.String protocol,
java.lang.String destinationType,
java.lang.String destinationName,
java.lang.String connection,
java.util.Properties environment,
java.lang.String messageSelector,
boolean peristent,
java.lang.String acknowledgeModeStr,
java.lang.String username,
java.lang.String password)
Create a new JMS EPR. |
|
JMSEpr(java.lang.String protocol,
java.lang.String destinationType,
java.lang.String destinationName,
java.lang.String connection,
java.util.Properties environment,
java.lang.String messageSelector,
boolean peristent,
java.lang.String acknowledgeModeStr,
java.lang.String username,
java.lang.String password,
boolean transacted)
Create a new JMS EPR. |
Method Summary | |
---|---|
EPR |
copy()
Return a copy of this EPR. |
int |
getAcknowledgeMode()
|
java.lang.String |
getConnectionFactory()
|
java.lang.String |
getDestinationName()
|
java.lang.String |
getDestinationType()
|
java.lang.String |
getJMSSecurityCredential()
The JMS Security credential which is indended to be used as the password argument to: ConnectionFactory .createConnection(String username, String password) } |
java.lang.String |
getJMSSecurityPrincipal()
The JMS Security principal which is indended to be used as the username argument to: ConnectionFactory .createConnection(String username, String password) } |
java.util.Properties |
getJndiEnvironment()
|
java.lang.String |
getMessageSelector()
|
boolean |
getPersistent()
|
boolean |
getTransacted()
|
java.lang.String |
getVersion()
|
java.lang.String |
toString()
|
static java.net.URI |
type()
|
Methods inherited from class org.jboss.soa.esb.addressing.EPR |
---|
equals, getAddr, getURI, setAddr, setURI |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String JMS_PROTOCOL
public static final java.lang.String PROTOCOL_SEPARATOR
public static final java.lang.String ONE_ONE_PROTOCOL
public static final java.lang.String ONE_ZERO_TWO_PROTOCOL
public static final java.lang.String SPECIFICATION_VERSION_TAG
public static final java.lang.String DESTINATION_TYPE_TAG
public static final java.lang.String DESTINATION_NAME_TAG
public static final java.lang.String CONNECTION_FACTORY_TAG
public static final java.lang.String JNDI_PKG_PREFIX_TAG
public static final java.lang.String JNDI_URL_TAG
public static final java.lang.String JNDI_CONTEXT_FACTORY_TAG
public static final java.lang.String MESSAGE_SELECTOR_TAG
public static final java.lang.String QUEUE_TYPE
public static final java.lang.String TOPIC_TYPE
public static final java.lang.String DEFAULT_REPLY_TO_DESTINATION_SUFFIX
public static final java.lang.String PERSISTENT_TAG
public static final java.lang.String TRANSACTED_TAG
public static final java.lang.String ACKNOWLEDGE_MODE_TAG
public static final java.lang.String JMS_SECURITY_PRINCIPAL_TAG
ConnectionFactory.createConnection(String, String)
public static final java.lang.String JMS_SECURITY_CREDENTIAL_TAG
ConnectionFactory.createConnection(String, String)
Constructor Detail |
---|
public JMSEpr(EPR epr)
public JMSEpr(EPR epr, org.w3c.dom.Element header)
public JMSEpr(java.lang.String destinationType, java.lang.String destinationName, java.lang.String connection)
destinationType
- the type of destination (queue/topic).destinationName
- name of the queue/topic.connection
- reference to the connection factory.public JMSEpr(java.lang.String destinationType, java.lang.String destinationName, java.lang.String connection, java.util.Properties environment, java.lang.String messageSelector)
destinationType
- the type of destination (queue/topic).destinationName
- name of the queue/topic.connection
- reference to the connection factory.environment
- reference to the jndi propertiesmessageSelector
- reference to the connection factory.public JMSEpr(java.lang.String protocol, java.lang.String destinationType, java.lang.String destinationName, java.lang.String connection, java.util.Properties environment, java.lang.String messageSelector)
protocol
- the protocol version.destinationType
- the type of destination (queue/topic).destinationName
- name of the queue/topic.connection
- reference to the connection factory.environment
- reference to the jndi propertiesmessageSelector
- reference to the connection factory.public JMSEpr(java.lang.String protocol, java.lang.String destinationType, java.lang.String destinationName, java.lang.String connection, java.util.Properties environment, java.lang.String messageSelector, boolean peristent)
protocol
- the protocol version.destinationType
- the type of destination (queue/topic).destinationName
- name of the queue/topic.connection
- reference to the connection factory.environment
- reference to the jndi propertiesmessageSelector
- reference to the connection factory.peristent
- true if messages should be sent persistentlypublic JMSEpr(java.lang.String protocol, java.lang.String destinationType, java.lang.String destinationName, java.lang.String connection, java.util.Properties environment, java.lang.String messageSelector, boolean peristent, boolean transacted)
protocol
- the protocol version.destinationType
- the type of destination (queue/topic).destinationName
- name of the queue/topic.connection
- reference to the connection factory.environment
- reference to the jndi propertiesmessageSelector
- reference to the connection factory.peristent
- true if messages should be sent persistentlypublic JMSEpr(java.lang.String protocol, java.lang.String destinationType, java.lang.String destinationName, java.lang.String connection, java.util.Properties environment, java.lang.String messageSelector, boolean peristent, java.lang.String acknowledgeModeStr, boolean transacted)
protocol
- the protocol version.destinationType
- the type of destination (queue/topic).destinationName
- name of the queue/topic.connection
- reference to the connection factory.environment
- reference to the jndi propertiesmessageSelector
- reference to the connection factory.peristent
- true if messages should be sent persistentlyacknowledgeModeStr
- JMS client acknowledgement modetransacted
- true if the jms session should be transaction awarepublic JMSEpr(java.lang.String protocol, java.lang.String destinationType, java.lang.String destinationName, java.lang.String connection, java.util.Properties environment, java.lang.String messageSelector, boolean peristent, java.lang.String acknowledgeModeStr)
protocol
- the protocol version.destinationType
- the type of destination (queue/topic).destinationName
- name of the queue/topic.connection
- reference to the connection factory.environment
- reference to the jndi propertiesmessageSelector
- reference to the connection factory.peristent
- true if messages should be sent persistentlyacknowledgeModeStr
- JMS client acknowledgement modepublic JMSEpr(java.lang.String protocol, java.lang.String destinationType, java.lang.String destinationName, java.lang.String connection, java.util.Properties environment, java.lang.String messageSelector, boolean peristent, java.lang.String acknowledgeModeStr, java.lang.String username, java.lang.String password)
protocol
- the protocol version.destinationType
- the type of destination (queue/topic).destinationName
- name of the queue/topic.connection
- reference to the connection factory.environment
- reference to the jndi propertiesmessageSelector
- reference to the connection factory.peristent
- true if messages should be sent persistentlyacknowledgeModeStr
- JMS client acknowledgement modeusername
- username to use when creating JMS connectionspassword
- password to use when creating JMS connectionspublic JMSEpr(java.lang.String protocol, java.lang.String destinationType, java.lang.String destinationName, java.lang.String connection, java.util.Properties environment, java.lang.String messageSelector, boolean peristent, java.lang.String acknowledgeModeStr, java.lang.String username, java.lang.String password, boolean transacted)
protocol
- the protocol version.destinationType
- the type of destination (queue/topic).destinationName
- name of the queue/topic.connection
- reference to the connection factory.environment
- reference to the jndi propertiesmessageSelector
- reference to the connection factory.peristent
- true if messages should be sent persistentlyacknowledgeModeStr
- JMS client acknowledgement modeusername
- JMS destination usernamepassword
- JMS destination passwordtransacted
- true if the jms session should be transaction awareMethod Detail |
---|
public final java.lang.String getDestinationType() throws java.net.URISyntaxException
java.net.URISyntaxException
- thrown if the address is malformed.public final java.lang.String getVersion() throws java.net.URISyntaxException
java.net.URISyntaxException
- thrown if the address is malformed.public final java.lang.String getDestinationName() throws java.net.URISyntaxException
java.net.URISyntaxException
- thrown if the address is malformed.public final java.lang.String getConnectionFactory() throws java.net.URISyntaxException
null
if
none is set.
java.net.URISyntaxException
- thrown if the address is malformed.public final java.util.Properties getJndiEnvironment() throws java.net.URISyntaxException
null
if
none is set.
java.net.URISyntaxException
- thrown if the address is malformed.public final java.lang.String getMessageSelector() throws java.net.URISyntaxException
null
if none
is set.
java.net.URISyntaxException
- thrown if the address is malformed.public final boolean getPersistent()
public final int getAcknowledgeMode()
int
JMS Acknowledge mode, one of:
Session.AUTO_ACKNOWLEDGE
Session.CLIENT_ACKNOWLEDGE
Session.DUPS_OK_ACKNOWLEDGE
public final java.lang.String getJMSSecurityPrincipal()
ConnectionFactory
.createConnection(String username, String password) }
public final java.lang.String getJMSSecurityCredential()
ConnectionFactory
.createConnection(String username, String password) }
public final boolean getTransacted()
public EPR copy()
EPR
copy
in class EPR
public java.lang.String toString()
toString
in class EPR
public static final java.net.URI type()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |