In the method you mention is the following code
className = dd.getServiceClass();
if (className == null)
return null;
if (className.equals("java"))
className = "org.apache.soap.providers.RPCJavaProvider";
else if (className.equals("script"))
className = "org.apache.soap.providers.RPCJavaProvider";
try {
c = ctxt.loadClass( className );
newObj = c.newInstance();
} catch(Exception exp) {
throw new SOAPException(Constants.FAULT_CODE_SERVER,
"Can't load provider '" + className
+ "'",
exp);
}
The dd.getServiceClass() gets the value of the type attribute of the
isd:provider element in the deployment descriptor. As the code shows,
besides being the name of a class, it could also be the "well-known"
values "java" or "script". In the case of an EJB, this is the name of
the class of the provider.
>>>
As we are doing the same step in both conditional blocks, we can use
logical AND Instead of using else if .
<<<
Correct.
Scott Nichol
----- Original Message -----
From: "Tanmay Kumar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 01, 2002 12:17 AM
Subject: Provider class query
Hi all,
I am new to this developer list.
I am looking for which class exactly sets the exact provider class
inside soap-bin-2.3.1.zip.
ServerUtils#loadProvider method load only the
org.apache.soap.providers.RPCJavaProvider class.
Also I have doubt on line no 135-138 of ServerUtils class which is
mentioned below.
if (className.equals("java"))
className = "org.apache.soap.providers.RPCJavaProvider";
else if (className.equals("script"))
className = "org.apache.soap.providers.RPCJavaProvider";
As we are doing the same step in both conditional blocks, we can use
logical AND Instead of using else if .
I want to know which class#method exactly loads the
org.apache.soap.providers.StatelessEJBProvider class after We specify
StatelessEJBProvider in the type attribute of Provider element in DD.
Expecting some reply from you which will be a great help.
regards,
Tans
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>