I just checked in a change that will add the DeploymentDescriptor object
to the "bag" in the SOAPContext:
dd = cntxt.getProperty(Constants.BAG_DEPLOYMENTDESCRIPTOR);
Once you have the DD you can query its options:
Hashtable props = dd.getProps();
String value = (String) props.get( "myoption" );
Grab either the latest code or tonight's build.
-Dug
Uzay Takaoglu <[EMAIL PROTECTED]> on 07/09/2001 01:51:14 PM
Please respond to [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:
Subject: setting init parms for non-EJB java service
Hi All,
I'm using SOAP 2.2 on Linux. Is it possible to pass set of init paramters
to
a non-EJB SOAP java component? E.g. Just like servlets passing a config
instance to init() method.
The sample for the EJB service deployment descriptor contains
<isd:option key="" value=""/>, can we use the same thing for non-EJB java
components? If yes, how do we retrieve the values of the keys?
Using SOAPContext.getProperty(String key) for request or response?
P.S: I used the messagerouter so my service has a method receiving
org.apache.soap.Envelope envelope,
org.apache.soap.rpc.SOAPContext request,
org.apache.soap.rpc.SOAPContext response
parameters
Regards,