I figure you know the object name for the ejbModule mbean.... you are writing the test.
I just added a jmx method in ServiceMBeanSupport to return the actual object behind an mbean. You can use this (or pre-jboss 4 similar code) to get the actual ejbModule object and call whatever method you want on it. I don't know if this will work with the Container mbean since it is dynamic.
david
On Thursday, January 30, 2003, at 11:41 AM, Jeremy Boynes wrote:
David Jencks wroteI am trying to unit test changes to JDBCEJBQLCompiler by comparing the SQLI'm pretty confused about what exactly you are trying to do, since there is already an instance variable ejbModule and and accessors get/setEjbModule in the Container class.
generated to known values. Its constructor takes a Catalog, which is the
metadata about the abstract schema in this deployment and is stored in the
EjbModule moduleData. Trying to construct one from scratch is a nightmare,
so my intention was to deploy the ejb-jar and get the Catalog created during
deployment.
The problem I had was getting access to the EjbModule from the test case
EJB. I know the ObjectName of the Container but the MBeanServer isolates me
from the get/setEjbModule as it is not a declared JMX attribute. I was able
to solve this by adding
if("EjbModule".equals(attribute))
{
return getEjbModule();
}
to Container.getAttribute(String attribute) to declare it but was wondering
if
a) there was a better way of getting the EjbModule, or
b) another way of getting a direct reference to the Container
so I can call getEjbModule().
And also, whether it was OK to declare this attribute.
Thanks
Jeremy
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development
------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development