Versions Compared

Key

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

...

This will compile the Java code and put the Java class files into the servicemix_dir\examples\loan-broker\build\loanbroker\components directory.

Now we are ready to assemble the lightweight components together. The loan broker demo supplies us with a build.xml file (which was used in the compile step above). The build.xml contains targets for creating service units and service assemblies. If you run "ant setup" a service unit and service assembly will automatically be created. Ultimately, this is what you will want to do, however, the following procedure gives the manual steps for creating a service unit and service assembly, to facilitate in understanding the contents of a SUs and SAs.

  1. First create the service unit. The service unit is a ZIP file that will contain your application's Java class files. For example:
    1. Use a ZIP compression tool, such as Winzip or gzip to create a zip file containing the classes in servicemix_dir\examples\loan-broker\build\loanbroker\components. The zip file name is arbitrary, but to match the example call it loanbroker-su.zip.
    2. Put the loanbroker-su.zip file in the servicemix_dir\examples\loan-broker\build\loanbroker\components\build directory for later use. Note: you may store the zip file anywhere.

--------------------------------------------------------------------------------------

...