Re: CORBA question



Diego Sevilla Ruiz wrote:

> I don't know exactly if I understand what you're doing here. I don't know
> what the "Object" return value of getLocalizedObjref means, as I was
> expecting returning localized databases. Thus, I think you're mixing two
> behaviors here: one for creating, managing and returning localized
> databases to clients requesting them, and the other the localized database
> itself.
>
> Thus, if you separate them in two:
>
> interface DatabaseFactory {
>         Database getLocalizedDatabase(in string locale);
> };
>
> and
>
> interface Database {
>         any getValue(in string key);
>         ...
> }
>
> Note that if you see the localization value as an attribute for this
> particular "view" of the database, the localization isn't different from
> any other parameter the database needs at creation time (such as login and
> passwd to the real database, etc.) This way it works even better with
> bonobo, isn't it?

I want to change the locale after I have a reference to the object. Sure, I
can split the to interfaces, but why? If I split it like you suggest I always
need a reference to that factory, which is clumsy.

> Also note that, if you use ServantActivators, there is no need to
> modify the ObjectId to include the locale, as you get created in the
> server a database object that "knows" (via a server object's instance
> variable) what locale it is serving.

I am quite sure that I need to encode it somehow into the object reference,
else I cant distinguish the databases.

- Dietmar





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]