embedded@glassfish.java.net

Re: [embedded] Undeploying application

From: Byron Nevins <Byron.Nevins_at_Sun.COM>
Date: Thu, 19 Mar 2009 22:44:29 -0700
Thanks for posting the issue!


Joey Jarosz wrote:

Issue 109 posted

 

 


From: Byron.Nevins@Sun.COM [mailto:Byron.Nevins@Sun.COM]
Sent: Thursday, March 19, 2009 11:06 AM
To: embedded@glassfish.dev.java.net
Subject: Re: [embedded] Undeploying application

 

I'm tending to agree with you.  That API was added recently in order to get code out of the top-heavy Server class. 

I will look into making it return a Singleton, post prelude.

If you have time can you post an Issue?  If not, I'll post it later.


Joey Jarosz wrote:

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@Sun.COM [mailto:Byron.Nevins@Sun.COM]
Sent: Wednesday, March 18, 2009 3:37 PM
To: embedded@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@cadence.com]
Sent: Wednesday, March 18, 2009 12:31 PM
To: embedded@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  

 




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



-- 
Byron Nevins Work 408-276-4089, Home 650-359-1290, Cell 650-784-4123 - Sun Microsystems, Inc.
--------------------------------------------------------------------- To unsubscribe, e-mail: embedded-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: embedded-help@glassfish.dev.java.net

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