Versions Compared

Key

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

6.02. Intermediate - Creating the CXF SU

Wiki Markup
{scrollbar}

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

The Maven pom.xml

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.

JBI xbean.xml

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.

The EJB Proxy interface and implementation

You can see in the xbean that we need the service impl and interface for the CXF endpoint.

...