org.jboss.soa.esb.listeners
Class ListenerUtil

java.lang.Object
  extended by org.jboss.soa.esb.listeners.ListenerUtil

public class ListenerUtil
extends java.lang.Object


Method Summary
static EPR assembleEpr(ConfigTree tree)
           
static FileEpr fileEprFromElement(ConfigTree tree)
           
static java.lang.String getAttrAndWarn(ConfigTree tree, java.lang.String tag, java.lang.String defaultValue)
           
static JDBCEpr jdbcEprFromElement(ConfigTree tree)
           
static JMSEpr jmsEprFromElement(ConfigTree tree)
           
static ListenerManager launchManager(ConfigTree tree, boolean inNewThread)
          ListenerManager Launcher.
static ListenerManager launchManager(java.lang.String parametersName, boolean inNewThread)
          ListenerManager Launcher.
static EPR tryToDeliver(Message message, java.lang.String category, java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

launchManager

public static ListenerManager launchManager(java.lang.String parametersName,
                                            boolean inNewThread)
                                     throws java.lang.Exception
ListenerManager Launcher.

Parameters:
parametersName - String - used to retrieve the ConfigTree with run time configuration values
inNewThread - boolean - if 'true' will launch the ListenerManager in a new thread, and wait until controlled listeners are up and running
if false, will instantiate and run the Controller in current thread - flow control will only return to invoker once the controller's run() method has finished
Returns:
ListenerManager
Throws:
java.lang.Exception

launchManager

public static ListenerManager launchManager(ConfigTree tree,
                                            boolean inNewThread)
                                     throws java.lang.Exception
ListenerManager Launcher.

Parameters:
parametersName - String - used to retrieve the ConfigTree with run time configuration values
inNewThread - boolean - if 'true' will launch the ListenerManager in a new thread, and wait until controlled listeners are up and running
if false, will instantiate and run the Controller in current thread - flow control will only return to invoker once the controller's run() method has finished
Returns:
ListenerManager
Throws:
java.lang.Exception

tryToDeliver

public static EPR tryToDeliver(Message message,
                               java.lang.String category,
                               java.lang.String name)
                        throws java.lang.Exception
Throws:
java.lang.Exception

assembleEpr

public static EPR assembleEpr(ConfigTree tree)
                       throws ConfigurationException
Throws:
ConfigurationException

jmsEprFromElement

public static JMSEpr jmsEprFromElement(ConfigTree tree)
                                throws ConfigurationException
Throws:
ConfigurationException

fileEprFromElement

public static FileEpr fileEprFromElement(ConfigTree tree)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

jdbcEprFromElement

public static JDBCEpr jdbcEprFromElement(ConfigTree tree)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

getAttrAndWarn

public static java.lang.String getAttrAndWarn(ConfigTree tree,
                                              java.lang.String tag,
                                              java.lang.String defaultValue)
                                       throws ConfigurationException
Throws:
ConfigurationException