If this is the case case, then what happens when one client remove() the
bean . What happens to the other client?

>
>from whatever i have read so far...
>if two client are accessing the same data i.e. same row in DB there are two
>instances of EB rather than running two threads in the same instance of EB.
>
>Hopefully that was in context.
>
>Rgds
>
>-----Original Message-----
>From: Stefan Trcek [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, August 08, 2000 6:29 PM
>To: [EMAIL PROTECTED]
>Subject: Re: EJB and internationalization
>
>
>On Mon, 7 Aug 2000 18:15:58 +0200, Markus Hebach
><[EMAIL PROTECTED]> wrote:
>
> > Why not using the DD? The deployer could specify the language to use...
>Two clients (frech/english) acces an entity bean (EB) *at the same
>time* . The french client likes to see french text, the englisch one
>likes better english text. However, as I understand it there is only
>one instance of the EB (though multiple instances of a stub to the
>EB).  If I am right this problem can't be solved with the DD. Hope to
>clarify it.
>
> > (however maybe think about your design, a name f.e. is the same in all
>langs,
> > mostly its a matter of content which is different, which in turn is
>related to
> > the logic of your app)
>
>The design is currently this way: a session bean (representing the
>client) accesses the EB in the following manner (simplified)
>
>     IdType id = enterpriseBean.getNameId();
>     String name = dictionary.getValue(id, language);
>                   // get name string in specific language
>
>Instead I'd like to write
>
>     String name = enterpriseBean.getName();
>
>but now how to specify the language? Either
>
>     String name = enterpriseBean.getName(language);
>     String adress = enterpriseBean.getName(language);
>
>for any method or
>
>     enterpriseBean = getEB(language);
>     String name = enterpriseBean.getName();
>     String adress = enterpriseBean.getAddress();
>
>(requires modifying the stubs, doesn't look easy) or any better ideas?
>
>Stefan
>
>===========================================================================
>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".
>

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

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