connect « Connection « JPA Q&A





1. How do i use JPA 2 to connect to multiple data sources?    stackoverflow.com

I have two databases in MSSQL ,and i want to connect to them using JPA2 I have managed to get it working with one . Can some one help me how ...

2. Configure hibernate to connect to database via JNDI Datasource    stackoverflow.com

Hi all I'm using Hibernate+Struts2+Tomcat6+Mysql as my J2EE framework. I've been using hibernate's built-in connection pooling mechanism but it turned out to be problematic where mysql closes it's connections after 8 hours. ...

3. Grails: With the datasources plugin, having trouble connecting domain classes across different datasources    stackoverflow.com

I'm using the datasources pluging for Grails described here: http://burtbeckwith.com/blog/?p=70 I'm connecting to 2 MySQL database schemas on the same server: my_schema_1 and my_schema_2. Most of the data I need ...

4. Connecting to WAS Datasource    forum.hibernate.org

Hi, I am trying a Hibernate Tutorial in OnJava. It says Hibernate.properties should be like this: hibernate.connection.username=sa hibernate.connection.password= hibernate.connection.url=jdbc:hsqldb:/home/davor/hibernate/orders hibernate.connection.driver_class=org.hsqldb.jdbcDriver hibernate.dialect=net.sf.hibernate.dialect.HSQLDialect My question is: if I use WSAD and have a datasource setup by JNDI name "jdbc/test" a) how do I specify this in this properties file. b) do I need to specify username and password in this file (all this ...

5. java.net.ConnectException: Connection timed out: connect    forum.hibernate.org

Author Message pedrosacosta Post subject: java.net.ConnectException: Connection timed out: connect Posted: Wed Mar 08, 2006 2:00 pm Newbie Joined: Wed Dec 14, 2005 7:27 am Posts: 18 Hibernate version: 2 I'm trying to create pojo files through the *.hbm.xml files using hbm2java, and i get the following error: Code: [hbm2java] log4j:WARN No appenders could be found for logger (net.sf.hibernate.util.DTDEntityResolver). ...

6. [Connection problem] Connecting without a domain name    forum.hibernate.org

Hi, I have a connection problem with hibernate i got my hibernate.cfg.xml like that : Code: net.sourceforge.jtds.jdbc.Driver ...

7. Fail connect database with JNDI connection in App Server    forum.hibernate.org

I build an application with Java 1.5. Framework: Hibernate 3.2 cr2 OS: Window XP Testing Database: Oracle 8,9,10 and MySQL 4,5 The Application run ok with all Tomcat 5.5 version. But when i try to deploy to Java Application Server 9 / JBoss 4.0.4. (Included all the hibernate required library file to WEB_INF\lib already..) (Note: configured JNDI connection in application. If ...

8. Connecting to a DataSource programatically    forum.hibernate.org