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

6.02. Intermediate - Creating the CXF SU

...

We are going to create the main SU of our project : the CXF EJB proxy.

...

First of all, we create the pom.xml :

...

...

We are using EJBs deploying in a JBoss application server : that's why we need the JBoss client dependency.
The EJB provider needs to provide the local and home interfaces (and eventually the stub) for the EJB server side.

...

Now we can setup the xbean.xml (in the src/main/resources directory) to expose our EJB :

...

...

Warning : only EJB Session Stateless can be exposed like this.

...

So we create the MyEJB interface :

...

...

and the corresponding impl :

...

...

Our EJB is now available in ServiceMix as a service registered in the NMR.

...