Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-6481

Datasource not available during clean shutdown

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • TBD EAP 5
    • EAP_EWP 5.1.0
    • EJB
    • None
    • JBoss EAP 5.1 (standalone)

    • Workaround Exists
    • Hide

      Use EJB 3.x

      Show
      Use EJB 3.x
    • Hide
      CAUSE

      CONSEQUENCE

      FIX

      RESULT
      Show
      CAUSE CONSEQUENCE FIX RESULT
    • Not Required
    • NEW

      This is a scenario where there is an EJB 2.1 deployed in standalone JBoss environment. It depends on data source for its operations. If a shut-down command is issued the container will unload the data source even though the EJB may still need it.
      If the EJB tries to lookup the data source in JNDI after shut-down command has been issued the following exception is thrown:

      Caused by: javax.naming.NameNotFoundException: JBossDBDriverTester-XA2 not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
      at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:443)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      at com.${company name}.util.db.DBHelper.getDataSource(DBHelper.java:115)

      Any explicit dependencies defined between EJB and the data source are ignored.

            olubyans@redhat.com Alexey Loubyansky
            rhn-support-toross Tom Ross
            Russell Dickenson Russell Dickenson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: