1 Reply Latest reply on Feb 25, 2005 1:11 PM by adrian.brock

    database connection fails

    sysuser1

      Hi,

      I use JBoss 4.0.0 with an Informix Database.
      I think, the configuration of the database is ok, because having a look at the JMX-Console (or at the server startup) I can see the following:

      jboss.jdbc
      datasource=DefaultDS,service=metadata
      datasource=informix_jdbc_1,service=metadata

      But when I try to connect the database I receive the error:
      java.rmi.RemoteException: javax.naming.NameNotFoundException: informix_jdbc_1 not bound

      The jndi-name is "informix_jdbc_1" and my code in order to get a connection is:
      DataSource dataSource = (DataSource) initialContext.lookup("informix_jdbc_1");

      Does anyone have an idea what's the problem?

      Thanks in advance