0 Replies Latest reply on May 6, 2009 7:07 AM by meet_ravip

    How to create/bound the JNDI names globally for hibernate Se

      I am new to jboss(but not app server domain) and tried running the examples in the below link.
      Ref:-
      http://docs.jboss.org/jbossas/getting_started/v5/html/hibernate.html
      When i ran the example i am getting the exception saying that

      NamingException: hibernate not found.

      When i analyse the issue it looks like 'hibernate/SessionFactory' is not bound to JNDI.I couldn't find any options in mysql-ds.xml and other xml files.
      The only place we are mentioning is hibernate-service.xml,but it didn't insist app server to bound that jndi name during run time.

      The workaround i found is by following the last paragraph in the below link

      http://docs.huihoo.com/hibernate/hibernate-reference-2.1.7/session-configuration.html

      My Questions:-
      ***********
      1.is there any configuration file where in which i can specificy the hibernate session factory and then jboss identifies that change and bound the JNDI name?
      2.is there any command line tool or console option(web-console) where in which i can add the JNDI resources?.