users@glassfish.java.net

Re: Embedded glassfish ScatteredArchive question

From: Bhavanishankar <bhavanishankara.sapaliga_at_oracle.com>
Date: Thu, 29 Sep 2011 05:28:58 +0530

Hi Laird,

If such a scattered archive is deployed using deployer.deploy
<http://embedded-glassfish.java.net/nonav/apidocs/org/glassfish/embeddable/Deployer.html#deploy%28java.io.File,%20java.lang.String...%29>(scatteredArchive.toURI()
<http://embedded-glassfish.java.net/nonav/apidocs/org/glassfish/embeddable/archive/ScatteredArchive.html#toURI%28%29>),
the EJB should get deployed.

Thanks,

Bhavani

On 09/29/2011 02:36 AM, Laird Nelson wrote:
> In an embedded Glassfish ScatteredArchive
> <http://embedded-glassfish.java.net/nonav/apidocs/org/glassfish/embeddable/archive/ScatteredArchive.html>,
> if I add a File to the classpath
> <http://embedded-glassfish.java.net/nonav/apidocs/org/glassfish/embeddable/archive/ScatteredArchive.html#addClassPath%28java.io.File%29>,
> and if that File is either a .jar file or a directory and contains an
> EJB class, is it expected that that EJB will be deployed?
>
> Or is it a classpath "only"--i.e. is used only to package up dependent
> libraries and whatnot?
>
> Best,
> Laird
>
> --
> http://about.me/lairdnelson
>