HibernateFactory « Core « JPA Q&A





1. HibernateFactory    forum.hibernate.org

Hi, I am running hibernate as a MBean in JBoss. I would like to retreive the HibernateFactory instance from JNDI so that I can add mapping files to the Hibernate MBean at run time. The code looks like this: HibernateService hibernateService = (HibernateService) new InitialContext().lookup(HIBERNATE_SERV_JNDI_NAME); hibernateService.addMapResource(XXX.hbm.xml); What should I set the value of HIBERNATE_SERV_JNDI_NAME to? When I use "java:/hibernate/HibernateFactory", I get ...

2. Problem Accessing HibernateFactory Across JVMs    forum.hibernate.org

jboss.jca:service=RARDeployer jboss.j2ee:service=EjbModule,module=ecommerce-ejb-account.jar jboss.j2ee:service=EjbModule,module=ecommerce-ejb-product.jar jboss.jca:service=LocalTxCM,name=ecommerce/ds mappings/System.hbm.xml, mappings/Account.hbm.xml, mappings/Product.hbm.xml ...

3. Try connection pool of JBoss...HibernateFactory not bound    forum.hibernate.org

I am trying to access DB by hibernate through JBoss DataSource in order to get benefit of connection pooling. But encounter problem now. When I lookup SessionFactory from JBoss server, through my java code like this: Code: public String getCompany(Integer custno) { String company = ""; try { Properties env = new Properties(); ...

4. Try connection pool of JBoss...HibernateFactory not bound    forum.hibernate.org

I am trying to access DB by hibernate through JBoss DataSource in order to get benefit of connection pooling. But encounter problem now. When I lookup SessionFactory from JBoss server, through my java code like this: Code: public String getCompany(Integer custno) { String company = ""; try { Properties env = new Properties(); ...

5. Jndi name error? HibernateFactory not bound.    forum.hibernate.org

... 12:59:44,351 INFO [SessionFactoryImpl] building session factory 12:59:44,351 WARN [Configurator] No configuration found. Configuring ehcache fr om ehcache-failsafe.xml found in the classpath: jar:file:/C:/jboss-4.0.2/server/ default/lib/ehcache-1.1.jar!/ehcache-failsafe.xml 12:59:44,382 INFO [SessionFactoryObjectFactory] Factory name: java:HibernateFac tory 12:59:44,382 INFO [NamingHelper] JNDI InitialContext properties:{} 12:59:44,382 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name: jav a:HibernateFactory 12:59:44,382 WARN [SessionFactoryObjectFactory] InitialContext did not implemen t ...

6. Jndi name error? HibernateFactory not bound.    forum.hibernate.org

... 12:59:44,351 INFO [SessionFactoryImpl] building session factory 12:59:44,351 WARN [Configurator] No configuration found. Configuring ehcache fr om ehcache-failsafe.xml found in the classpath: jar:file:/C:/jboss-4.0.2/server/ default/lib/ehcache-1.1.jar!/ehcache-failsafe.xml 12:59:44,382 INFO [SessionFactoryObjectFactory] Factory name: java:HibernateFac tory 12:59:44,382 INFO [NamingHelper] JNDI InitialContext properties:{} 12:59:44,382 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name: jav a:HibernateFactory 12:59:44,382 WARN [SessionFactoryObjectFactory] InitialContext did not implemen t ...

7. HibernateFactory not bound!    forum.hibernate.org

Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp [b]Hibernate version:3.0.5[/b] [b]Mapping documents: turundaja-hibernate.sar[/b] I use Jboss 4.0. and Postresql. I have such a problem that i need to run that application under new server and it is workin ok on the old one. It seems to deploy ok. But when i try to login into that application i get ...