There are a lot more than three thread states:
http://booxs.biz/images/java/thread-states.png

If all you want to know is how long your message handler took, can you use
a profiler and just send one message?  That's probably the easiest option.

If you're sending more than one message, what do you want to capture?
Total time?  Use a profiler.  Time for each message?  Modify your handler
to store the Date when you enter the method and the Date when you finish
and subtract them, then log it.  Average time per message?  Don't log it,
but instead store it in a data structure you can reference when it's time
to compute stats.

Tim
On Jun 12, 2015 4:17 AM, "mayank_inno" <mayankag...@gmail.com> wrote:

> Hi Tim,
>
> Thanks for your answer..
>
> But my question is that,
>
> When we send any message to active MQ. Then consumer process that message.
> So i want only when processing of message started , in-process state time ,
> process completion time. Just like there are three state in thread .running
> , process , destroy..
>
> So please give me idea about how we can get these information..
>
> Thanks
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/how-to-find-different-message-states-ideal-running-stop-in-active-MQ-tp4697649p4697695.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Reply via email to