What do you mean by "serialize the handle of the session bean ". Are you
serializing to a file or database, or whatever. If you do not have to store
state in this shared bean you could use a stateless session bean (service
like). If you have to have some state then some options are:
1. Use a Stateless Session Bean that stores its state using an entity bean.
2. Use a Stateless Session Bean that stores its state using JDBC/SQL
3. Use an Entity Bean.
Using a stateless session bean involves taking care of the fact that your
are not truly a singleton, you could have multiple instances of the bean
within and across an ejb containers. We could probably be of more help if
you could provide more information of the usage of this shared bean.
William
> -----Original Message-----
> From: Matthew T. Machczynski [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, March 01, 2000 2:06 PM
> To: [EMAIL PROTECTED]
> Subject: Re: sharing a Session Bean
>
> Reread what you just wrote: "to attempt to access files and directories in
> the
> file system".
> Serializing has nothing to do with accessing files and directories in the
> filesystem, so that would be ok.
>
> M.
>
>
> Nitin Jain <[EMAIL PROTECTED]>
> 03/01/2000 06:03 AM GMT
> Please respond to A mailing list for Enterprise JavaBeans development
> <[EMAIL PROTECTED]>
>
> To: [EMAIL PROTECTED]
> cc: (bcc: Matthew T. Machczynski)
> Subject: sharing a Session Bean
>
>
>
> Hi All!
> I am using weblogic 4.5.1 as my app server.
> I want a sharable session bean which can be used by other session beans.
> If I serialize the handle of the session bean then it works for the beans
> in the same container, but wont work for the beans outside it. Also EJB
> Specs says, " An enterprise bean must not use the java.io package to
> attempt to access files and directories in the file system." ( pg 275 of
> Enterprise JavaBeans 1.1, Public Draft 3)
> Therefore serialization is not the proper way to do that.
> Is there any other way by which the task can be carried out.
>
> Thanks,
> Nitin Jain
>
> ==========================================================================
> =
> 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".
***********************************************************************
Bear Stearns is not responsible for any recommendation, solicitation,
offer or agreement or any information about any transaction, customer
account or account activity contained in this communication.
***********************************************************************
===========================================================================
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".