-
1. Re: JMS HTTPIL Ping Question
adrian.brock Mar 18, 2004 1:48 PM (in response to mkprim)I don't understand your question?
HTTP is a stateless protocol, unlike UIL2.
How can sending a message to a client help you? You send the message to the server
not the client?
sender -> server
server -> client
If you want to detect client inactivity, you can use the ClientMonitorInterceptor,
see deploy/jms/jbossmq-service.xml
Regards,
Adrian -
2. Re: JMS HTTPIL Ping Question
mkprim Mar 19, 2004 10:02 AM (in response to mkprim)>I don't understand your question?
I need a way to detect client disconnection, to inform to my own system to erase the client from a connected list.
HTTP is a stateless protocol, unlike UIL2.
> OK
>How can sending a message to a client help you? You send the message to the server
>not the client?
This helps me this way: I establish a TemporaryQueueConnection from every client to the server. If a clients needs to send a message to the server, it sends a message to a preexistent and known queue, and sets the Reply-to header to the TemporaryQueue.
This way, I can associate any client with its queue.
So every 10 seconds I send a message to every tempQueue I have. If the message send fails, I get an exception, and I know I have to remove that client from the connected list. Am I clear?
Well, this works with UIL2, but not with the HTTPIL, and I don't know why.
Any idea?
>If you want to detect client inactivity, you can use the ClientMonitorInterceptor,
>see deploy/jms/jbossmq-service.xml
I'll see if I can override and add my own interceptor in the top of the chain.
Thanks, Marcelo -