You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Daryl Wilding-McBride <da...@usefultools.com> on 2002/03/21 01:58:57 UTC
Axis and jBoss
Just in case there's someone else wondering what to put into a WSDD file if you want to publish an EJB's method(s) as a web service, here's one that works with the Axis beta and jBoss 2.4.4/Tomcat 3.2.3. The method getMovies returns an array of MovieValue objects, hence the bean mapping.
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<service name="MovieStoreService" provider="java:EJB">
<parameter name="beanJndiName" value="ejb/StoreBean"/>
<parameter name="homeInterfaceName" value="com.usefultools.jpp.desktop.ejb.StoreHome"/>
<parameter name="remoteInterfaceName" value="com.usefultools.jpp.desktop.ejb.StoreBean"/>
<parameter name="jndiContextClass" value="org.jnp.interfaces.NamingContextFactory"/>
<parameter name="jndiURL" value="localhost:1099"/>
<parameter name="allowedMethods" value="getMovies"/>
<beanMapping qname="ns:MovieValue" xmlns:ns="urn:BeanService"
languageSpecificType="java:com.usefultools.jpp.desktop.ejb.MovieValue"/>
</service>
</deployment>
Regards,
Daryl.