> I think what you're after is a stringified reference ala
> CORBA. There is a mechanism in EJB that offers this
> type of functionality for the home interface so you don't
> have to do a jndi lookup, but not for the bean itself.
>
> Without knowing specifically what you're after, entity
> bean may suit your fancy....
Basically, I want one instance of a Map that is consistent across the board,
and that maintains a list of active stateful session beans of type X.
I want to be able to perform functionality similar to that which is
supported by the Map interface (i.e. put, get, remove), while ensuring that
only one listing ever exists (well, at least the data for the listing is
maintained in only one central place - the database). Any number of
"listing" objects can exist on any number of servers, under any number of
JVMs and since they all use the database to maintain the references to
existing stateful session beans, they're always in sync.
It does kind of fit the entity bean scenario, but I don't really mind losing
the state or data saved in the bean upon system failure. Nor, do I wish to
mirror the state of these beans in the database. I simply want to manage a
list of active ones.
I really do hope I explained myself quasi-clearly. I'm bleary-eyed and about
to call it an evening and go home.
Thanks again for replying and I welcome further feedback on the sanity of
what I've just tried to explain.
> cheers,
> peter
>
> <pre>
> Does anyone know how I could store a reference to a stateful
> session bean
> that could be stored in a relational database (not ODBMS) for example?
>
> I know I can get the Handle and get the object reference back
> from that, but
> is there a way to get something like a String that could be
> used to recreate
> the reference, then get the stateful bean?
>
> Thanks for any feedback.
>
> - Mike
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
>
> </pre>
>
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]