David Jencks wrote:
> Did you look at how ServiceCreator does it? That might work for you also. 
> Basically you ask the mbeanserver to create your object (sub-service) for
> you using a specific classloader, then it remembers for you, you don't need
> to worry about the mbeanRegistry.
> 

I want to _register_ (not create) an existing Service.

The method I use (from MBeanServerImpl) has:

    public ObjectInstance registerMBean(Object object, ObjectName name)
       throws InstanceAlreadyExistsException,
              MBeanRegistrationException,
              NotCompliantMBeanException
    {
       return registerMBean(object, name, (ClassLoader)null);
    }

and

   protected ObjectInstance registerMBean(Object object, ObjectName name, ClassLoader 
cl)
   {
      ...
   }

Should it be that JBoss "denies" me the feature to register inside my ear-scope in a 
way,
that the TCL is the right one by making things protected?

Or maybe I don't think about it in the right way?

Michael Bartmann



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to