One thing I have notice when calling EJBs directly is that they are slow compared to using an AccessBean which in-turn calls the EJB...you may want to try it...
-----Original Message-----
From: Nortje, Andrew [mailto:[EMAIL PROTECTED]]
Sent: 13 March 2002 14:19
To: '[EMAIL PROTECTED]'
Subject: RE: EJB & SOAP

Thanks that did it!

 

-----Original Message-----
From: Gayatri Irani [mailto:[EMAIL PROTECTED]]
Sent:
Monday, March 11, 2002 5:26 PM
To: [EMAIL PROTECTED]
Subject: RE: EJB & SOAP

 

Hi...

 

The deployment descriptor looks ok other than the following one line:

<isd:java class="com.jazzman.contact.ContactManagementBean"/>

 

should be replaced by

 

<isd:option key="JNDIName" value="<your JNDI name>"/>

 

Hope this works, all the best!

 

---------------------------------------------------------------

Gayatri Irani
Principal Software Developer
Cimetrics Inc.
www.cimetrics.com

[EMAIL PROTECTED]

Work: 617.350.7550, Cell:508.740.2888

-----Original Message-----
From: Nortje, Andrew [mailto:[EMAIL PROTECTED]]
Sent:
Monday, March 11, 2002 3:55 PM
To: '[EMAIL PROTECTED]'
Subject: EJB & SOAP

 

Hi SOAP Users

 

I'm real new to Apache SOAP and SOAP/XML in general so forgive the basic questions.

 

I have installed Apache SOAP and run some of the demo's, all working fine. I am now trying to setup a SOAP rpc service for an existing EJB installation I have running under JBoss and Tomcat.

 

What is somewhat confusing is:

-          The deployment descriptor for the sample ejb has only one create method defined, what about the hello() 'business' method, why is it not in the descriptor?

-          Where does one define the JNDI name of your EJB, there's place to define the URL and factory for the JNDI but no place for the JNDI name of the EJB.

 

Anyway I deployed my SAOP service fine knowing there are probably some errors in the deployment descriptor and get the following error:

 

[ERROR,Default] =============================================

[ERROR,Default] In TemplateProvider.locate()

[ERROR,Default] URI: urn:ContactManagement

[ERROR,Default] DD.ServiceClass: org.apache.soap.providers.StatelessEJBProvider

[ERROR,Default] DD.ProviderClass: com.jazzman.contact.ContactManagementBean

[ERROR,Default] Call.MethodName: getContacts

[INFO,Default] Exception caught: javax.naming.ServiceUnavailableException: http

[Root exception is java.net.UnknownHostException: http]

 

Here is my deployment descriptor

 

<?xml version="1.0"?>

 

<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment" id="urn:ContactManagement">

  <isd:provider

    type="org.apache.soap.providers.StatelessEJBProvider"

    scope="Application"

    methods="create getContacts addContact">

 

    <isd:java class="com.jazzman.contact.ContactManagementBean"/>

    <isd:option key="FullHomeInterfaceName" value="com.jazzman.contact.ContactManagementHome"/>

    <isd:option key="ContextProviderURL" value="http://localhost:1099"/>

    <isd:option key="FullContextFactoryName" value="org.jnp.interfaces.NamingContextFactory"/>

  </isd:provider>

 

  <isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListener>

 

</isd:service>

 

Any ideas what I'm doing wrong or where I can look for answers.

 

Thanks in advance.

 

Andrew

 



************************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed. Any views or opinions are solely those of
the author and do not necessarily represent those of Exel
Computer Systems plc. If you have received this email in error
please notify Customer Services on 0115 946 0101.
************************************************************************

Reply via email to