...
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.
- First create the service unit. The service unit is a ZIP file that will contain your application's Java class files. For example:
- 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
. - Put the
loanbroker-su.zip
file in theservicemix_dir\examples\loan-broker\build\loanbroker\components\build
directory for later use. Note: you may store the zip file anywhere.
- 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
--------------------------------------------------------------------------------------
...