Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Creating the cxf-se service unit

...

On this page, we are going to INLINE

create the cxf-se service unit. Excerpt create our second SU module in our project

...

Using a Maven archetype to create the service unit project

ServiceMix provides several Maven archetypes to help you create your projects more rapidly and reliably.
We start off by using the servicemix-cxf-se-service-unit archetype , which is used for creating a servicemix-cxf-se service unit project.

From SMX_HOME/bin directory, we run this our tutorial's project folder we run the following command to create a service unit project named :

in MS Windows:

No Format
 
smx-arch su cxf-se

in GNU\Linux:

...

Maven executes the archetype and reports BUILD SUCCESSFUL when it's done. (For more information run smx-arch help)

...

...

Add this SU project to directory of our project

We copy directory my-cxf-se-su to directory of our project.(where is parent's pom.xml)
Then we add this to parent's pom.xml to element project.

...

Finally, parent's pom.xml looks like this:

...

What is being generated?

First of all, the archetype creates the project directory folder my-cxf-se-su, containing:

  • a pom.xml file for building the service unit project
  • a directory src/main/resources , in which we will create our containing a xbean.xml file for configuring the service unit
  • a directory src/main/java , in which we will create com/mycompanycontaining a org/apache/servicemix/examples/ExampleService.java for implementing our service.

Because we started Maven's archetype:create from the folder containing our root pom.xml Maven also added
the module to the root's pom.xml <modules> section.

...

Now, we will have to configure the service unit to provide the services we want.

...

Proceed to the next step



...