kdlitwak,

Read the archives about singletons, there is a bunch of stuff there. The
bottom line is EJB doesn't handle Singleton real well. About the closest
thing is an EntityBean where there is only one bean instance in the Home.
Use a shared RMI or CORBA object for Singleton.

You can call an EJB from any Java client.

-Chris.
> -----Original Message-----
> From: kdlitwak [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, October 29, 1999 2:10 AM
> To:   [EMAIL PROTECTED]
> Subject:      Two EJB-related questions
>
> I have two questions:
>
> 1.  I  want to have a shared object in an EJB container.  That is, one
> object, one object reference shared by and used by multiple callers at
> once.  Can this be done?  Can multiple clients share a stateless session
> bean since it has no data values to corrupt?
>
> 2.  If I call an EJB method from something besides a servlet or JSP,
> does hat make my application non-J2EE compliant?  Thanks.
>
> Ken
>
> ==========================================================================
> =
> 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".

===========================================================================
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