com.legstar.cixs.jbossesb
Class EsbServiceInvokerAction

java.lang.Object
  extended by org.jboss.soa.esb.actions.AbstractActionLifecycle
      extended by org.jboss.soa.esb.actions.AbstractActionPipelineProcessor
          extended by com.legstar.cixs.jbossesb.AbstractLegStarAction
              extended by com.legstar.cixs.jbossesb.EsbServiceInvokerAction
All Implemented Interfaces:
org.jboss.soa.esb.actions.ActionLifecycle, org.jboss.soa.esb.actions.ActionPipelineProcessor

public class EsbServiceInvokerAction
extends AbstractLegStarAction

This action invokes a registered service within the ESB using ServiceInvoker. The target service is specified at configuration time. It assumes the message processed has valid content for the target service.


Field Summary
static long DEFAULT_INVOKE_TIMEOUT_PROPERTY
          The default invoke timeout in milliseconds.
static String ESB_SERVICE_CATEGORY_NAME_PROPERTY
          Name of property holding the target ESB service category name.
static String ESB_SERVICE_NAME_PROPERTY
          Name of property holding the target ESB service name.
static String INVOKE_TIMEOUT_PROPERTY
          Name of property holding the invoke timeout in milliseconds.
 
Fields inherited from interface org.jboss.soa.esb.actions.ActionPipelineProcessor
PROCESS_EXCEPTION_METHOD, PROCESS_METHOD, PROCESS_SUCCESS_METHOD
 
Constructor Summary
EsbServiceInvokerAction(org.jboss.soa.esb.helpers.ConfigTree config)
          Standard constructor.
 
Method Summary
 long getInvokeTimeoutMillis()
           
 String getServiceCategory()
           
 org.jboss.soa.esb.client.ServiceInvoker getServiceInvoker()
          First tries to get a previous WebServiceInvoker associated with the current thread.
 String getServiceName()
           
 org.jboss.soa.esb.message.Message process(org.jboss.soa.esb.message.Message esbMessage)
          
 
Methods inherited from class com.legstar.cixs.jbossesb.AbstractLegStarAction
getConfig, getVersionProperties, traceVersion
 
Methods inherited from class org.jboss.soa.esb.actions.AbstractActionPipelineProcessor
processException, processSuccess
 
Methods inherited from class org.jboss.soa.esb.actions.AbstractActionLifecycle
destroy, initialise
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.soa.esb.actions.ActionLifecycle
destroy, initialise
 

Field Detail

ESB_SERVICE_NAME_PROPERTY

public static final String ESB_SERVICE_NAME_PROPERTY
Name of property holding the target ESB service name.

See Also:
Constant Field Values

ESB_SERVICE_CATEGORY_NAME_PROPERTY

public static final String ESB_SERVICE_CATEGORY_NAME_PROPERTY
Name of property holding the target ESB service category name.

See Also:
Constant Field Values

INVOKE_TIMEOUT_PROPERTY

public static final String INVOKE_TIMEOUT_PROPERTY
Name of property holding the invoke timeout in milliseconds.

See Also:
Constant Field Values

DEFAULT_INVOKE_TIMEOUT_PROPERTY

public static final long DEFAULT_INVOKE_TIMEOUT_PROPERTY
The default invoke timeout in milliseconds.

See Also:
Constant Field Values
Constructor Detail

EsbServiceInvokerAction

public EsbServiceInvokerAction(org.jboss.soa.esb.helpers.ConfigTree config)
                        throws org.jboss.soa.esb.ConfigurationException
Standard constructor. The configuration parameters supported are:

Parameters:
config - parameters setup in jboss-esb.xml
Throws:
org.jboss.soa.esb.ConfigurationException - if configuration parameters are invalid
Method Detail

process

public org.jboss.soa.esb.message.Message process(org.jboss.soa.esb.message.Message esbMessage)
                                          throws org.jboss.soa.esb.actions.ActionProcessingException

Throws:
org.jboss.soa.esb.actions.ActionProcessingException

getInvokeTimeoutMillis

public long getInvokeTimeoutMillis()
Returns:
the invoke timeout in milliseconds

getServiceName

public String getServiceName()
Returns:
the target ESB service name

getServiceCategory

public String getServiceCategory()
Returns:
the target ESB service category name

getServiceInvoker

public org.jboss.soa.esb.client.ServiceInvoker getServiceInvoker()
                                                          throws org.jboss.soa.esb.listeners.message.MessageDeliverException
First tries to get a previous WebServiceInvoker associated with the current thread. If none exist, then create a new entry.

Returns:
the generic web service invoker
Throws:
org.jboss.soa.esb.listeners.message.MessageDeliverException - if service invoker cannot be created


Copyright © 2011 LegSem. All Rights Reserved.