Presented by developerWorks, your source for great tutorials
ibm.com/developerWorks
file. Create a directory called
deploy
in
C:\tutorials\axisEJB\axisEJBHello
. Create a file
called
deploy.wsdd
and put it in the
deploy
directory with the following contents:
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
value="rickhightower.axis.ejb.tutorial.HelloHome"/>
value="rickhightower.axis.ejb.tutorial.Hello"/>
value="http://localhost:8080/AxisEJB/hessian"/>
value="com.caucho.hessian.HessianContextFactory"/>
The file can be broken down as follows:
1) What Kind of service?
This service is EJB based
...
...
Notice that the provider type of the service is
java:EJB
(for example,
provider="java:EJB"
). The provider type of
java:EJB
specifies that this is an
EJB based Web service. A provider is a Handler responsible for implementing the logic
of the service.
In this case, you are specifying that you are using a provider that will delegate the
actual logic development to an EJB component. The EJB provider is part of the
standard Axis distribution. The EJB provider extends the RPC provider. If you have
worked with Axis before you likely worked with the
java:RPC
(
org.apache.axis.providers.java.RPCProvider
). The RPC provider
implements message processing by walking over RPCElements of the SOAP envelope
body and invoking the appropriate methods on a plain old Java Object (POJO). The
Service enable EJB SessionBeans with the IBM ETTK
Page 11 of 33
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved