Hi!

Justin Forder wrote:
> >Justin Forder wrote:
> >> As a preliminary to being able to run repeatable tests, I've configured
> >> my CMP bean to create a table on deployment, and drop it on undeploy.
> >>
> >> Problem is, I'm not seeing undeploy happening - either when I shut the
> >> server down (Ctrl-C - I see the MBeans closing down), or when I remove
> >> the JAR from the deploy directory.
> >>
> >> Any advice?
> >
> >The only time an undeploy would happen currently is if a redeployment is
> >done (either by updating a deployment that is watched by the
> >AutoDeployer, or by using the deploy.jar tool).
> 
> Is it hard to do undeploy on shutdown? It seems technically correct,
> given that the server always deploys what is in its deploy directory on
> startup.

That would be proper semantics of a shutdown, yes. I'll fix this (add it
to BugZilla).

> >I could easily add a undeploy.jar to let you manually undeploy. BTW, now
> >that I think about it you could actually surf to localhost:80802 and
> >call undeploy through the web interface (use the URL of your deployment
> >as argument to undeploy).
> 
> Wow! didn't know that was there (found it on port 8082, not 80802).
> 
> My bean is called Product, JNDI name MyProduct. Could you give me the
> precise incantation?

Type in the URL to your .jar as parameter to "undeploy" method in
ContainerFactory MBean. That should do the trick.

/Rickard

-- 
Rickard �berg

@home: +46 13 177937
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to