You could serialize the Handle into a String and stuff that into the 
cookie.  I have some code that can serialize any java object into a 
string.  Email me directly if you want this code.

Bill

Doug Ferguson wrote:

> Hi,
> 
> I am currently working on a project and I have one Stateful session bean
> 
> that contains login information,
> so that I can query this object for my JAAS login and I also use this
> object to cache information for a
> particular session. I would like to store a session cookie in the users
> browser and use this ID to lookup
> the stateful session bean, however, I am not sure how I will map this ID
> 
> to a Handle object. If anyone
> has done this or has ideas, they would be appreciated.
> 
> One thing that slightly complicates things is that we are implementing a
> 
> round robin load balancing pool
> on the apache/tomcat servers and we are also doing the same on the jBoss
> 
> servers. We only have one
> bean that is Stateful and we plan on implementing some sort of
> "make-shift clustering" So that when we
> create a bean the bean is distrubuted across all the instances of jBoss.
> 
> Any ideas, here would be useful.
> 
> 
> Also,
> 
> >From the StatefulHandleImpl.java what is the utility of the method
> pointer to
> an interface?
> *******************************************************************
>      static Method getEJBObjectMethod;
> 
>     static {
>         try {
> 
>             getEJBObjectMethod =
> Class.forName("javax.ejb.Handle").getMethod("getEJBObject", new
> Class[0]);
>         }
>         catch (Exception e) {
>             e.printStackTrace();
>         }
>     }
> 
> 
> 
> 
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> 
> 
> 
> 




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]

Reply via email to