Persistence outside EJB

Hi

I am developing a web app with tomcat and JSF and apache derby db. I want to use the java persistence api to talk to the DB. (Note: I am not using the EJBs here)

I would like to know if this possible or should I just go with hibernate. This application will reside in an embedded device with good processing power.

So please also suggest adding java persistence or hibernate would be a big overhead compared to the plain JDBC access. If so how much would be the overhead

thanks

[512 byte] By [vpalkondaa] at [2007-11-26 21:47:34]
# 1

Absolutely. The Java Persistence API was designed to be usable from outside the EJB tier.

You can use it from within other Java EE tiers such as the web tier or Application Client tier,

or outside of a Java EE environment altogether.

The Java Persistence API was developed as part of the EJB 3.0 JSR but in future releases

it will be evolved as its own specification.

You can find some more information here :

https://glassfish.dev.java.net/javaee5/persistence/

--ken

ksaksa at 2007-7-10 3:37:49 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
thanks ken of the response. I wiil look into the link now -pal
vpalkondaa at 2007-7-10 3:37:49 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...