Download the webapp ...

Available here : EasyBeans/JAX-WS 2.0 (Tomcat Only)

… Or build it yourself

Get the sources

EasyBeans project

The sources are available in subversion at the following URL :

svn://svn.forge.objectweb.org/svnroot/easybeans/trunk/easybeans

Checkout them :

svn checkout svn://svn.forge.objectweb.org/svnroot/easybeans/trunk/easybeans

We will refer to the EasyBeans sources with the EASYBEANS_HOME variable.

EasyBeans-Celtix project

The sources are available in subversion at the following URL :

svn://svn.forge.objectweb.org/svnroot/easybeans/sandbox/easybeans-celtix

Checkout them :

svn checkout svn://svn.forge.objectweb.org/svnroot/easybeans/sandbox/easybeans-celtix

Set the environment

Before compiling the Celtix integration into EasyBeans, you must set the EASYBEANS_HOME environment variable.

The EASYBEANS_HOME should point to the location where the EasyBeans sources have been checkouted.

  • Linux :
>$ export EASYBEANS_HOME=/path/to/easybeans-project
  • Windows
> set EASYBEANS_HOME=c:\\path\\to\\easybeans-project

Build

First, you need to build Easybeans WebApp :

>$ cd $EASYBEANS_HOME
>$ ant clean war

Then build easybeans-celtix :

>$ cd easybeans-celtix
>$ ant clean war

This will produce a new webapp in output/dist/ow_easybeans.war

Run

Add the modified ow_easybeans.war into the $CATALINA_BASE/webapps/ folder. And start Tomcat :

>$ catalina.sh start

Deploy EJBs

Build the Sample

>$ cd examples/celtix
>$ ant clean jar

This will produce an EjbJar file in examples/celtix/output/dist/session-greeter.jar

Deploy the Sample

Simply copy the session-greeter.jar in the $CATALINA_BASE/ejb3s/ folder.

EasyBeans will auto-detect the new EjbJar and will deploy it automatically.

Tomcat must be started before using EasyBeans.

>$ cp output/dist/session-greeter.jar $CATALINA_BASE/ejb3s/

Try It !

There is no Java Client for your new WebService at the time of writing.

But the SOAPUI project will help you to send SOAP requests to your endpoint:

Launch SOAP UI 1.5 (Java Web Start)

Create a new WSDL project, Import the WSDL from URL (http://localhost:8080/ow2-easybeans-cxf-war-xxxxx/services/greeter?wsdl) SOAPUI, will creates "Stubs" for each WebMethods available.

Simply fill the blanks if needed and press the "Play" button. You'll see some traces on the server side and the response into SOAPUI.