View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3820221#3820221
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3820221 Hello, I have a Custom MBean with following description: <mbean code="steps.common.security.services.STEPSSecurityService" name="user:service=STEPSSecurityService"> Security/STEPSSecurityService policy1 c:/StepsPolicy/policy.xml The MBean is used by a piece of code in the following way: Object securityService = (Object) ctx.lookup("Security/STEPSSecurityService"); return (STEPSSecurityService) securityService; I do not get any problem when my application is loaded by the default classloader and I am able to get the handle to the Service. But when the same code is loaded by a classloader for an .ear file (I have a jboss-app.xml with loader repository entry), the code does not work and I always get a ClassCastException at the return statement above. I think the MBean is not visible to the classes in this ear. If yes, how do I get access to this Mbean ? Thanks, RG. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
