|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.arch4j.messaging.MessageFacade
This abstract class provides simplified and provider-independent access to
Message
s and commit/rollback functionality.
It is implemented by the MessageQueueFacade
and
MessageTopicFacade
classes.
Constructor Summary | |
MessageFacade()
|
Method Summary | |
void |
commit()
Commit all messages done in this transaction and releases any locks currently held. |
javax.jms.BytesMessage |
createBytesMessage()
Create a BytesMessage. |
javax.jms.MapMessage |
createMapMessage()
Create a MapMessage. |
javax.jms.Message |
createMessage()
Create a Message. |
javax.jms.ObjectMessage |
createObjectMessage()
Create an ObjectMessage. |
javax.jms.ObjectMessage |
createObjectMessage(Serializable object)
Create an initialized ObjectMessage. |
javax.jms.StreamMessage |
createStreamMessage()
Create a StreamMessage. |
javax.jms.TextMessage |
createTextMessage()
Create a TextMessage. |
javax.jms.TextMessage |
createTextMessage(StringBuffer stringBuffer)
Create a TextMessage. |
protected abstract javax.jms.Session |
getSession()
Returns the Session reference associated with the
implementation object. |
void |
rollback()
Rollback any messages done in this transaction and releases any locks currently held. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MessageFacade()
Method Detail |
protected abstract javax.jms.Session getSession()
Session
reference associated with the
implementation object.
public void commit()
public void rollback()
public javax.jms.BytesMessage createBytesMessage()
public javax.jms.MapMessage createMapMessage()
public javax.jms.Message createMessage()
public javax.jms.ObjectMessage createObjectMessage()
public javax.jms.ObjectMessage createObjectMessage(Serializable object)
object
- the object used to initialize this message.public javax.jms.StreamMessage createStreamMessage()
public javax.jms.TextMessage createTextMessage()
public javax.jms.TextMessage createTextMessage(StringBuffer stringBuffer)
|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |