ok, then you have the language as a part of the content,
and you can't use the DD.
The design here is simple: if you have Stateful Session Beans,
you can init it when it created, like getBean(language)
and just call the methods, if it would be stateless you would have
to transmit the language with every call (thats the natural tradeoff when
working with stateless beans)...
Cheers,
Markus
Stefan Trcek schrieb:
> 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".
--
Mit freundlichen Gr��en,
Markus Hebach
____________________________________________________________________
Markus Hebach
Senior Technical Sales Consultant
Versant GmbH
Brunnenweg 7 D-64331 Weiterstadt
Tel: +49 (0)6150-109822 Fax: +49(0)6150-109810 Mobil: 0171-9944488
Email: [EMAIL PROTECTED]
URL: http://www.versant.de
Sie bauen Anwendungen mit Java und EJB?
Versant VEC konnte die Antwort sein:
http://www.versant.com/us/products/ejb.html
Versant Strategic Direction:
http://www.versant.com/us/company/press/58-e-businessstrategy.html
===========================================================================
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".