|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atomikos.jms.MessageProducerSession
public abstract class MessageProducerSession
Common logic for the message producer session.
Constructor Summary | |
---|---|
protected |
MessageProducerSession()
|
Method Summary | |
---|---|
javax.jms.BytesMessage |
createBytesMessage()
Create a bytes message. |
javax.jms.MapMessage |
createMapMessage()
Create a map message. |
javax.jms.ObjectMessage |
createObjectMessage()
Create an object message. |
javax.jms.StreamMessage |
createStreamMessage()
Create a stream message. |
javax.jms.TextMessage |
createTextMessage()
Create a text message. |
protected AbstractConnectionFactoryBean |
getAbstractConnectionFactoryBean()
|
int |
getDeliveryMode()
|
protected javax.jms.Destination |
getDestination()
|
protected abstract String |
getDestinationName()
|
int |
getPriority()
|
javax.jms.Destination |
getReplyToDestination()
Gets the replyToDestination. |
protected abstract String |
getReplyToDestinationName()
|
long |
getTimeToLive()
|
String |
getUser()
|
void |
init()
Initializes the session for sending. |
void |
sendMessage(javax.jms.Message message)
Send a message to the destination queue, in a transactional way. |
protected void |
setAbstractConnectionFactoryBean(AbstractConnectionFactoryBean bean)
|
void |
setDeliveryMode(int i)
Set the deliverymode for messages sent in this session (optional). |
protected void |
setDestination(javax.jms.Destination destination)
|
void |
setPassword(String password)
Set the password for explicit authentication (optional). |
void |
setPriority(int i)
Set the priority for messages sent in this session (optional). |
void |
setReplyToDestination(javax.jms.Destination destination)
If this session is used for sending request/reply messages, then this property indicates the destination where the replies are to be sent (optional). |
void |
setTimeToLive(long l)
Set the time to live for messages sent in this session (optional). |
void |
setUser(String user)
Set the user to use for explicit authentication (optional). |
void |
stop()
Close any open resources. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected MessageProducerSession()
Method Detail |
---|
protected void setAbstractConnectionFactoryBean(AbstractConnectionFactoryBean bean)
protected AbstractConnectionFactoryBean getAbstractConnectionFactoryBean()
protected javax.jms.Destination getDestination()
protected void setDestination(javax.jms.Destination destination)
protected abstract String getDestinationName()
protected abstract String getReplyToDestinationName()
public void init()
public String getUser()
public void setReplyToDestination(javax.jms.Destination destination)
The replyToDestination should be in the same JMS vendor domain as the send queue. To cross domains, configure a bridge for both the request and the reply channels.
public javax.jms.Destination getReplyToDestination()
public void setPassword(String password)
password
- The password.public void setUser(String user)
user
- public void sendMessage(javax.jms.Message message) throws javax.jms.JMSException
message
-
javax.jms.JMSException
- On failures.public javax.jms.TextMessage createTextMessage() throws javax.jms.JMSException
javax.jms.JMSException
public javax.jms.MapMessage createMapMessage() throws javax.jms.JMSException
javax.jms.JMSException
public javax.jms.ObjectMessage createObjectMessage() throws javax.jms.JMSException
javax.jms.JMSException
public javax.jms.BytesMessage createBytesMessage() throws javax.jms.JMSException
javax.jms.JMSException
public javax.jms.StreamMessage createStreamMessage() throws javax.jms.JMSException
javax.jms.JMSException
public void stop()
public int getDeliveryMode()
public int getPriority()
public long getTimeToLive()
public void setDeliveryMode(int i)
- public void setPriority(int i)
- public void setTimeToLive(long l)
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |