Without tricks this is not possible, as HTTP is not a push protocol.
But...you could follow this rough idea:
The only way I can think of is calling wait() in doGet(). Then when the message
comes in, another thread gives some message to waiting thread and calls
notify(), doGet() writes something and goes into wait() state again.
-hendrik
ashok wrote:
> Hello all,
>
> Wheneven the MessageListener interface gets any message I need to send the
> output to the client directly.
>
> How can I can get the reference to Response object outside the doXxx() so
> that I can send the output to the client?
>
> TIA
> -ashok
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
--
- - - - - - - - - - - - - - - - - - - - - - - - - - -
tagtraum industries http://www.tagtraum.com/
jo! small&smart 2.2 servletengine
Java Server & Servlets The web-application book
The WebApp Framework http://www.webapp.de/
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html