You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Asma Maalej <am...@laas.fr> on 2009/08/07 15:29:54 UTC
DB storage intercepted response-time values
Hello
i'm working on the monitoring web services, using axis2-1.4.1 and tomcat
6.0.18.
I have to intercept QoS parameters like response-time. to do that, I
should capture in the handler code the System.currentTimeMillis() and
add it to the SOAPheader of the SOAP message. of course, this handler
must to be involved in InFlow and the OutFlow.
My problem is how could I recover these 2 values, cause now I can have
only one which is at the time of the reception of request SOAP message.
but the one at the moment of sending response SOAP message, I have no
idea, how could I do that
Any idea please?
Re: DB storage intercepted response-time values
Posted by Andreas Veithen <an...@gmail.com>.
Sorry, but this is still not clear. Can you please describe precisely
what happens (or is supposed to happen) in your module at the
following four moments in time:
- OutFlow in the client (request).
- InFlow in the server (request).
- OutFlow in the server (response).
- InFlow in the client (response).
Andreas
On Sat, Aug 8, 2009 at 13:24, maalej<am...@laas.fr> wrote:
> In fact, I engaged my custom module in the server side and the cient one.
> this modue enable the response-time interception. It captures the System
> current time, then this time wil be added as an OMElement in the header of
> the SOAP message, then i show it. as I configure the file axis2.xml I
> involve it in all of phases : InFow and OutFow and so on...
> at the runtime of the invocated server, the client console should show the
> request SOAP message with the custom tag added to the header at the time of
> its reception by the server (InFlow) and, the response SOAP message, also
> with the same custom tag but at the time of its sent by server (OutFlow).
>
> these two intercepted times coud be shown only in the SOAP message trace,
> but how coud I recover the in the handler code to store them in my database
> in order to calculate then the diffrence, i have no idea??
>
>
> Andreas Veithen a écrit :
>>
>> Can you please explain your requirement more precisely? From your
>> explanation it is not clear where the two measures are taken, what
>> exactly is communicated in the SOAP headers and where you want to
>> calculate the difference.
>>
>> Andreas
>>
>> On Fri, Aug 7, 2009 at 15:29, Asma Maalej<am...@laas.fr> wrote:
>>
>>>
>>> Hello
>>>
>>> i'm working on the monitoring web services, using axis2-1.4.1 and tomcat
>>> 6.0.18.
>>> I have to intercept QoS parameters like response-time. to do that, I
>>> should
>>> capture in the handler code the System.currentTimeMillis() and add it to
>>> the SOAPheader of the SOAP message. of course, this handler must to be
>>> involved in InFlow and the OutFlow.
>>>
>>> My problem is how could I recover these 2 values, cause now I can have
>>> only
>>> one which is at the time of the reception of request SOAP message. but
>>> the
>>> one at the moment of sending response SOAP message, I have no idea, how
>>> could I do that
>>>
>>> Any idea please?
>>>
>>>
>>>
>
>
Re: DB storage intercepted response-time values
Posted by maalej <am...@laas.fr>.
In fact, I engaged my custom module in the server side and the cient
one. this modue enable the response-time interception. It captures the
System current time, then this time wil be added as an OMElement in the
header of the SOAP message, then i show it. as I configure the file
axis2.xml I involve it in all of phases : InFow and OutFow and so on...
at the runtime of the invocated server, the client console should show
the request SOAP message with the custom tag added to the header at the
time of its reception by the server (InFlow) and, the response SOAP
message, also with the same custom tag but at the time of its sent by
server (OutFlow).
these two intercepted times coud be shown only in the SOAP message
trace, but how coud I recover the in the handler code to store them in
my database in order to calculate then the diffrence, i have no idea??
Andreas Veithen a écrit :
> Can you please explain your requirement more precisely? From your
> explanation it is not clear where the two measures are taken, what
> exactly is communicated in the SOAP headers and where you want to
> calculate the difference.
>
> Andreas
>
> On Fri, Aug 7, 2009 at 15:29, Asma Maalej<am...@laas.fr> wrote:
>
>> Hello
>>
>> i'm working on the monitoring web services, using axis2-1.4.1 and tomcat
>> 6.0.18.
>> I have to intercept QoS parameters like response-time. to do that, I should
>> capture in the handler code the System.currentTimeMillis() and add it to
>> the SOAPheader of the SOAP message. of course, this handler must to be
>> involved in InFlow and the OutFlow.
>>
>> My problem is how could I recover these 2 values, cause now I can have only
>> one which is at the time of the reception of request SOAP message. but the
>> one at the moment of sending response SOAP message, I have no idea, how
>> could I do that
>>
>> Any idea please?
>>
>>
>>
Re: DB storage intercepted response-time values
Posted by Andreas Veithen <an...@gmail.com>.
Can you please explain your requirement more precisely? From your
explanation it is not clear where the two measures are taken, what
exactly is communicated in the SOAP headers and where you want to
calculate the difference.
Andreas
On Fri, Aug 7, 2009 at 15:29, Asma Maalej<am...@laas.fr> wrote:
> Hello
>
> i'm working on the monitoring web services, using axis2-1.4.1 and tomcat
> 6.0.18.
> I have to intercept QoS parameters like response-time. to do that, I should
> capture in the handler code the System.currentTimeMillis() and add it to
> the SOAPheader of the SOAP message. of course, this handler must to be
> involved in InFlow and the OutFlow.
>
> My problem is how could I recover these 2 values, cause now I can have only
> one which is at the time of the reception of request SOAP message. but the
> one at the moment of sending response SOAP message, I have no idea, how
> could I do that
>
> Any idea please?
>
>
Re: DB storage intercepted response-time values
Posted by Asma Maalej <am...@laas.fr>.
Thanks for yoour reply
but, it seems to me that you didn't understand my problem
in fact, i have already this book
and i don't need to have more information about the logical process of
handler; my problem is so clear
it consists of how could I recover the information of the response-time
at the handler runtime
Chinmoy Chakraborty a écrit :
> Follow the link, you may find it useful...
>
> http://www.packtpub.com/article/handler-and-phase-in-apache-axis
>
> Chinmoy
>
> On Fri, Aug 7, 2009 at 6:59 PM, Asma Maalej <amaalej@laas.fr
> <ma...@laas.fr>> wrote:
>
> Hello
>
> i'm working on the monitoring web services, using axis2-1.4.1 and
> tomcat 6.0.18.
> I have to intercept QoS parameters like response-time. to do that,
> I should capture in the handler code the
> System.currentTimeMillis() and add it to the SOAPheader of the
> SOAP message. of course, this handler must to be involved in
> InFlow and the OutFlow.
>
> My problem is how could I recover these 2 values, cause now I can
> have only one which is at the time of the reception of request
> SOAP message. but the one at the moment of sending response SOAP
> message, I have no idea, how could I do that
>
> Any idea please?
>
>
Re: DB storage intercepted response-time values
Posted by Chinmoy Chakraborty <cc...@gmail.com>.
Follow the link, you may find it useful...
http://www.packtpub.com/article/handler-and-phase-in-apache-axis
Chinmoy
On Fri, Aug 7, 2009 at 6:59 PM, Asma Maalej <am...@laas.fr> wrote:
> Hello
>
> i'm working on the monitoring web services, using axis2-1.4.1 and tomcat
> 6.0.18.
> I have to intercept QoS parameters like response-time. to do that, I should
> capture in the handler code the System.currentTimeMillis() and add it to
> the SOAPheader of the SOAP message. of course, this handler must to be
> involved in InFlow and the OutFlow.
>
> My problem is how could I recover these 2 values, cause now I can have only
> one which is at the time of the reception of request SOAP message. but the
> one at the moment of sending response SOAP message, I have no idea, how
> could I do that
>
> Any idea please?
>
>