users@glassfish.java.net

Re: javaee.jar contains duplicates of WS class files, how come ?.

From: ludo <Ludovic.Champenois_at_Sun.COM>
Date: Tue, 06 Feb 2007 07:47:17 -0800

Gustav Trede wrote:
>
> Javaee.jar contains quite many .class files that also exist in
> webservice-rt.jar ?.
>
> It was earlier announced that all WS related libs ware to be in 2
> files only : webservices-rt.jar webservices-tools.jar .
>
> Is there a specific technical reason for duplicating these class files
> that makes the confusion factor worth it?
>
> regards
I think this is exactly the purpose of this jar to contain *all* the
public apis for Java EE 5 spec (and only that).
You'll find there the apis for javamail, activation, servlets, jsf, jpa
and ws (etc)
All these apis are also in respective component jars, but by using this
javaee.jar only to compile your application, you know you are not using
implementation specific classes, and that it is portable.
So compile against javaee.jar and deploy to a Java EE 5 compliant
container to get the implementation of the apis at run time, via the
containers.

Ludo
> gustav
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>