tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew n marshall <Andrew.n.marsh...@mail.com>
Subject @PersistenceUnit Example
Date Mon, 14 Jul 2008 18:36:15 GMT

Does anyone have an example of how to configure resource injection for 
EntityManagerFactory/PersistenceUnits?

I'm using Hibernate with a JNDI database (MySQL), but any example would 
be a big help.  I think I should be using the <resource> tags of 
context.xml, but I don't know how to add the Hibernate specific 
properties, or exactly which JNDI names should be used where (some are 
described as relative to "java:comp/env").  But as far as I know, I may 
not even be on the right track.



Anm

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message