Chapter 34. How to use Axis in JOnAS

This chapter describes basic Axis use within JOnAS. It assumes that you do not require any explanation about Axis-specific tasks (for example, Axis deployment with WSDD). Before deployment in Axis, you must verify that the deploy.wsdd file matches the site machine configuration (the jndiURL parameter in particular):

<parameter name="jndiURL" value="rmi://localhost:1099"/>

This chapter describes two ways to make an EJB (stateless Session Bean (SB)) available as a Web Service with JOnAS:

34.1. Unique Axis Webapp

34.1.1. Constraints

  • The EJBs exposed as WebServices must have remote interfaces.

  • The Axis Webapp must have in its WEB-INF/lib directory all the EJB-JAR files containing Beans exposed as Web Services.

34.1.2. Usage

  • Deploy the EJB-JARs or EARs containing Web Services.

  • Deploy the Axis Webapp (containing the EJB-JAR files).

  • Use the AdminClient tool to deploy the Web Services (with a .wsdd file).

Example:

jclient org.apache.axis.client.AdminClient -hjonasServerHostname -p9000 deploy.wsdd