org.apache.cxf.transport.jms
Class JMSTransportBase
java.lang.Object
JMSTransportBaseConfigBean
org.apache.cxf.transport.jms.JMSTransportBase
- Direct Known Subclasses:
- JMSConduit, JMSDestination
public class JMSTransportBase
- extends JMSTransportBaseConfigBean
|
Constructor Summary |
JMSTransportBase(org.apache.cxf.Bus b,
org.apache.cxf.service.model.EndpointInfo endpoint,
boolean isServer)
|
|
Method Summary |
protected void |
connected(javax.jms.Destination target,
javax.jms.Destination reply,
JMSSessionFactory factory)
Callback from the JMSProviderHub indicating the ClientTransport has
been sucessfully connected. |
protected java.lang.String |
getAddrUriFromJMSAddrPolicy()
|
protected java.lang.String |
getCorrelationId(JMSMessageHeadersType headers)
|
protected int |
getJMSDeliveryMode(JMSMessageHeadersType headers)
|
protected int |
getJMSPriority(JMSMessageHeadersType headers)
|
protected java.lang.String |
getReplyTotAddrUriFromJMSAddrPolicy()
|
protected long |
getTimeToLive(JMSMessageHeadersType headers)
|
protected boolean |
isDestinationStyleQueue()
|
protected javax.jms.Message |
marshal(java.lang.Object payload,
javax.jms.Session session,
javax.jms.Destination replyTo,
java.lang.String messageType)
Create a JMS of the appropriate type populated with the given payload. |
protected JMSMessageHeadersType |
populateIncomingContext(javax.jms.Message message,
org.apache.cxf.message.Message inMessage,
java.lang.String headerType)
|
protected void |
setMessageProperties(JMSMessageHeadersType headers,
javax.jms.Message message)
|
protected java.lang.Object |
unmarshal(javax.jms.Message message,
java.lang.String messageType)
Unmarshal the payload of an incoming message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
targetDestination
protected javax.jms.Destination targetDestination
replyDestination
protected javax.jms.Destination replyDestination
sessionFactory
protected JMSSessionFactory sessionFactory
bus
protected org.apache.cxf.Bus bus
endpointInfo
protected org.apache.cxf.service.model.EndpointInfo endpointInfo
JMSTransportBase
public JMSTransportBase(org.apache.cxf.Bus b,
org.apache.cxf.service.model.EndpointInfo endpoint,
boolean isServer)
connected
protected void connected(javax.jms.Destination target,
javax.jms.Destination reply,
JMSSessionFactory factory)
- Callback from the JMSProviderHub indicating the ClientTransport has
been sucessfully connected.
- Parameters:
targetDestination - the target destinationsessionFactory - used to get access to a pooled JMS resources
marshal
protected javax.jms.Message marshal(java.lang.Object payload,
javax.jms.Session session,
javax.jms.Destination replyTo,
java.lang.String messageType)
throws javax.jms.JMSException
- Create a JMS of the appropriate type populated with the given payload.
- Parameters:
payload - the message payload, expected to be either of type
String or byte[] depending on payload typesession - the JMS sessionreplyTo - the ReplyTo destination if any
- Returns:
- a JMS of the appropriate type populated with the given payload
- Throws:
javax.jms.JMSException
unmarshal
protected java.lang.Object unmarshal(javax.jms.Message message,
java.lang.String messageType)
throws javax.jms.JMSException
- Unmarshal the payload of an incoming message.
- Parameters:
message - the incoming message
- Returns:
- the unmarshalled message payload, either of type String or
byte[] depending on payload type
- Throws:
javax.jms.JMSException
populateIncomingContext
protected JMSMessageHeadersType populateIncomingContext(javax.jms.Message message,
org.apache.cxf.message.Message inMessage,
java.lang.String headerType)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
getJMSDeliveryMode
protected int getJMSDeliveryMode(JMSMessageHeadersType headers)
getJMSPriority
protected int getJMSPriority(JMSMessageHeadersType headers)
getTimeToLive
protected long getTimeToLive(JMSMessageHeadersType headers)
getCorrelationId
protected java.lang.String getCorrelationId(JMSMessageHeadersType headers)
setMessageProperties
protected void setMessageProperties(JMSMessageHeadersType headers,
javax.jms.Message message)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
getAddrUriFromJMSAddrPolicy
protected java.lang.String getAddrUriFromJMSAddrPolicy()
getReplyTotAddrUriFromJMSAddrPolicy
protected java.lang.String getReplyTotAddrUriFromJMSAddrPolicy()
isDestinationStyleQueue
protected boolean isDestinationStyleQueue()
Copyright © 2006 Apache Software Foundation. All Rights Reserved.