snichol 2002/11/19 06:33:18 Modified: java/docs/install iPlanet.html Log: Add information about exposing EJBs. Revision Changes Path 1.4 +30 -2 xml-soap/java/docs/install/iPlanet.html Index: iPlanet.html =================================================================== RCS file: /home/cvs/xml-soap/java/docs/install/iPlanet.html,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- iPlanet.html 16 May 2002 13:27:23 -0000 1.3 +++ iPlanet.html 19 Nov 2002 14:33:18 -0000 1.4 @@ -5,7 +5,7 @@ <META content="Christopher P Kampemeier" name=Author></HEAD> <BODY bgColor=#ffffff> <H1><B><FONT size=+3>Installing Apache SOAP on iPlanet Application -Server</FONT></B></H1><I>Updated May 24, 2001</I> +Server</FONT></B></H1><I>Updated November 19, 2002</I> <P>This document describes how to install Apache SOAP 2.3 on iPlanet Application Server 6.0 and how to exercise the Apache SOAP samples. <BLOCKQUOTE> @@ -17,7 +17,8 @@ Samples</A> </P> <P><A href="#next-steps">Next Steps</A></P> <P><A href="#db-file">Changing Location of the Deployed Services Configuration - File </A></P></BLOCKQUOTE> + File </A></P> + <P><A href="#ejb">Exposing an EJB as a SOAP Service </A></P></BLOCKQUOTE> <H1><A name=install-apache-soap></A><B>Installing Apache SOAP</B> </H1> <OL> <LI>Deploy the Apache SOAP Web Application @@ -380,5 +381,32 @@ service configuration was persisted to the new configuration file. Open the services configuration file in an editor to double check that the services are being registered in the new file.</P> + +<H1><A name="ejb"></A>Exposing an EJB as a SOAP Service </H1> +<P>Apache SOAP includes providers for exposing EJBs as SOAP services. The +provider and parameters for the EJB are specified in the deployment +descriptor for the service. An example is:</P> +<BLOCKQUOTE><PRE><FONT color=#000099> +<?xml version="1.0"?> +<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment" + id="urn:ejbhello"> + <isd:provider type="org.apache.soap.providers.StatelessEJBProvider" + scope="Application" + methods="create"> + <isd:option key="JNDIName" value="ejb/TheGreeter" /> + <isd:option key="FullHomeInterfaceName" + value="samples.helloworld.ejb.GreeterHome" /> + <isd:option key="ContextProviderURL" value="" /> + <isd:option key="FullContextFactoryName" + value="com.netscape.server.jndi.RootContextFactory"/> + </isd:provider> + <isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListener> +</isd:service> +</FONT></PRE></BLOCKQUOTE> +<P>Apache SOAP must be able to load the classes referenced in this file, namely +the home interface for EJB and the context factory, as well as classes on which +those depend. The context factory is already loadable from Web applications. +The EJB classes or jars should be copied to the WEB-INF/classes or WEB-INF/lib, +respectively, directory of the SOAP web application.</P> <HR width="100%" SIZE=1> </BODY></HTML>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>