I actually think it must be more easy than this. Let me give an example.
In my humble opinion Axis2 is working like this:

--SOAP-->|--Check-->--Do something-->--call WS-->|--Java call-->

let's assume the following SOAP message, calling a service that should
add 40 and 10:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
  <soapenv:Header>
    <ns1:add xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/";>
      <id>200<id/>
    </ns1:add>
  </soapenv:Header>
  <soapenv:Body>
    <ns2:add xmlns:ns2="http://calc.seceng.informatik.tud.de";>
      <a>40</a>
      <b>10</b>
    </ns2:add>
  </soapenv:Body>
</soapenv:Envelope>

Now Axis2 receives the SOAP messages and checks whether the header
contains an id tag or not (this can be done by a .mar module).

If there is no id in the header, Axis will proceed its normal procedure
and in the end call the service with "java -cp
de.tud.informatik.seceng.calc.Calculator.class add 40 10".

Else if the id parameter is set, it should call the same service with
"java -javaagent:agent.jar=200 -cp
de.tud.informatik.seceng.calc.Calculator.class add 40 10".

The only modification in the call I need to do is to set the -javaagent
option and add the ID given in the header.

I hope I gave a insight into the idea that is broad enough.

Benedikt

On 07.09.2010 19:48, wrote Deepal Jayasinghe:
> 
>> I'm not sure about the property usage. Did you mean I should let the
>> handler process (e.g. start a service) the information?
>> In my special case this is not wanted. I really need to start a so
>> called java agent for special logging purposes. The Agent and the web
>> service need to run in the same instance. That's the reason why I need
>> to process the information directly to the JVM.
> I thought you need to pass the jvmargs in to the handler. If not you
> need to have your own code to process jvmargs and use the appropriate
> classes to achieve what you want.
> 
> Thanks,
> Deepal
>> I would be glad if you have an useful idea.
>>
>> Thanks,
>> Benedikt

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to