JNDI « Session « JPA Q&A





2. Hibernate sessionFactory and JNDI    forum.hibernate.org

10 com.mysql.jdbc.Driver jdbc:mysql://localhost/seam surly true org.hibernate.dialect.MySQLDialect true pojo java:comp:/hibernateSessionFactory seam_testDatasource org.hibernate.transaction.JBossTransactionManagerLookup org.hibernate.transaction.JTATransactionFactory false org.hibernate.cache.HashtableCacheProvider ...

3. Could not locate SessionFactory in JNDI    forum.hibernate.org

false org.gjt.mm.mysql.Driver admin jdbc:mysql://localhost/portail root ...

4. SessionFactory and JNDI lookup under InitialContext    forum.hibernate.org

net.sf.hibernate.dialect.OracleDialect jdbc/DINTDS ATA_CUSTOM ATA_CUSTOM

10. Putting the Hibernate Session factory onto JNDI    forum.hibernate.org

I am trying to setup the RAR JCA adapter with WL 81 and Hibernate 305. It used to work with 217 but does not with 305. This is my connector file: Code: HibernateResourceAdapter Hibernate 1.0 Hibernate ...

11. SessionFactory JNDI lookup fails    forum.hibernate.org

Class Visibility The org.hibernate.impl.SessionFactoryObjectFactory maintains a hashmap of uid to objects. If you bind a SessionFactory in one class loader and try to load it in another class loader, the SessionFactoryObjectFactory in that class loader cannot see the mapping of uid to session factory, so the call fails. Don't know if this is a feature of hibernate or not, we had ...

12. Accessing SessionFactory through JNDI from J2SE app    forum.hibernate.org

Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3.0.5 Mapping documents: Code between sessionFactory.openSession() and session.close(): Full stack trace of any exception that occurs: [java] org.hibernate.HibernateException: Could not find datasource [java] at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:48) [java] at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80) [java] at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:313) [java] at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:112) [java] at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509) [java] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054) [java] at ami.server.ejb.HibernateUtil.(HibernateUtil.java:37) [java] at ami.server.datamart.billing.AggregationTestCase.testDailyAggregation(AggregationTestCase.java:89) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native ...

13. Could not locate SessionFactory in JNDI -> I am a newbie!    forum.hibernate.org

Hi, I'm new to Hibernate. ;) I have a JBoss running and a HypersonicDB as Server Engine running. I set up a small phonebook-Table, which was is accessable through Hibernate Tools. So I finished everything as it mentioned in the tutorial... Now I generated a DAO-File to test the generated files... This is my CFG: Code:

14. Can't get the SessionFactory using JNDI    forum.hibernate.org

Hello, I am using JBoss 4.0.3SP, EJB3.0 Hibernate3.1 and I am trying to create a Hibernate Archive (har). My problem is that the SessionFactory that I am trying to retrieve is not bound. I have searched the forums for a solution, but didn't find anything. I am confused in some issues. 1) Should my mbean that I am trying to create ...

15. JNDI bound SessionFactory    forum.hibernate.org

Newbie Joined: Sun Mar 05, 2006 7:52 am Posts: 4 Hi, This has been discussed before but I could not get it working even after going through the various past posts. I am using Hibernate 3.0 with Weblogic 8.1 and am trying to bind the session factory to the JNDI. hibernate.cfg.xml is Code:

17. looking up SessionFactory in JNDI from two different EARs    forum.hibernate.org

Scenario 1) The application deployed through the same EAR is able to register, look up, and instantiate Hibernate SessionFactory through JNDI. Scenarion2) Two EARs are deployed with separate Application class loaders (default for WebSphere). The application in one EAR registers the Hibernate SessionFactory in JNDI. The other EAR is able to do the look up, however, it fails to instatiate the ...

18. Could not locate SessionFactory in JNDI    forum.hibernate.org

Hello everyone, I have generated daos for my appplication but there is a problem when I call the dao from a test class. The error I get is: Could not locate SessionFactory in JNDI Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial My config file:

19. Could not locate SessionFactory in JNDI    forum.hibernate.org

Please excuse replying to my own topic. I just noticed straight after the "Could not locate..." error message I got a NoInitialContextException. Here's my sanitised hbm.xml file. Code: ...

20. JNDI problem "Could not locate SessionFactory in JNDI&q    forum.hibernate.org

package com.gmsoft; import com.gmsoft.model.Role; import com.gmsoft.model.RoleHome; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub com.gmsoft.model.Role rol = new Role(60,"Hibernate"); com.gmsoft.model.RoleHome rolDAO = new RoleHome(); rolDAO.persist(rol); ...

21. session_factory_name.Cant access to SessionFactory with JNDI    forum.hibernate.org

Hello forum, I'm configuring Hibernate to use JNDI properties. So, in hibernate.cfg.xml I set session_factory_name to "java:/hibernate/webshop". Mmm, I thank that if I set session_factory_name, the SessionFactory will be automatically bounded to this name in JNDI after it has been created. So, I've created a ServletContextListener as follow --> Code: /** * * @author Jordi * @web.listener * name="initContext" ...

22. Help needed!, Cannot get session factory from JNDI    forum.hibernate.org

protected SessionFactory getSessionFactory() { try { InitialContext ic = new InitialContext(); return (SessionFactory) ic.lookup("java:comp/env/hibernate/SessionFactory"); } ...

23. Hibernate session factory jndi name not bound    forum.hibernate.org

Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version:3.x Mapping documents: java:/hibernate/TrackingSessionFactory org.hibernate.transaction.JBossTransactionManagerLookup java:/trackingDS org.hibernate.transaction.JBossTransactionManagerLookup org.hibernate.transaction.JTATransactionFactory true and DefaultTracking.hbm.xml

24. JNDI bound SessionFactory !!!    forum.hibernate.org

A similar post was answered at hibernate.org: Well, it's a great idea to bind a Hibernate Session to you JNDI (Java Naming and Directory Interface) server. This way, rather than having to maintain the Session yourself, the JNDI server will, and that resource can then be accessed by any resource that has access and the rights to do a JNDI lookup. ...

25. Jndi SessionFactory & TreeCache    forum.hibernate.org

Newbie Joined: Wed Oct 08, 2008 3:18 pm Posts: 2 I am using hibernate.cfg.xml in the classpath and HibernateUtil mechanism to load the SessionFactory. The sessionFactory is bound to the JNDI using the name attribute in config file and also using hibernate.session_factory_name property. Without the treecache properties org.hibernate.cache.TreeCacheProvider true The SessionFactory binds correctly to jndi and the application works ...

26. "Could not locate SessionFactory in JNDI" Problem need Help!    forum.hibernate.org

Newbie Joined: Sun May 31, 2009 11:09 pm Posts: 1 Java 1.6+ Eclipse 3.4.2 TOMCAT 6.0 JBoss Hibernate Tools 3 MySQL 5.0 Hibernate.cfg.xml: Code: ...

27. IllegalStateException: Could not locate SessionFactory JNDI    forum.hibernate.org

Author Message lokesh.rajarathnam Post subject: IllegalStateException: Could not locate SessionFactory JNDI Posted: Tue Jun 30, 2009 1:29 am Newbie Joined: Tue Jun 30, 2009 12:47 am Posts: 1 Hi all... I m new to hibernate and trying some examples to know this... i struck in while retrieve records from database.... and getting error.. java.lang.IllegalStateException: Could not locate SessionFactory in ...

28. setting jndi for session factory    forum.hibernate.org