org.jboss.soa.esb.notification
Class NotifyQueues

java.lang.Object
  extended by org.jboss.soa.esb.notification.NotificationTarget
      extended by org.jboss.soa.esb.notification.NotifyJMS
          extended by org.jboss.soa.esb.notification.NotifyQueues

public class NotifyQueues
extends NotifyJMS

This class that implements abstract methods defined in it's superclass

Description:

Author: Heuristica - Buenos Aires - Argentina

Version:
1.0

Field Summary
static java.lang.String CHILD_QUEUE
          Element name mnemonic to search for child elements in the ConfigTree at constructor time, that will hold a "jndiName" attribute specifying the value to look up in the JNDI context in order to obtain a queue
static java.lang.String CONNECTION_FACTORY
          Connection Factory JNDI name.
 
Fields inherited from class org.jboss.soa.esb.notification.NotifyJMS
ATT_DEST_NAME, ATT_PROP_NAME, ATT_PROP_VALUE, CHILD_MSG_PROP, m_oaMssProd, m_oConn, m_oCtx, m_oSess
 
Fields inherited from class org.jboss.soa.esb.notification.NotificationTarget
m_oParms, PRM_NOTIF_CLASS
 
Constructor Summary
NotifyQueues(ConfigTree p_oP)
           
 
Method Summary
protected  javax.jms.QueueConnectionFactory lookupQueueConnectionFactory()
          Get the QueueConnectionFactory to be used for this instance.
protected  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)
protected  void setQueues(ConfigTree[] p_oaP)
           
 
Methods inherited from class org.jboss.soa.esb.notification.NotifyJMS
release, sendNotification
 
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

CONNECTION_FACTORY

public static final java.lang.String CONNECTION_FACTORY
Connection Factory JNDI name.

See Also:
Constant Field Values

CHILD_QUEUE

public static final java.lang.String CHILD_QUEUE
Element name mnemonic to search for child elements in the ConfigTree at constructor time, that will hold a "jndiName" attribute specifying the value to look up in the JNDI context in order to obtain a queue

See Also:
NotifyJMS.ATT_DEST_NAME, Constant Field Values
Constructor Detail

NotifyQueues

public NotifyQueues(ConfigTree p_oP)
             throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

setQueues

protected void setQueues(ConfigTree[] p_oaP)
                  throws java.lang.Exception
Throws:
java.lang.Exception

lookupQueueConnectionFactory

protected javax.jms.QueueConnectionFactory lookupQueueConnectionFactory()
                                                                 throws javax.naming.NamingException
Get the QueueConnectionFactory to be used for this instance.

Can be overridden for testing.

Returns:
The QueueConnectionFactory fro the JNDI context.
Throws:
javax.naming.NamingException

sendToAll

protected void sendToAll(javax.jms.Message p_oMsg)
Description copied from class: NotifyJMS
Abstract method - All classes that extend NotifyJMS must implement it according to their own javax.jms.Destination needs (Queue/Topic)

Specified by:
sendToAll in class NotifyJMS
Parameters:
p_oMsg - Message