Would logging help to fix your second issue starting with "Also I want to store a token ..."?
I can imagine that each service/method can setup a log4j logger/appender and send all logging events as they occur to a common log file or database including the time stamp. Then after some time of logging just analyze the logs in the file in the db. The log event can carry a token passed by the client like a parameter, or you may catch a bit of header information passed by each client i.e. part of the addressing headers. doing this types of logging more generic, a logging module is the right approach. how to write a module and include it into your axis2 environment making a .mar is well explained in the samples of axis2. But if you log by a generic logger in a logging module of the axis2 message processing chain, and if that request gets later redirected by whatever logic, including service methods that kind of logging will not say the true at all. In my mind you might need boot. Logging on the chain(s) of message processing and logging the events at the final receivers or intermediates which are your services methods. Given you develop later state full servers, then logging by the proper objects (instance) becomes evident as well. Josef Von: Kanchana Welagedara [mailto:[email protected]] Gesendet: Freitag, 21. Januar 2011 03:23 An: [email protected]; [email protected]; [email protected]; [email protected] Betreff: [Axis2]How to create a mar file out of classes in AXIS 2 hi Folks I'm creating a Axis java 2 handler .I want to know how to generate the mar file. I have module.xml written ,src, edited axis2.xml to include the module name. Also i want to store a token in a xml/Data base for reach requests coming from each client to identify which requets came from which client.Passing a token from a client in the request with EPR is not always possible since my all web services are not stateful Could any one help me in this please? Thanks Kanchana
