-->
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: Get DataSource FROM Hibernate
PostPosted: Thu Jul 12, 2012 5:59 pm 
Newbie

Joined: Fri Nov 30, 2007 8:36 am
Posts: 4
I have Hibernate working great. We use it as our primary database engine. This may run inside or outside of a container. We have an interface that is NOT our code that requires the developer to pass in the DataSource. How can I get a DataSource FROM Hibernate if I am loading it up like this?

<!-- Settings for a MySQL database. -->
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://localhost:3306/schema</property>
<property name="connection.username">username</property>
<property name="connection.password">password</property>

Thanks in advance.


Top
 Profile  
 
 Post subject: Re: Get DataSource FROM Hibernate
PostPosted: Sun Jul 15, 2012 1:34 pm 
Newbie

Joined: Fri Nov 30, 2007 8:36 am
Posts: 4
Anyone? It has to have a datasource internally.


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.