1. Best Practice JNDI Datasource vs Third party Connection Pool forum.hibernate.orgWhich is the best way to work with database connection? a) By doing a JNDI Look up as shown below |
2. Really disappointing! using JNDI Datasource within Jboss :( forum.hibernate.orgHi, Well I'm looking essentially for help because I really don't know what to do now. Ok I could retrieve the con from JNDI by myself, setting it to autocommit=off and passing it to Hibernate via a user defined connection - but that's not really elegant I think. But what makes me even more afraid is that nobody in this forum ... |
3. Getting datasource from JBoss I have...JNDI problem. forum.hibernate.org |
4. Datasource but no JNDI forum.hibernate.orgExcellent idea, very very very close. But i also need to either (1) be able to obtain the actual instance of the connectionprovider/datastore taht hibernate uses, or (2) explicitly set an instnace of either, not the class. With JNDI, a specific instance placed into jndi would've been used. Any ideas on how i can do either 1 or 2? tnx. |
5. use of Hibernate in JBoss without JNDI datasource forum.hibernate.orgHibernate version: 2.1.8 JBoss version: 4.0.0 Hi, I'm trying, in a web application, to programmatically configure the Hibernate properties, so that I can determine the database URL according to the host I'm running on. The association is performed through a properties file present in the .war file. The goal is to have the same configuration code working in J2EE and J2SE ... |
6. JNDI Data Source forum.hibernate.orgMy application uses Oracle data source (Connects directly to oracle). I want it to be configured for JNDI data source (Weblogic). Following is my configuration |
7. IBM Rational Application Developer RAD6 and JNDI datasource forum.hibernate.org |
8. DataSource without JNDI forum.hibernate.org |
9. JNDI vs. regular Datasource forum.hibernate.org |
10. JNDI based connection pooling forum.hibernate.orgHibernate version 3.2 I am trying to use jndi based connection pooling for Websphere 6.1 application server and use the jndi url in hibernate config to access the database. I configured these properties |
11. JNDI datasource not foun forum.hibernate.orgNewbie Joined: Mon May 23, 2005 3:30 pm Posts: 7 Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version:3.2 Mapping documents: |
12. C3P0 and JNDI DataSource forum.hibernate.orgHibernate-Version: 3.1.3 C3P0-0.9.0 Tomcat 5.5 Postgres 8.1 + 8.2 My question concerns automatically reconnecting to postgres in the event that it restarts. I understand that C3P0 offers this automatically and have been reading previous posts but am still not able to reconnect to the database. I'm using a JNDI DataSource specified in Tomcats server.xml as |
13. Indirect jndi call for datasource doesnt work w/WAS 6.1 forum.hibernate.org03 Dec 2007 21:04:07,999 FATAL DatasourceConnectionProvider:configure 55 - Could not find datasource: java:comp/env/jdbc/mydbname javax.naming.NameNotFoundException: Name comp/env/jdbc not found in context "java:". at com.ibm.ws.naming.ipbase.NameSpace.getParentCtxInternal(NameSpace.java:1767) at com.ibm.ws.naming.ipbase.NameSpace.lookupInternal(NameSpace.java:1083) at com.ibm.ws.naming.ipbase.NameSpace.lookup(NameSpace.java:991) at com.ibm.ws.naming.urlbase.UrlContextImpl.lookup(UrlContextImpl.java:1263) at com.ibm.ws.naming.java.javaURLContextImpl.lookup(javaURLContextImpl.java:384) at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:204) at com.ibm.ws.naming.java.javaURLContextRoot.lookup(javaURLContextRoot.java:144) at javax.naming.InitialContext.lookup(InitialContext.java:363) at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56) at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:414) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292) at com.ms.epr.db.dao.HibernateUtil. |
14. Datasource connection with JNDI in JBOSS forum.hibernate.org |
15. Getting Errors using jndi datasource forum.hibernate.orgNewbie Joined: Fri Aug 15, 2008 11:18 am Posts: 6 Location: South Carolina Using JBoss 5.1, Hibernate 3.3.1 core included in application war lib, SqlServer 2005 When I run my application using hibernate datasource things work OK but using jndi datasource I get errors. Code: |