Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Code Block
xml
xml
<sm:activationSpec destinationUri="interface:http://www.foo.bar/MyInterface">
 ...
 </sm:activationSpec>
Code Block
xml
xml

<beans ... xmlns:my="http://servicemix.apache.org/demo/">
...
<sm:activationSpec componentName="component" service="my:service" endpoint="endpoint">
...
</sm:activationSpec>
...
</beans>
Warning

Be careful with namespaces. ServiceMix maintains an endpoint registry which it uses to look up endpoints. The example above registers the corresponding endpoint with the key:

Code Block

{http://servicemix.apache.org/demo/}serviceendpoint

However, an endpoint reference of

Code Block

http://servicemix.apache.org/demo/service/endpoint

... will result in a different, non-matching key:

Code Block

{http://servicemix.apache.org/demo}serviceendpoint

... which will ultimately cause the routing to fail.

EIP component

See servicemix-eip.

...

The ServiceMix container can parse the following URIs:

  • interface:qnameunmigrated-wiki-markup
  • {{operation:qname\[sep\]name}}
  • service:qnameunmigrated-wiki-markup
  • {{endpoint:qname\[sep\]name}}

Wiki MarkupQName will be represented as: {{
namespace\[sep\]name}}

The seprator separator used will be:

  • '/' if the namespace looks like 'http://'
  • ':' if the namespace looks like 'urn:foo:bar'

...