When you going to make that change? I'm working on the GBean code right now, but will be offline Thursday until Sunday Morning.

Also, I'm a bit curious about the GBeanName interface? For example, I assume we are keeping the concept of pattern matching, but are we keeping the concept that a name contains name/value pairs. I know there is some J2EE deployment code manipulate the name/value pairs to build new object names.

-dain

--
Dain Sundstrom
Chief Architect
Gluecode Software
310.536.8355, ext. 26

On Nov 24, 2004, at 10:51 AM, Jeremy Boynes wrote:

Sounds reasonable - I can roll this into the ObjectName changes.

--
Jeremy


Dain Sundstrom wrote:
One of the last areas of tight coupling to JMX in the Geronimo kernel and the GBean architecture is the use of JMX Exceptions. These the exceptions are normally not declared as part of the interface, but are thrown from the methods that declare "throws Exception". I propose that we catch all JMX exceptions and convert them to the following Geronimo specific exceptions:
KernelException - Base class for the following exceptions. Direct subclass of Exception.
GBeanNotFoundException - Thrown from getAttribute, setAttribute, invoke, getGBeanInfo, getClassLoaderFor, startGBean, startRecursiveGBean, stopGBean, and unloadGBean. This replaces javax.management.InstanceNotFoundException.
GBeanAlreadyExistsException - Thrown from loadGBean. This replaces javax.management.InstanceAlreadyExistsException.
InvalidGBeanException - Thrown from loadGBean. This is used instead of javax.management.NotCompliantMBeanException.
NoSuchAttributeException - Thrown from getAttribute and setAttribute. This replaces javax.management.AttributeNotFoundException
NoSuchOperationException - Thrown from invoke. There is no equivalent exception in JMX.
InternalKernelException - Extend runtime exception. Thrown from all methods on kernel. This exception will contain any java.lang.Exception (and for the improbable case of direct subclass of java.lang.Throwable) thrown from the kernel or gbean architecture itself. This allows callers to differentiate between kernel problems and exceptions from the GBean instance implementation.
-dain
--
Dain Sundstrom
Chief Architect
Gluecode Software
310.536.8355, ext. 26



Reply via email to