This pattern should be used in both the start and stop methods then. I
have done this and I am able to redeploy ejb jars.

Why can the name ObjectName(":service=Container,jndiName=someName")
be used to register an mbean but the same name fails to unregister it?

----- Original Message -----
From: "Vincent Harcq" <[EMAIL PROTECTED]>
To: "Dev JBoss" <[EMAIL PROTECTED]>
Sent: Wednesday, August 15, 2001 5:19 AM
Subject: [JBoss-dev] Container.java


> The server can not re-deploy an ejb jar anymore because of exception on
> unregistration of MBean.
>
> Does this makes sense (on the stop() method)?
>
> diff -r1.55 Container.java
> 421c421
> <          ObjectName jmxName = new
>
ObjectName(":service=Container,jndiName="+this.getBeanMetaData().getJndiName
> ());
> ---
> >          ObjectName jmxName = new
>
ObjectName(mbeanServer.getDefaultDomain()+":service=Container,jndiName="+thi
> s.getBeanMetaData().getJndiName());
>
> Vincent.
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-development
>


_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to