-->
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.  [ 2 posts ] 
Author Message
 Post subject: ComboPooledDataSource configure in hibernate
PostPosted: Wed Jan 19, 2011 11:09 am 
Newbie

Joined: Wed Jan 19, 2011 11:01 am
Posts: 4
hey everybody.

I have a ComboPooledDataSourced configured in a servlet and i have an error: cannot find datasource, that's cause i think i have to configure it in hibernate.cfg.xml but dont know how.
I have ComboPooledDataSource ds = new ComboPooledDataSource(); and then i make the settings in the servlet (like ds.setUser.....)
in the hibernate.cfg.xml have:
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.datasource">package.classWhereDSisDefined</property>
</session-factory>
</hibernate-configuration>

please tell me if u know how to tell hibernate that i have datasource already defined...
thnx
Mark


Top
 Profile  
 
 Post subject: Re: ComboPooledDataSource configure in hibernate
PostPosted: Wed Jan 19, 2011 1:31 pm 
Newbie

Joined: Wed Jan 19, 2011 11:01 am
Posts: 4
SOLVED :)))


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

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.