Web Services Invocation Framework:
An EJB as a WSDL-described service
This directory contains an implementation for a session bean that provides the abstract functionality described in our AddressBook WSDL. The files contained here are:
- AddressBookSession.java, the EJB interface for our session bean.
- AddressBookSessionHome.java, the home interface for our session bean.
- AddressBookSessionBean.java, the EJBimplementation. This is as vanilla as can be, using a hash table to store a map of names to addresses.
- addressbook is a subdirectory containing the complex Java types used - these can be generated from the WSDL
- deploy is a subdirectory containing the things necessary to deploy this EJB to your favorite application server. Generally to deploy your EJB you will need to compile the code for this sample, then package it into a JAR along with an ejb-jar.xml file. Your application server may need other files. We have included under the deploy/jboss directory a pre-packaged jar that contains the compiled beans and the configuration files required by JBoss. All you need to deploy to JBoss is to drop this addressbook JAR file for JBoss (assuming you use the default server configuration) into server/default/deploy under your JBoss server installation, and start your server.