On Thu, Sep 11, 2008 at 08:53:25PM -0700, Vic Cekvenich wrote:
> I posted b4, repost as BAM won't be ready in .as and I need this now.
> 
> There has to be a way to hack hessian to pass a param to the comet 
> servelet... hint?

Try this:  Create a bean that shared between the comet servlet and a
Hessian POJO/servlet within the same web-app.  Send data upstream to the
regular servlet, have the servlet put the data into the bean, and the
comet servlet picks it up.  The nice thing about the comet servlet in
its current API is the CometController lets you wake it up from either
the bean or the other servlet.

Emil

> doing 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.
> 
> tia,
> .V
> 
> 
> 
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
============================================================

Emil Ong
Chief Evangelist
Caucho Technology, Inc.
Tel. (858) 456-0300
mailto:[EMAIL PROTECTED]
http://blog.caucho.com/

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


_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to