quality@glassfish.java.net

Re: Coding for Java-EE 6 while being compatible to Java-EE 5

From: Felipe Gaucho <fgaucho_at_gmail.com>
Date: Wed, 23 Dec 2009 11:11:14 +0100

You need to bundle the jpa libs with your app, and I am not sure if it
will work at all....

Jpa 2 is java ee 6 and i am not sure if it should work on old servers :)

On 23.12.2009, at 11:08, Richard Kolb <rjdkolb_at_gmail.com> wrote:

> Hi Cats
>
> I have created my new JPA 2 application for GlassFish 3.
>
> And it works great.
>
> JPA 2 example :
> CriteriaQuery cq = em.getCriteriaBuilder().createQuery();
> cq.select(cq.from(Manufacturer.class));
> Query q = em.createQuery(cq);
>
> As apposed to JPA 1 :
> Query q = em.createQuery("select object(o) from Manufacturer as o");
>
> The problem I have now is this app won't work in GlassFish 2.1. And
> one of the developers that works with me is complaining bitterly.
>
>
> Any ideas on how to make sure my app is compatible with GlassFish 2
> and still use JPA 2 ?
>
>
> regards
> Richard.
>
>
>