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

KS: It is silly we open and close the jms connection with eash request.

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, log, m_oaMssProd, m_oCtx, m_oSess, mPool
 
Fields inherited from class org.jboss.soa.esb.notification.NotificationTarget
m_oParms, PRM_NOTIF_CLASS
 
Constructor Summary
NotifyQueues(ConfigTree p_oP)
           
 
Method Summary
protected  void sendToAll(javax.jms.Message p_oMsg)
          Send a message to all the configured queues.
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 ConfigurationException,
                    javax.jms.JMSException,
                    org.jboss.internal.soa.esb.rosetta.pooling.ConnectionException
Throws:
ConfigurationException
javax.jms.JMSException
org.jboss.internal.soa.esb.rosetta.pooling.ConnectionException
Method Detail

setQueues

protected void setQueues(ConfigTree[] p_oaP)
                  throws ConfigurationException,
                         javax.jms.JMSException,
                         org.jboss.internal.soa.esb.rosetta.pooling.ConnectionException
Throws:
ConfigurationException
javax.jms.JMSException
org.jboss.internal.soa.esb.rosetta.pooling.ConnectionException

sendToAll

protected void sendToAll(javax.jms.Message p_oMsg)
Send a message to all the configured queues.

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