Thanks, Vlad. I wasn't aware that the hibernate.connection.datasource property can be used to refer to a non-JNDI objects.