| Hi, Simeon Malchev, The JNDI argument is only true for Java EE. When using Spring, you can simply create the DataSource as a Java object and provide it to Hibernate via their custom PersistenceUnitInfo or through Hibernate hibernate.connection.datasource configuration property which accepts Java objects as well. Even in a standalone JTA environment using Bitronix or Atomikos, you don't need JNDI to get access to a JTA DataSource. |