You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by "Ranjan, Rakesh (Cognizant)" <Ra...@cognizant.com> on 2006/01/03 15:52:54 UTC

search GBean

Hi all,



I want to search the GBeans deployed on Geronimo Server inside a J2EE
application. Is there any way to search the GBeans using only few
information.

I mean suppose that I have a GBean



geronimo.server:J2EEApplication=null,J2EEModule="configId",J2EEServer=ge
ronimo,j2eeType=GBean,name="gbeanName"



I want to search this GBean through the parameter 'name' only. Is there
any way to search the GBean using few parameters?



Rakesh Ranjan



This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com

Re: search GBean

Posted by Aaron Mulder <am...@alumni.princeton.edu>.
On 1/3/06, Ranjan, Rakesh (Cognizant) <Ra...@cognizant.com> wrote:
> I want to search this GBean through the parameter 'name' only. Is there any
> way to search the GBean using few parameters?

Yes, but the better way is to search by interface.  That's much more
resistant to naming changes.  In any case, the method you want is in
Kernel (I think it's listGBeans but I'd need to look, and the best one
takes something like a GBeanQuery as a parameter, which in turn takes
an optional interface name and optional ObjectName query as
parameters).  But um, if I was not the intended recipient of this
message, you can ignore my response and I'll go ahead and destroy all
copies of the confidential and privileged information now.

Aaron

> Rakesh Ranjan
> This e-mail and any files transmitted with it are for the sole use of the
> intended recipient(s) and may contain confidential and privileged
> information.
>  If you are not the intended recipient, please contact the sender by reply
> e-mail and destroy all copies of the original message.
>  Any unauthorized review, use, disclosure, dissemination, forwarding,
> printing or copying of this email or any action taken in reliance on this
> e-mail is strictly
>  prohibited and may be unlawful.
>
>  Visit us at http://www.cognizant.com
>