Added: servicemix/site/production/docs/4.5.x/jbi/components/servicemix-cxf-se.html URL: http://svn.apache.org/viewvc/servicemix/site/production/docs/4.5.x/jbi/components/servicemix-cxf-se.html?rev=1479168&view=auto ============================================================================== --- servicemix/site/production/docs/4.5.x/jbi/components/servicemix-cxf-se.html (added) +++ servicemix/site/production/docs/4.5.x/jbi/components/servicemix-cxf-se.html Sat May 4 19:53:07 2013 @@ -0,0 +1,132 @@ + + + + + Apache ServiceMix Documentation - + + + + + + + + + + + + +
+ +
+ +
+
+

JBI Support deprecated in Apache ServiceMix 4

+

JBI 1.0 support is available in Apache ServiceMix 4 to allow existing users to migrate more easily to this latest version - if you're a new user, you should consider JBI deprecated and not use it for your project. + Take a look at our technology selection guidelines for more information.

+
+

servicemix-cxf-se

Overview

ServiceMix CXF SE component is a JBI Service Engine exposing (annotated) POJO as services on the JBI Bus.
It uses Apache CXF internally to perform service invocations and xml marshaling.

Features:

  • jsr181 annotations

  • jaxb2/aegis/xmlbeans databinding

  • wsdl auto generation

  • java proxy support

  • MTOM / attachments support

Namespace and xbean.xml

The namespace URI for the servicemix-bean JBI component is http://servicemix.apache.org/cxfse/1.0. This is an example of an xbean.xml file with a namespace definition with prefix bean.

<beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0">

  <!-- add cxfse:endpoint definitions here -->

</beans>

Endpoint types

The servicemix-cxf-bc component defines one endpoint type:

  • cxfse:endpoint :: no description yet

cxfse:endpoint

Endpoint properties

Property Name Type Description
dataBinding org.apache.cxf.databinding.AbstractDataBinding Specifies dataBinding used by the Endpoint
endpoint java.l ang.String <p> Get the endpoint implementation. </p>
inFaultInterceptors (java.lang.Object)\* a list of beans configuring interceptors that process incoming faults
inInterceptors (java.lang.Object)\* a list of beans configuring interceptors that process incoming requests
interfaceName javax.xml.namespace.QName <p> Get the qualified name of the endpoint interface. </p>
mtomEnabled boolean Specifies if the service can consume MTOM formatted binary data. The default is <code>false</code>.
outFaultInterceptors (java.lang.Object)\* a list of beans configuring interceptors that process fault messages being returned to the consumer
outInterceptors (java.lang.Object)\* a list of beans configuring interceptors that process response messages
pojo java.lang.Object a bean configuring the JAX-WS annotated implementation for the endpoint
pojoEndpoint javax.xml.namespace.QName Specifies the servicemodel endpoint name generated from the pojo. The default is <code>null</code>.
pojoInterfaceNa me javax.xml.namespace.QName Specifies the servicemodel interface name generated from the pojo. The default is <code>null</code>.
pojoService javax.xml.namespace.QName Specifies the servicemodel service name generated from the pojo. The default is <code>null</code>.
properties java.util.Map Specifies a map of properties
service javax.xml.namespace.QName <p> Get the service qualified name of the endpoint. </p>
useAegis boolean Specifies if the endpoint use aegis databinding to marshall/unmarshall message. The default is <code>false</code>.
useJBIWrapper boolean Specifies if the endpoint expects to receive the JBI wrapper in the message received from the NMR. The default is <code>true</code>. Ignore the value of useSOAPEnvelope if useJBIWrapper is true
useSOAPEnvelope boolean Specifies if the endpoint expects soap messages when useJBIWrapper is false, if useJBIWrapper is true then ignore useSOAPEnvelope. The default is <code>true</code>.
useXmlBeans boolean Specifies if the endpoint use xmlbeans databinding to marshell/unmarshell message. The default is <code>false</code>.

cxfbc:proxy

Endpoint properties

Property Name Type Description
clearClientResponseContext boolean Specifies if the CXF client response context is cleared after each proxy invocation. The default is
componentRegistry java.lang.Object Allows injecting a custom component registry for looking up the proxying endpoint.
container org.apache.servicemix.jbi.api.Container Allows injecting a JBI Container instance (e.g. for t esting purposes).
context javax.jbi.component.ComponentContext Allows injecting the ComponentContext
endpoint java.lang.String The name of the endpoint.
factory org.apache.servicemix.jbi.api.ClientFactory Allows injecting a ClientFactory
interfaceName javax.xml.namespace.QName Specifies the servicemodel interface name
mtomEnabled boolean Specifies if the service can consume MTOM formatted binary data. The default is <code>false </code>.
name java.lang.String Specifies the JNDI name for looking up the ClientFactory. Defaults to <code>java:comp/env/jbi/ClientFactory</code>.
propagateSecuritySubject boolean When set to <code>true</code>, the security subject is propagated along to the proxied endpoint. Defaults to <code>false</code>.
service javax.xml.namespace.QName Specifies the servicemodel service name
type java.lang.Class Specifies the webservice POJO type
useJBIWrapper boolean Specifies if the endpoint expects to receive the JBI wrapper in the message received from the NMR. The default is <code>true</code>. Ignore the value of useSOAPEnvelope if useJBIWrapper is true
useSOAPEnvelope boolean Specifies if the endpoint expects soap messages when useJBIWrapper is false, if useJBIWrapper is true then ignore useSOAPEnvelope. The default is <code>true</code>.
+
+ +
+ +
+ + \ No newline at end of file Added: servicemix/site/production/docs/4.5.x/jbi/components/servicemix-drools.html URL: http://svn.apache.org/viewvc/servicemix/site/production/docs/4.5.x/jbi/components/servicemix-drools.html?rev=1479168&view=auto ============================================================================== --- servicemix/site/production/docs/4.5.x/jbi/components/servicemix-drools.html (added) +++ servicemix/site/production/docs/4.5.x/jbi/components/servicemix-drools.html Sat May 4 19:53:07 2013 @@ -0,0 +1,132 @@ + + + + + Apache ServiceMix Documentation - + + + + + + + + + + + + +
+ +
+ +
+
+

JBI Support deprecated in Apache ServiceMix 4

+

JBI 1.0 support is available in Apache ServiceMix 4 to allow existing users to migrate more easily to this latest version - if you're a new user, you should consider JBI deprecated and not use it for your project. + Take a look at our technology selection guidelines for more information.

+
+

servicemix-drools

Overview

The ServiceMix Drools component provides JBI integration to the Drools Rules Engine.

This Service Engine can be used to deploy a rules set that will implement a router or an actual service.

A router will mostly act as a transparent proxy between the consumer and the target service provider mad will mostly be implemented by the jbi.route(uri) method below. This method creates a new exchange identical to the one received by the component and will send it to the specified destination. You can also send back a Fault if needed. A router can also be implemented by using directly the JBI Apis (available with the jbi helper) by using the provided client.

Namespace and xbean.xml

The namespace URI for the servicemix-bean JBI component is http://servicemix.apache.org/drools/1.0. This is an example of an xbean.xml f ile with a namespace definition with prefix bean.

<beans xmlns:drools="http://servicemix.apache.org/drools/1.0">

  <!-- add drools:endpoint definitions here -->

</beans>

Endpoint types

The servicemix-drools component defines one endpoint type:

  • drools:endpoint :: no description yet

drools:endpoint

Endpoint properties

Property Name Type Description
assertedObjects (java.lang.Object)\* List of additional objects to be inserted into the drools working memory for evaluating rules.
autoReply boolean Will this endpoint automatically reply to any exchanges not handled by the Drools rulebase?
component org.apache.servicemix.common.DefaultComponent
defaultTargetService javax.xml.namespace.QName The default service that the exchange will be sent to if none of the rules have handled it.
defaultTargetURI java.lang.String The default endpoint URI that the exchange will be sent to if none of the rules have handled it.
endpoint java.lang.String <p> Get the endpoint implementation. </p>
globals java.util.Map The global variables that are available while evaluating the rule base.
interfaceName javax.xml.namespace.QName <p> Get the qualified name of the endpoint interface. </p>
namespaceContext javax.xml.namespace.NamespaceContext The namespace context to use when evaluating the rules.
ruleBase org.drools.RuleBase Set the rule base to be used for handling the exchanges
ruleBaseResource org.springframework.core.io.Resource Specifies the resource location to load the rule base from (.drl file)
ruleBaseURL java.net.URL Specifies a URL to load the rule base from (.drl file)
service javax.xml.namespace.QName <p> Get the service qualified name of the endpoint. </p>
su org.apache.servicemix. common.ServiceUnit
+
+ +
+ +
+ + \ No newline at end of file