org.apache.camel.component.jbi
Class CamelJbiEndpoint

java.lang.Object
  extended by org.apache.servicemix.common.Endpoint
      extended by org.apache.servicemix.common.endpoints.SimpleEndpoint
          extended by org.apache.servicemix.common.endpoints.ProviderEndpoint
              extended by org.apache.camel.component.jbi.CamelJbiEndpoint
All Implemented Interfaces:
org.apache.servicemix.common.ExchangeProcessor

public class CamelJbiEndpoint
extends org.apache.servicemix.common.endpoints.ProviderEndpoint

A JBI endpoint which when invoked will delegate to a Camel endpoint

Version:
$Revision: 426415 $

Field Summary
static QName SERVICE_NAME
           
 
Fields inherited from class org.apache.servicemix.common.Endpoint
definition, description, endpoint, interfaceName, logger, service, serviceUnit
 
Constructor Summary
CamelJbiEndpoint(org.apache.servicemix.common.ServiceUnit serviceUnit, org.apache.camel.Endpoint camelEndpoint, JbiBinding binding, org.apache.camel.Processor camelProcesso)
           
CamelJbiEndpoint(org.apache.servicemix.common.ServiceUnit serviceUnit, QName service, String endpoint, org.apache.camel.Endpoint camelEndpoint, JbiBinding binding, org.apache.camel.Processor camelProcessor)
           
 
Method Summary
protected  void processInOnly(javax.jbi.messaging.MessageExchange exchange, javax.jbi.messaging.NormalizedMessage in)
           
protected  void processInOut(javax.jbi.messaging.MessageExchange exchange, javax.jbi.messaging.NormalizedMessage in, javax.jbi.messaging.NormalizedMessage out)
           
 
Methods inherited from class org.apache.servicemix.common.endpoints.ProviderEndpoint
getRole, process, start, stop
 
Methods inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint
activate, deactivate, done, fail, getChannel, getContext, getExchangeFactory, getProcessor, send, sendSync
 
Methods inherited from class org.apache.servicemix.common.Endpoint
getDefinition, getDescription, getEndpoint, getInterfaceName, getService, getServiceUnit, isExchangeOkay, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SERVICE_NAME

public static final QName SERVICE_NAME
Constructor Detail

CamelJbiEndpoint

public CamelJbiEndpoint(org.apache.servicemix.common.ServiceUnit serviceUnit,
                        QName service,
                        String endpoint,
                        org.apache.camel.Endpoint camelEndpoint,
                        JbiBinding binding,
                        org.apache.camel.Processor camelProcessor)

CamelJbiEndpoint

public CamelJbiEndpoint(org.apache.servicemix.common.ServiceUnit serviceUnit,
                        org.apache.camel.Endpoint camelEndpoint,
                        JbiBinding binding,
                        org.apache.camel.Processor camelProcesso)
Method Detail

processInOnly

protected void processInOnly(javax.jbi.messaging.MessageExchange exchange,
                             javax.jbi.messaging.NormalizedMessage in)
                      throws Exception
Overrides:
processInOnly in class org.apache.servicemix.common.endpoints.ProviderEndpoint
Throws:
Exception

processInOut

protected void processInOut(javax.jbi.messaging.MessageExchange exchange,
                            javax.jbi.messaging.NormalizedMessage in,
                            javax.jbi.messaging.NormalizedMessage out)
                     throws Exception
Overrides:
processInOut in class org.apache.servicemix.common.endpoints.ProviderEndpoint
Throws:
Exception


Copyright © 2007 Apache Software Foundation. All Rights Reserved.