0 Replies Latest reply on Aug 13, 2007 5:09 PM by axel.becker

    JNDI and DefaultDS

    axel.becker

      Hi,

      i have downloaded the latest stable version of jboss application server (4.2.1.GA Stable 90 MB 2007-07-16)

      After that i have build a small webapplication which contains a ServletContextListener.

      Now i want to lookup the DefaultDS in the "contextInitialized"-Method of my ServletContextListener, but i allways get a "NameNotBoundException". I tried a lot of JNDI-Names ("java:DefaultDS" "java:/DefaultDS" "java:comp/env/jdbc/DefaultDS")

      I dont make any changes on the jboss configuration! During the startup i get this information:

      23:06:00,758 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'


      I have no ideas, how to solve this problem :-(

      Bye, Axel