[jboss-jira] [JBoss JIRA] Created: (EJBTHREE-2247) Datasource not available during clean shutdown

Tom Ross (JIRA) jira-events at lists.jboss.org
Wed May 4 04:24:18 EDT 2011


Datasource not available during clean shutdown
----------------------------------------------

                 Key: EJBTHREE-2247
                 URL: https://issues.jboss.org/browse/EJBTHREE-2247
             Project: EJB 3.0
          Issue Type: Bug
          Components: core
    Affects Versions: bom-eap5-1.0.1
         Environment: JBoss EAP 5.1 (standalone)
            Reporter: Tom Ross


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.
  

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list