persistence@glassfish.java.net

Re: Can JPA Be Used In Web Start?

From: Lance J. Andersen <Lance.Andersen_at_Sun.COM>
Date: Wed, 02 Jan 2008 11:54:20 -0500

I guess i am somewhat confused then as your subject was surrounding the
use of JPA with Web Start.


There are many examples on how to use JPA in a Java EE environment.
Please see the Java EE tutorial at
http://java.sun.com/javaee/reference/tutorials/ as just one example.


Regards
Lance

Johannes Hoehne wrote:
>
> Hallo Lance,
> I'm sorry but I think that there is an misunderstanding. I don't use
> any Webstart. I'm developing ordinary EJB applications and I want to
> switch our persistence framework to a JPA conform one.
>
> Johannes Höhne
>
>
>
>
> *"Lance J. Andersen" <Lance.Andersen_at_Sun.COM>*
> Sent by: Lance.Andersen_at_Sun.COM
>
> 02.01.2008 17:23
> Please respond to
> persistence_at_glassfish.dev.java.net
>
>
>
> To
> persistence_at_glassfish.dev.java.net
> cc
>
> Subject
> Re: Can JPA Be Used In Web Start?
>
>
>
>
>
>
>
>
>
> Tim Quinn wrote a couple of blogs on how to use Java webstart with
> GFv2 with appclients. I have not tried this myself, but this should
> give you enough to get started.
>
> Also the GFv2 docs should have info on using webstart with application
> clients.
>
> Regards
> lance
>
> Johannes Hoehne wrote:
>
> Thank you for your quick answer. But I'm not able to see how this
> would solve my problem. Your code example creates the entity manager i
> an explicit way and uses RESOURCE_LOCAL as transaction type. Our EJBs
> must use JTA and an injected entity manager.
> I need a kind of a trick to use a jndi name but not the real name of
> the orm.xml file in the persistence.xml
>
> Johannes Hoehne
> ------------------------------------------------------------------------
> *RSC Commercial Services OHG*
> Wanheimer Straße 70, D-40468 Düsseldorf
> Registergericht: Düsseldorf, HRA 12655
>
> ------------------------------------------------------------------------
> *RSC Commercial Services OHG*
> Wanheimer Straße 70, D-40468 Düsseldorf
> Registergericht: Düsseldorf, HRA 12655