Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Several SUs are packed into a Service Assambly (SA). An SA is a complete "application" consisting of multiple components (reminder: the "smallest appliactions") interacting with each other and making up the big "application".

Further reading: JSR 208

Creating the

...

main POM and the stubs of the SE, SU, SA

...

Creating the stub of the SE

...

Panel

Wiki Markup
\[INFO\] Scanning for projects...
\[INFO\] Searching repository for plugin with prefix: 'archetype'.
\[INFO\] \---------------------------------------------------------------------------\-
\[INFO\] Building Maven Default Project
\[INFO\]    task-segment: \[archetype:create\] (aggregator-style)
\[INFO\] \---------------------------------------------------------------------------\-
...
\[INFO\] <span style="color: #ff00ff">Defaulting package to group ID: org.apache.servicemix.samples.helloWorldSE</span>
...
\[INFO\] \**********\**\**\**\**\**\* End of debug info from resources from generated POM \**\**\******************\*
\[INFO\] <span style="color: #009900">Archetype created in dir: C:\hello-world-SE-SU-SA\hello-world-SE</span>
\[INFO\] \-----------------------------------------------------------------------\-
\[INFO\] BUILD SUCCESSFUL
\[INFO\] \-----------------------------------------------------------------------\-

...

Note: The content of <version> describes not the version of ServiceMix but of the project we create, thus we may choose any desired version (e.g. 3.0-final). Then you have to change it below as wellWe just have to use consitently the same version when we reference this project.

Maven commands 

By now, it is already possible to call Maven with the relevant goals.

...

No Format
mvn jbi:projectDeploy

it and we now need to fill the holes.


ServiceMix will output this confirmation

No Format

INFO  - ServiceAssemblyLifeCycle       - Starting service assembly: hello-world-SA

Adding functionality

 Then you can send an request to ...

Configuring the Service

...

Assembly 

manually editing http://goopen.org/confluence/display/SM/Working+with+Service+UnitsImage Added

manually editing http://www.servicemix.org/site/working-with-service-assemblies.htmlImage Added

use the SU archetype like in http://www.servicemix.org/site/creating-a-protocol-bridge.htmlImage Added

use the SA archetype like in http://www.servicemix.org/site/creating-a-protocol-bridge.htmlImage Added
 

...

 

 

Note
titleTODO

it and we now need to fill the holes.

Then you can send an request to ...

The default implementation of the component accepts InOut MEPs and return the input content as the out message.

Using an IDE to add meat to the component. You can either use IDEA or Eclipse, I tried it with Eclipse so I guess I am going to stick it for now. <TODO>

This shall already include everything stated at
http://www.servicemix.org/site/maven-jbi-plugin.html#MavenJBIplugin-GettingStarted
and
http://www.servicemix.org/site/working-with-components.html