embedded@glassfish.java.net

RE: [embedded] Undeploying application

From: Joey Jarosz <joey_at_cadence.com>
Date: Wed, 18 Mar 2009 15:56:16 -0700

My two cents: If Server.getDeployer() needs to return a new instanceof
of EmbeddedDeployer each time it should be renamed to
Server.createDeployer()

 

There are other methods such as Server.getFileSystem() that return
references stored on the instance of Server, so there is a lack of
symmetry in the api currently. Sometimes a "get" does a get, but
sometimes it means "create".

 

joey

 

________________________________

From: Byron.Nevins_at_Sun.COM [mailto:Byron.Nevins_at_Sun.COM]
Sent: Wednesday, March 18, 2009 3:37 PM
To: embedded_at_glassfish.dev.java.net
Subject: Re: [embedded] Undeploying application

 

No problem in fact quite the contrary! I'm delighted to hear feedback
about these features.


Joey Jarosz wrote:

My bad.

 

I had not realized that Server.getDeployer() was returning a new
instance of the EmbeddedDeployer each time; so I was trying to undeploy
an application unknown to that new deployer instance.

 

Sorry for the confusion.

joey

________________________________

From: Joey Jarosz [mailto:joey_at_cadence.com]
Sent: Wednesday, March 18, 2009 12:31 PM
To: embedded_at_glassfish.dev.java.net
Subject: [embedded] Undeploying application

 

Ok, I can't figure out what "name" the EmbeddedDeployer.undeploy() wants
to successfully undeploy an application. I am using the value returned
from ReadableAchrive.getName() which appears to be the wrong thing to
pass to the method. Any hints?

 

Here is the exception:

org.glassfish.embed.EmbeddedException: Cant find the app that you
requested to deploy: {0}

        at
org.glassfish.embed.EmbeddedDeployer.undeploy(EmbeddedDeployer.java:219)

 

 

--------------------------------------------
Joey Jarosz

Senior Architect

Chip Planning Solutions

Cadence Design Systems, Inc.
(408) 914-6269


Need some IP? Check out www.chipestimate.com
<http://www.chipestimate.com>

 





-- 
Byron Nevins Work 408-276-4089, Home 650-359-1290, Cell 650-784-4123 -
Sun Microsystems, Inc.