Hah, embarrassing. Thanks very much, Alex. Glad it was something dumb and
not something complicaeted, though!
On 23 July 2012 09:10, Alex Kotchnev wrote:
> It seems that you might be setting the wrong hibernate configuration
> property - at least this thread (
>
> http://stackoverflow.com/ques
It seems that you might be setting the wrong hibernate configuration
property - at least this thread (
http://stackoverflow.com/questions/5303671/configure-hibernate-to-connect-to-database-via-jndi-datasource
)
on stack overflow indicates that the datasource property is
"hibernate.connection.dataso
The problem goes away if I provide a hibernate.cfg.xml file with all the
database connection properties, and set
HibernateSymbols.DEFAULT_CONFIGURATION to true.
So I suppose my question is:
What do I need to do to get rid of the hibernate.cfg.xml file? I need to
have my application use a data so
Aside from a purely T5 way of doing it,
*You can also look up a JNDI source, configured in your web.xml and in a
context.xml, and then have a different context.xml on each server you deploy
to. (This is assuming you can use the same dialect and options.) I used to
switch back and forth between J
You can contribute to the HibernateSessionSource service. Your
contributions are objects that are used to configure the Hibernate.
Such objects can decide what mode ("production" vs. "development") you
are in, and set the correct values for various Hibernate Configuration
properties.
On Mon, Jan 2