Hi Scott,

I don't know.
I undeploy by deleting the jar in the deploy/ directory (windows 2000), I
did not try by JMX.
I got:
Bug in com.sun.management.jmx.MBeanServerImpl.unregisterMBean ?

[org.jboss.ejb.AutoDeployer              ] (199) - Auto undeploy of
file:/C:/Projects/VMI/jboss/tmp/deploy/Default/Task.jar
[org.jboss.deployment.J2eeDeployer#Default] (67 ) - Stopping module Task.jar
[org.jboss.ejb.ContainerFactory          ] (67 ) -
Undeploying:file:/C:/Projects/VMI/jboss/tmp/deploy/Default/Task.jar
My debug msg ==> [org.jboss.ejb.MessageDrivenContainer    ] (426) -
Exception stopping Container
file:/C:/Projects/VMI/jboss/tmp/deploy/Default/Task.jar
javax.management.InstanceNotFoundException:
:service=Container,jndiName=SystemTaskQueue
        at
com.sun.management.jmx.MBeanServerImpl.unregisterMBean(MBeanServerImpl.java:
945)
        at org.jboss.ejb.Container.stop(Container.java:422)
        at
org.jboss.ejb.MessageDrivenContainer.stop(MessageDrivenContainer.java:221)

I just try your version of Container.java.
It is working fine.

Vincent.

> 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().g
> etJndiName
> > ());
> > ---
> > >          ObjectName jmxName = new
> >
> ObjectName(mbeanServer.getDefaultDomain()+":service=Container,jndi
> Name="+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
>


_________________________________________________________
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

Reply via email to