"Kenneth D. Litwak" wrote:
>
>   I'm trying to figure out a way to have a stateful session bean which is used
> by both a normal web client and the later, possibly, a wireless client. I would
> likeit to be the same sessin bean, but so far as I know, even if I had a handle
> to the bean, this is illegal because you can't have two callers for the same
> bean.  What can I do for this?  Also, if two users can't share a session bean,
> what's the point of a hdndle to the EJBObject?  Thanks.

The only way you can guarantee anything close to this is to have both
objects create the bean using exactly the same argument values to the
ejbCreate() method. On the server-side, there is no guarantee whether
you will get the same physical instance or not. The spec does not define
this because it allows the vendors to provide a system where it can
scale by distributing instances across a cluster of services.

--
Justin Couch                         http://www.vlc.com.au/~justin/
Freelance Java Consultant                  http://www.yumetech.com/
Author, Java 3D FAQ Maintainer                  http://www.j3d.org/
-------------------------------------------------------------------
"Humanism is dead. Animals think, feel; so do machines now.
Neither man nor woman is the measure of all things. Every organism
processes data according to its domain, its environment; you, with
all your brains, would be useless in a mouse's universe..."
                                              - Greg Bear, Slant
-------------------------------------------------------------------

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to