Alright, What I have so far is a WS client that sends a SOAP message with a "special" header and a handler (as module) that reads the header and searches for the argument.
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 would be glad if you have an useful idea. Thanks, Benedikt On 07.09.2010 15:59, wrote Deepal Jayasinghe: > > > On 9/7/2010 9:32 AM, Benedikt Heintel wrote: >> Thanks Deepal for the information provided. Adding a handler works, I >> can access the data and work on it. Great. >> I meant Axis2 modules, right. >> >> However, I think my first question is wrong or wrongly asked. I try to >> rewrite it: >> Which class does "translate" the SOAP call into a java executable >> command? Means, in which class the java command line call is assembled? > There is a class called AxisConfigurator which does some kind of jvmargs > processing, but it only looks for two or three paramters. It does not > search for custom paramters. > > You can do something like following. > - Create a main class, and get your jvmargs or program paramters > - Then create a ServiceClient (I believe you want this at the client > side) > - Add a property (Options) representing your jvmargs > - Then use that property inside your handler (you can access all the > properties using MessageContext) > > Deepal >> Additionally I wonder if I just can use the module (.mar) created to >> pass-through the client command. >> >> Cheers, >> Benedikt >> >> On 07.09.2010 15:13, wrote Deepal jayasinghe: >>>> Dear List, >>>> >>>> I'm on a project that needs to change a web service call based on the >>>> header of a SOAP message. The goal is to implement a switch in axis, >>>> that enables an additional "-javaagent" call if a special header is >>>> set. >>>> I thought about using the module architecture if possible. >>>> >>>> I need to understand: >>>> o Which class handles the start-up information to the JVM? >>> It is the ConfigurationContextFactory, staring Axis2 is creating a >>> ConfigurationContext >>>> o Where and how can I change the parameter based on the header >>>> information? >>> You should be able to achieve this by adding a handler. >>>> o Is it a good idea to use the module architecture? >>> Its depend, if you are asking Axis2 module (.mar) then answer is yes. >>>> Thank you for your help, >>>> Benedikt >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org >>>> For additional commands, e-mail: java-user-h...@axis.apache.org >>>> >>>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org >>> For additional commands, e-mail: java-user-h...@axis.apache.org >>> >>> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org >> For additional commands, e-mail: java-user-h...@axis.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org > For additional commands, e-mail: java-user-h...@axis.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org