geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dain Sundstrom <dsundst...@gluecode.com>
Subject Re: How can I get a reference collection from a GBean?
Date Mon, 20 Dec 2004 18:46:09 GMT
On Dec 20, 2004, at 10:09 AM, Jeremy Boynes wrote:

> Alan D. Cabrera wrote:
>> I added
>>     infoFactory.addOperation("getProtocols");
>> in addition to the reference below and I can now get this collection 
>> via
>> the call:
>>     (Collection) kernel.invoke(gbeanName, "getProtocols");
>
> This seems to be a dangerous thing to do given the collection is a 
> live set of references - it might be safer to have an attribute that 
> returned a static snapshot of the collection.

It will only be as dangerous as the GBean using the collection itself.

-dain


Mime
View raw message