Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to register the Hibernate SessionFactory into JNDI

 
Megan Troy
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to automatically bind the SessionFactory to JNDI upon the application server's startup?

The documentation mentions that
Hibernate will automatically place the SessionFactory in JNDI after you call cfg.buildSessionFactory().

But I don't find this happening?

I also mentioned the foll. property:

<property name="hibernate.session_factory_name">java:hibernate/SessionFactory
</property>

in the config file.

I am using websphere 6.0?

Has anyone used Hibernate on EJB's (Session) within the WebSphere App. Server?

Thanks,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic