Hello hibernate world,
I am a new hibernate user and I have found a problem, not in the hibernate product, I thing my problem is the way I want to use hibernate.
I have installed properly Hibernate in a JBoss server as a service ( see reference
www.hibernate.org/66.html).
I am trying to code a client application, that is a standalone applications that try to get a HibernateFactory from a JBoss remote platform. All the examples I have seen are EJB's or Web applications but not clients.
To do that I have only changed the default JNDI Hibernate name configuration from java:/hibernate/HibernateFactory to jnp:/hibernate/HibernateFactory
I am able to create from my client a HibernateFactory reference but it is NULL. This is the used code in the main method:
...
Context jndiContext = getInitialContext();
Object ref = jndiContext.lookup("jnp:/hibernate/HibernateFactory");
...
ref is null (but there is no runtime errors)
Can anybody HELP ME? please
It is not a correct architecture to use Hibernate?
THANKS in advance