org.apache.camel.component.jbi
Class CamelJbiComponent
java.lang.Object
org.apache.servicemix.common.AsyncBaseLifeCycle
org.apache.servicemix.common.BaseLifeCycle
org.apache.servicemix.common.DefaultComponent
org.apache.camel.component.jbi.CamelJbiComponent
- All Implemented Interfaces:
- javax.jbi.component.Component, javax.jbi.component.ComponentLifeCycle, org.apache.servicemix.common.ServiceMixComponent, org.apache.servicemix.MessageExchangeListener
public class CamelJbiComponent
- extends org.apache.servicemix.common.DefaultComponent
- implements org.apache.camel.Component<org.apache.camel.Exchange>
Deploys the camel endpoints within JBI
- Version:
- $Revision: 426415 $
Fields inherited from class org.apache.servicemix.common.DefaultComponent |
logger, registry, serviceUnit, serviceUnitManager |
Fields inherited from class org.apache.servicemix.common.AsyncBaseLifeCycle |
channel, component, context, correlationId, currentState, executor, executorFactory, INITIALIZED, mbeanName, poller, polling, processors, running, transactionManager, workManagerCreated |
Methods inherited from class org.apache.servicemix.common.DefaultComponent |
addEndpoint, asList, createRegistry, createServiceUnitManager, doInit, doShutDown, doStart, doStop, getComponentContext, getComponentName, getEPRElementName, getEPRServiceName, getLifeCycle, getLogger, getRegistry, getServiceDescription, getServiceUnit, getServiceUnitManager, isExchangeWithConsumerOkay, isExchangeWithProviderOkay, resolveEndpointReference, validateEndpoint |
Methods inherited from class org.apache.servicemix.common.BaseLifeCycle |
onMessageExchange |
Methods inherited from class org.apache.servicemix.common.AsyncBaseLifeCycle |
createExecutorFactory, createExtensionMBeanName, exceptionShouldRollbackTx, findExecutorFactory, getContext, getCurrentState, getExecutor, getExtensionMBean, getExtensionMBeanName, init, isInitialized, isShutDown, isStarted, isStopped, isUnknown, pollDeliveryChannel, prepareConsumerExchange, processExchange, processExchangeInTx, sendConsumerExchange, sendConsumerExchange, setComponent, setCurrentState, shutDown, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.servicemix.common.ServiceMixComponent |
getExecutor, prepareConsumerExchange, sendConsumerExchange |
CamelJbiComponent
public CamelJbiComponent()
getConfiguredEndpoints
protected List<CamelJbiEndpoint> getConfiguredEndpoints()
- Specified by:
getConfiguredEndpoints
in class org.apache.servicemix.common.DefaultComponent
- Returns:
- List of endpoints
- See Also:
DefaultComponent.getConfiguredEndpoints()
getEndpointClasses
protected Class[] getEndpointClasses()
- Specified by:
getEndpointClasses
in class org.apache.servicemix.common.DefaultComponent
- Returns:
- Class[]
- See Also:
DefaultComponent.getEndpointClasses()
getBinding
public JbiBinding getBinding()
- Returns:
- the binding
setBinding
public void setBinding(JbiBinding binding)
- Parameters:
binding
- the binding to set
getEPRProtocols
protected String[] getEPRProtocols()
- Overrides:
getEPRProtocols
in class org.apache.servicemix.common.DefaultComponent
getResolvedEPR
protected org.apache.servicemix.common.Endpoint getResolvedEPR(javax.jbi.servicedesc.ServiceEndpoint ep)
throws Exception
- Overrides:
getResolvedEPR
in class org.apache.servicemix.common.AsyncBaseLifeCycle
- Throws:
Exception
createEndpoint
public CamelJbiEndpoint createEndpoint(javax.jbi.servicedesc.ServiceEndpoint ep)
throws URISyntaxException
- Throws:
URISyntaxException
createEndpoint
public org.apache.camel.Endpoint<org.apache.camel.Exchange> createEndpoint(String uri)
getCamelContext
public org.apache.camel.CamelContext getCamelContext()
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext)
getExecutorService
public ScheduledExecutorService getExecutorService()
activateJbiEndpoint
public CamelJbiEndpoint activateJbiEndpoint(JbiEndpoint camelEndpoint,
org.apache.camel.Processor processor)
throws Exception
- Returns a JBI endpoint created for the given Camel endpoint
- Throws:
Exception
Copyright © 2007 Apache Software Foundation. All Rights Reserved.