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".