...
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".
Note |
---|
|
Further reading: JSR 208 |
Creating the main POM and the stubs of the SE, SU, SA
...
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 |
---|
|
Maybe add further testingat testing at the end of the tutarial (as "how to continue when having the working example") |
...
The structure is done, so the functionality have to be added. Using an IDE like IDEA or
Eclipse this is easier; here, the workflow with Eclipse is described.Â
Note |
---|
|
The default implementation of the component accepts InOut MEPs (ADD LINK TO FURTHER READING CONCERNING MEPs) and return the input content as the out message. This is already nearly what we want. Â OUTLINE OUTLINE for further work: Messagescount the bytessend - Messages
- count the bytes
- send a message
backConfigure - back
- Configure SA so that the example receives messages
- make something send messages (eg quartz timer, HTTP POST,...) and dump the answer (eg TraceComponent, FireWriter, EIP,...)
- add a chapter what user may do now / "how to continue when having the working example"
manually  manually editing http://goopen.org/confluence/display/SM/Working+with+Service+Units Image Removed manually editing http://www.servicemix.org/site/working-with-service-assemblies.html Image Removed use the SU archetype like in http://www.servicemix.org/site/creating-a-protocol-bridge.html Image Removed use the SA archetype like in http://www.servicemix.org/site/creating-a-protocol-bridge.html Image Removed |