|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atomikos.jms.MessageProducerSession
public abstract class MessageProducerSession
Copyright © 2006, Atomikos. All rights reserved. Common logic for the message producer session.
Constructor Summary | |
---|---|
protected |
MessageProducerSession()
|
Method Summary | |
---|---|
BytesMessage |
createBytesMessage()
Create a bytes message. |
MapMessage |
createMapMessage()
Create a map message. |
ObjectMessage |
createObjectMessage()
Create an object message. |
StreamMessage |
createStreamMessage()
Create a stream message. |
TextMessage |
createTextMessage()
Create a text message. |
protected AbstractConnectionFactoryBean |
getAbstractConnectionFactoryBean()
|
int |
getDeliveryMode()
|
protected Destination |
getDestination()
|
int |
getPriority()
|
Destination |
getReplyToDestination()
Gets the replyToDestination. |
long |
getTimeToLive()
|
String |
getUser()
|
void |
sendMessage(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(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(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 Destination getDestination()
protected void setDestination(Destination destination)
public String getUser()
public void setReplyToDestination(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 Destination getReplyToDestination()
public void setPassword(String password)
password
- The password.public void setUser(String user)
user
- public void sendMessage(Message message) throws JMSException
message
-
JMSException
- On failures.public TextMessage createTextMessage() throws JMSException
JMSException
public MapMessage createMapMessage() throws JMSException
JMSException
public ObjectMessage createObjectMessage() throws JMSException
JMSException
public BytesMessage createBytesMessage() throws JMSException
JMSException
public StreamMessage createStreamMessage() throws JMSException
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 |