|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.soa.esb.notification.NotificationTarget
org.jboss.soa.esb.notification.NotifyJMS
public abstract class NotifyJMS
Abstract class that defines the behaviour of NotifyQueues and NotifyTopics (and in fact any other javax.jms.Destination object), and provides common methods to derived classes
Description:
Author: Heuristica - Buenos Aires - Argentina
| Field Summary | |
|---|---|
static java.lang.String |
ATT_DEST_NAME
Attribute name mnemonic for the att that will hold the JNDI name of the destination javax.jms.Destination object |
static java.lang.String |
ATT_PROP_NAME
Attribute name mnemonic for the name of the message property to fill with contents of the "value" aattribute |
static java.lang.String |
ATT_PROP_VALUE
Attribute name mnemonic for the value to assign to the corresponding message property |
static java.lang.String |
CHILD_MSG_PROP
Element name mnemonic to search for child elements in the DomElement at constructor time, that will hold a "name" "value" pair to be included in the JMS message header |
protected javax.jms.MessageProducer[] |
m_oaMssProd
Array with an instance of javax.jms.MessageProducer on each entry that will be used to send the notification at sendNotification() time |
protected javax.jms.Connection |
m_oConn
The javax.jms.Connection instance used to talk to JMS |
protected javax.naming.Context |
m_oCtx
This object holds the JNDI naming context that will be used to obtain a JMS destination (javax.jms.Destination) to send/publish the notification at sendNotification() time |
protected javax.jms.Session |
m_oSess
The javax.jms.Session instance used to talk to JMS |
| Fields inherited from class org.jboss.soa.esb.notification.NotificationTarget |
|---|
m_oParms, PRM_NOTIF_CLASS |
| Constructor Summary | |
|---|---|
protected |
NotifyJMS(DomElement p_oP)
Constructor that will be called by child classes to perform initialization tasks that are common to all derived classes |
| Method Summary | |
|---|---|
void |
release()
Performs an orderly release of all JMS resources utilized - Well behaved developers should always call this method before unreferencing this object |
void |
sendNotification(java.io.Serializable p_o)
Send a JMS message using p_o to fill in the message content and the list of message properties that will be added to the JMS message header fields |
protected abstract void |
sendToAll(javax.jms.Message p_oMsg)
Abstract method - All classes that extend NotifyJMS must implement it according to their own javax.jms.Destination needs (Queue/Topic) |
| Methods inherited from class org.jboss.soa.esb.notification.NotificationTarget |
|---|
fromParams |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CHILD_MSG_PROP
public static final java.lang.String ATT_PROP_NAME
public static final java.lang.String ATT_PROP_VALUE
public static final java.lang.String ATT_DEST_NAME
protected javax.naming.Context m_oCtx
protected javax.jms.Connection m_oConn
protected javax.jms.Session m_oSess
protected javax.jms.MessageProducer[] m_oaMssProd
| Constructor Detail |
|---|
protected NotifyJMS(DomElement p_oP)
throws java.lang.Exception
p_oP - DomElement
Will contain a variable number of "messageProp" child elements that will be added to messages sent to
java.lang.Exception| Method Detail |
|---|
protected abstract void sendToAll(javax.jms.Message p_oMsg)
p_oMsg - Messagepublic void release()
public void sendNotification(java.io.Serializable p_o)
throws java.lang.Exception
sendNotification in class NotificationTargetp_o - Object - This object or thie object's toString() method will
supply contents of JMS message
java.lang.Exception - - invoke Exception.getMessage() at runtime for this objectCHILD_MSG_PROP
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||