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?.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228937#4228937

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228937
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to