geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Boynes <jboy...@gluecode.com>
Subject Re: How can I get a reference collection from a GBean?
Date Mon, 20 Dec 2004 18:09:17 GMT
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.

--
Jeremy

Mime
View raw message