Yes, you can. [1] is a good example. Follow the link that says "Using in
Java SE." [2] gives an example of using JPA in a web container.
[1]
https://glassfish.dev.java.net/javaee5/persistence/persistence-example.html
[2]
http://weblogs.java.net/blog/ss141213/archive/2005/12/introduction_to.html
Dru Devore wrote:
> I have to ask the experts on this. I have been reading blurbs on
> different sites about being able to separate JPA from EJB3. I have not
> read the spec and have not had a lot of chance to simply play with this
> topic so I wanted to see what the glassfish persistence community would
> say before I put too much time into it.
>
> Can JPA be used without an EJB container?
>
> If so:
> How difficult is it:
>
> Where can I get more information about doing it?
>
>
>
>