Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hi,
Can anybody tell me how to use weblogic connection pool with hibernate. i am using weblogic cluster.
I have added the following in my hibernate.properties file
## JNDI Datasource
hibernate.connection.datasource jdbc/connectionPool
hibernate.jndi.Context.INITIAL_CONTEXT_FACTORY weblogic.jndi.WLInitialContextFactory
But i am getting ' java.lang.NoClassDefFoundError ' exception.
when my method calls getSession() of HibernateUtil class. The getSession() method is given below.
public static Session getSession()
throws InfrastructureException {
Session s = (Session) threadSession.get();
try {
if (s == null) {
log.debug("Opening new Session for this thread.");
if (getInterceptor() != null) {
log.debug("Using interceptor: " + getInterceptor().getClass());
s = getSessionFactory().openSession(getInterceptor());
} else {
s = getSessionFactory().openSession();
}
threadSession.set(s);
}
} catch (HibernateException ex) {
throw new InfrastructureException(ex);
}
return s;
}
[b]Hibernate version:[/b]
hibernate 3rc
[b]Name and version of the database you are using:[/b]
Oracle 9