• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNDI bound Session Factory

 
Siddharth Bhargava
Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
1) Please help me in configuring JNDI bound SessionFactory in Hibernate. I am using MySQL database and JBoss 4.2.2 app. server. Please help me I am not getting help/clue from anywhere. I have searched the net also. Anyhelp will be highly appreciated. Thanks in advance. I have tried writing a simple program but it dosen't work.

2) Is configuring a datasource and configuring JNDI bound SessionFactory one and the same thing. If No then how to configure a datasource using the same above configuration.

Please Help !!!

hibernate.cfg.xml
------------------



main program
------------

 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

but it dosen't work

It is easier for people to help if you can tell us what is going wrong. It would also help if you can post a stacktrace.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic