-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate with weblogic connection pool
PostPosted: Thu Apr 28, 2005 8:01 am 
Newbie

Joined: Fri Feb 11, 2005 7:20 am
Posts: 18
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

_________________
Thanks in advance,
Lakshmi


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.