0 Replies Latest reply on Jun 25, 2002 9:21 AM by Maarten Roosendaal

    InitialContext JBoss incomplete?

    Maarten Roosendaal Newbie


      I still have problems with a mysql-DS. I know JBoss contacts the Database because if i change the password or url in the login-config.xml i get exceptions. When i print the content of the InitialContext i get:
      Got context
      {java.naming.provider.url=localhost:1099, java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      -- invokers: org.jnp.interfaces.NamingContext
      -- UserTransaction: org.jboss.tm.usertx.client.ClientUserTransaction
      -- UserTransactionSessionFactory: org.jboss.tm.usertx.server.UserTransactionSessionFactoryImpl
      -- ejb: org.jnp.interfaces.NamingContext
      -- product: org.jnp.interfaces.NamingContext
      -- jmx:tyr:rmi: org.jboss.jmx.adaptor.rmi.RMIAdaptorImpl
      Got reference to Product: product/ProductHome

      So it van find the deployed productEJB. You can also see the following line in the console (i use Eclipse):
      [MySqlDS] Bound connection factory for resource adapter 'JBoss LocalTransaction JDBC Wrapper' to JNDI name 'java:/MySqlDS'

      But ctx.lookup("java:/MySqlDS"), or any other lookup-String always retrieve a: x not Bound message.

      I've seen more threads with this problem but none could provide me with a solution.

      Hope someone can help because it's 'killing' me.