Hi, I’m using BEA Weblogic 8.1 with some tiers for my
architecture. My hibernate access resides on a DAO layer (behind stateless
beans). My question is what I have to configure to be able to get
the SessionFactory from the JNDI – I have the hibernate.cgf.xml set up as: <hibernate-configuration> <!-- a SessionFactory instance listed as
/jndi/name --> <session-factory name="/hibernate/SessionFactory"> <!—rest of properties and mappings, etc…
à </session-factory> </hibernate-configuration> My DAOs reside within the WLS server, so I guess I’m
able to use the default InitialContext and not have to set the jndi properties. But even when I go to WLS console and list the JNDI tree, I
don’t see the session factory bound to it, and of course, my code is
throwing a NamingException (NameNotFoundException). Am I missing something here? Do I have to bind the
sessionFactory myself? If yes, how? Using a WLS StartUP class? Thanks for the help, Marcelo. |
- [Hibernate] Looking Session Factory on JNDI Caldas, Marcelo
- Re: [Hibernate] Looking Session Factory on JNDI Christian Bauer