Just checking the documentation on this one.
In JPA you can specify in the persietence which JTA datasource the persistence unit should use. However, I can't find anywhere which states where you tell the JPA vendor which JNDI service to look up.
In the Manning book, (circa pages 96, 97, 98) it gives details for where to set the JTA datasource for a hibernate session, however again I can't see where you would tell the JPA vendor which JNDI to look up.
So I can't see anyway of doing this outside an AppServer?
Any ideas or links to wikis greatly appreciated?
|