JNDI « Connection « JPA Q&A





1. Best Practice JNDI Datasource vs Third party Connection Pool    forum.hibernate.org

Which is the best way to work with database connection? a) By doing a JNDI Look up as shown below org.hibernate.ejb.HibernatePersistence java:/MyDataSource OR b) By using a Third party connection pool org.hibernate.ejb.HibernatePersistence

2. Really disappointing! using JNDI Datasource within Jboss :(    forum.hibernate.org

Hi, 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

mamoth Blue mamoth Blue web site index.jsp ...

4. Datasource but no JNDI    forum.hibernate.org

Excellent 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.org

Hibernate 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.org

My application uses Oracle data source (Connects directly to oracle). I want it to be configured for JNDI data source (Weblogic). Following is my configuration org.hibernate.dialect.Oracle9Dialect org.hibernate.transaction.JTATransactionFactory java:comp/UserTransaction org.hibernate.transaction.WeblogicTransactionManagerLookup jdbc/test org.hibernate.context.JTASessionContext After configuring to JNDI data source I am getting following. Pl tell me what are the configuration required (Checklist) in migration. java.rmi.RemoteException: EJB Exception: ...

8. DataSource without JNDI    forum.hibernate.org

9. JNDI vs. regular Datasource    forum.hibernate.org

false jdbc/Db org.hibernate.dialect.DB2Dialect true org.hibernate.transaction.JTATransactionFactory org.hibernate.transaction.WebSphereTransactionManagerLookup





10. JNDI based connection pooling    forum.hibernate.org

Hibernate 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 jdbc/myapp com.ibm.websphere.naming.WsnInitialContextFactory org.hibernate.transaction.CMTTransactionFactory org.hibernate.transaction.WebSphereExtendedJTATransactionLookup iiop://localhost:2810/ thread org.hibernate.cache.NoCacheProvider I configured datasource/jdbc provider in application deployment descriptor. I have two questions here... 1. ...

11. JNDI datasource not foun    forum.hibernate.org

Newbie 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: bnfe Code for creating session factory // Initialize SessionFactory... sessionFactory_ = new Configuration().configure().buildSessionFactory(); I am running WAS 6.0, Hibernate 3.2, EJB 2.0, oracle 10g I have created a ...

12. C3P0 and JNDI DataSource    forum.hibernate.org

Hibernate-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.org

03 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.(HibernateUtil.java:18) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:177) at com.ms.epr.core.ReviewCycleMgr.getReviewCycleId(ReviewCycleMgr.java:160) at ...

14. Datasource connection with JNDI in JBOSS    forum.hibernate.org

15. Getting Errors using jndi datasource    forum.hibernate.org

Newbie 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: ...