geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <>
Subject Re: How can a GBean get its ObjectName?
Date Sun, 19 Dec 2004 18:17:13 GMT
You can get the "jsr-77" string version of the objectName by using a 
magic attribute

infoBuilder.addAttribute("objectName", String.class, false); //note 

I usually include it as a constructor argument, although I think it 
will also work if you have a setter.

If you need the ObjectName, you'd have to call 

david jencks

On Dec 19, 2004, at 7:55 AM, Alan D. Cabrera wrote:

> How can a GBean get its ObjectName?
> Regards,
> Alan

View raw message