users@glassfish.java.net

Re: Embedded glassfish ScatteredArchive question

From: Marina Vatkina <marina.vatkina_at_oracle.com>
Date: Wed, 28 Sep 2011 17:22:04 -0700

EJB embedded uses SA if there is only one EJB module (for more than one,
it creates a temp exploded ear directory). But SA needs to know that
it's an EJB module, so add it as the 1st element, in addition to the JAR
type.

-marina


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
>