David Jencks wrote > > I'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. >
I am trying to unit test changes to JDBCEJBQLCompiler by comparing the SQL 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