On Wed, Sep 10, 2008 at 09:56:45AM -0700, Vic Cekvenich wrote:
> oing standard things, like this from Flex:
>       _push= new HessianStreamingService("pushReg"); //servlet
>       _push.responder=this;
> and this on server:
>   public boolean service(ServletRequest request, ServletResponse response,
>              CometController comet) throws IOException, ServletException {
>          HttpServletRequest req = (HttpServletRequest) request;
>          HttpServletResponse res = (HttpServletResponse) response;
>          Hessian2StreamingOutput out;
>          out = new Hessian2StreamingOutput(res.getOutputStream());
>          req.setAttribute("comet.hessian", out);
>          //String roomId = req.getParameter("roomID");
> Question:
> How do I pass a param to the service? (like the last line commented out)
> For example a room.
> Comet is a servlet, and I should be able to pass it a parm from hessian 
> somehow.
> It does not have to be as easy as calling the regualr hessian service, 
> but some way to pass a message from HessianStreamingService that I can 
> then read during the registration of the comet.

Hi Vic,

The Hessian Flex streaming service is not bidirectional at the moment.
That will probably wait until Servlet 3.0 so we can put out a reasonable

Until then, you can use two services, one a streaming service and one a
traditional Hessian RPC service.  

Take care,


Emil Ong
Chief Evangelist
Caucho Technology, Inc.
Tel. (858) 456-0300

Caucho: Reliable Open Source
--> Resin: application server
--> Quercus: PHP in Java
--> Hessian Web Services

resin-interest mailing list

Reply via email to