jndi « JBoss « JPA Q&A





1. Hibernate JBOSS JNDI Configuration    stackoverflow.com

Currently I have an application that is configured for Hibernate and JNDI but runs on a Tomcat server. I have been tasked with moving this web application to JBOSS 5.1. I ...

2. Hibernate+jBoss - problem with JNDI/RMI over HTTP tunnel    forum.hibernate.org

Hello, our application uses jBoss 3.2.3 and Hibernate(last stable) integrated as MBean without problems. Application scenario is simple: fat client <-> AS <-> DB(via Hibernate). All comunication goes over JNDI and RMI channels. For security reason we have to switch communication to be tunneled via HTTP. After setting this, thare's no problem until app. do some insert or update. It throws ...

3. Resolve Jbosscache using JNDI    forum.hibernate.org

I'm using Spring to wire an application together, but intead of linking Hibernate and TreeCache thru JMX, I'd prefer to pass the cache provider to Hibernate using JNDI. The reason is that I'd prefer to wire everything using Spring rather than depending on JMX to provide a similar function. In my Spring config, I'd like to be able to swap between ...

4. Jboss 3.2.6 JNDI access from hibernate    forum.hibernate.org

Hi, I have just migrated from Apache/Tomact to Apache/Jboss 3.2.6 and now need to change my class files to take advantage of JNDI. I have declared my jndi: [SessionFactoryObjectFactory] Factory name: java:/HibernateFactory What I am not to clear about is how to now access a transaction via jndi from java code? This is how my classes currently access a transaction: session ...

5. Jboss 3.2.6 JNDI access from hibernate    forum.hibernate.org

Hi, I have just migrated from Apache/Tomact to Apache/Jboss 3.2.6 and now need to change my class files to take advantage of JNDI. I have declared my jndi: [SessionFactoryObjectFactory] Factory name: java:/HibernateFactory What I am not to clear about is how to now access a transaction via jndi from java code? This is how my classes currently access a transaction: session ...

6. Need help with proper config for JNDI w/ JBoss4 and hibernat    forum.hibernate.org

Here is a copy of my hibernate.cfg.xml: net.sf.hibernate.dialect.Sybase jdbc/SybaseDS net.sf.hibernate.transaction.JTATransactionFactory Again, what here? net.sf.hibernate.transaction.JBossTransactionManagerLookup As you can see, I am confused on the session-factory. I have this file, a hibernate.properties file and a hibernate-service.xml all under META-INF. ...

7. How to setup JNDI in JBOSS with HIBERNATE    forum.hibernate.org

I have set up a JDBC pool with postgres. These are the basic steps. You need to place a postgres-ds.xml in the deploy directory which looks something like this: PostgresDS jdbc:postgresql://localhost/dbname org.postgresql.Driver username password Before deploying this file make sure that the jdbc libraries are in the classpath. You can get the file from ...

8. JNDI name problems. Hibernate with JBOSS    forum.hibernate.org

Hi, I have an web application which is packaged as a war file. The applications uses Hibernate, and PostgreSQL as the database. Everything works fine when i deploy it in tomcat. Now when trying to deploy the same application in JBOSS, it fails during the lookup of the DataSource. Iam getting, javax.naming.NameNotFoundException Following is the code snippets hibernate.cfg.xml: ...

9. how to configue JNDI in jboss    forum.hibernate.org

Code: org.hibernate.cache.NoCacheProvider true com.mysql.jdbc.Driver 1 ...





10. Need help to configure jndi in jboss using hibernate    forum.hibernate.org

hi all, i am getting this error javax.naming.NameNotFoundException: HibernateDS not bound. please any one help me to solve this. I want to configure jndi in jboss using hibernate. for that i typed in java file Context ctx = new InitialContext(); Object obj = ctx.lookup("java:/HibernateDS"); sessionFactory = (SessionFactory) obj; and in mysql-ds file localted in jboss/server/default/deploy folder i have pasted thse lines ...