org.jboss.soa.esb.listeners.gateway.camel
Class CamelGateway

java.lang.Object
  extended by org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle
      extended by org.jboss.soa.esb.listeners.gateway.camel.CamelGateway
All Implemented Interfaces:
ManagedLifecycle

public class CamelGateway
extends AbstractManagedLifecycle

The CamelGateway leverages Apache Camel's input capabilities, translates the Camel Message to an ESB Message, and invokes the associated ESB Service.

Configuration example:

<jbossesb ...>
  <providers>
    <camel-provider name="...">
      <camel-bus busid="...">
        <from uri="..."/>
         ...
      </camel-bus>
    </camel-provider>
  </providers>
  <services>
    <listeners>
      <camel-gateway name="..." busidref="..."/>
    </listeners>
    <actions>
      <action .../>
    </actions>
  </services>
</jbossesb>

For more detailed information, please visit this wiki page:
http://community.jboss.org/wiki/CamelGateway
or refer to the Programmer's Guide.

Author:
dward at jboss.org

Field Summary
static java.lang.String ROUTES
           
 
Fields inherited from class org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle
PARAM_TERMINATION_PERIOD
 
Constructor Summary
CamelGateway(ConfigTree config)
           
 
Method Summary
protected  void doDestroy()
          Handle the destroy of the managed instance.
protected  void doInitialise()
          Handle the initialisation of the managed instance.
protected  void doStart()
          Handle the start of the managed instance.
protected  void doStop()
          Handle the stop of the managed instance.
 
Methods inherited from class org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle
addManagedLifecycleEventListener, changeState, destroy, getConfig, getState, getTerminationPeriod, initialise, removeManagedLifecycleEventListener, start, stop, waitUntilDestroyed, waitUntilDestroyed, waitUntilNotState, waitUntilState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROUTES

public static final java.lang.String ROUTES
See Also:
Constant Field Values
Constructor Detail

CamelGateway

public CamelGateway(ConfigTree config)
             throws ConfigurationException
Throws:
ConfigurationException
Method Detail

doInitialise

protected void doInitialise()
                     throws ManagedLifecycleException
Description copied from class: AbstractManagedLifecycle
Handle the initialisation of the managed instance.

Specified by:
doInitialise in class AbstractManagedLifecycle
Throws:
ManagedLifecycleException - for errors while initialisation.

doStart

protected void doStart()
                throws ManagedLifecycleException
Description copied from class: AbstractManagedLifecycle
Handle the start of the managed instance.

Specified by:
doStart in class AbstractManagedLifecycle
Throws:
ManagedLifecycleException - for errors while starting.

doStop

protected void doStop()
               throws ManagedLifecycleException
Description copied from class: AbstractManagedLifecycle
Handle the stop of the managed instance.

Specified by:
doStop in class AbstractManagedLifecycle
Throws:
ManagedLifecycleException - for errors while stopping.

doDestroy

protected void doDestroy()
                  throws ManagedLifecycleException
Description copied from class: AbstractManagedLifecycle
Handle the destroy of the managed instance.

Specified by:
doDestroy in class AbstractManagedLifecycle
Throws:
ManagedLifecycleException - for errors while destroying.