[jboss-user] [JNDI/Naming/Network] - Server JVM, Client JVM, JNDI & Workaround

braca do-not-reply at jboss.com
Fri Jan 16 02:06:21 EST 2009


I'm running an .ear-Application on JBoss 4.2.2 containing jBPM. The Swing-Client running on the client machine works fine when connecting to the application server with the .ear-Application which uses a datasource in the java:-namespace.

However, if I start a certain part of the application which uses jBPM/Hibernate I get an error:
org.hibernate.HibernateException: Could not find datasource, Caused by: javax.naming.NameNotFoundException: No object bound for java:InformixDS 

I think it's because I'm using the datasource in hibernate.cfg.xml. But I want to use the datasource, which works in the rest of the application. It works fine as long as I use not the datasource and put in the database-parameters directly in hibernate.cfg.xml.

As I read in the forum and internet, it's probably because of a local (client) and server JVM. 

So what can I do as a workaround/solution (use-java-context is no solution for me).

Thanks for an answer.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4202323#4202323

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4202323

More information about the jboss-user mailing list