I am trying to figure out the best way to get setup parameters for my
bean based web service.  I'm using the following code in the
constructor of my bean (using JBuilder & Axis 1.1 rc2).

I'm finding that both methods work but I don't understand the
difference and if either of these or another method is more
appropriate to use.

Method #1
org.apache.axis.MessageContext msgContext =
    org.apache.axis.MessageContext.getCurrentContext();
String paramValue = (String)
   msgContext.getProperty("Name");
System.err.println("paramValue="+paramValue);

Method #2
org.apache.axis.handlers.soap.SOAPService service =
  msgContext.getService();
paramValue = (String) service.getOption("Name");
System.err.println("paramValue="+paramValue);

I also tried to put the params in <globalConfiguration> but was
unable to figure out how to retrieve the parms from there.  I'm not
sure I want that anyway but would like to know how to make that work.

Thanks in advance,
Mike



Reply via email to