An web application uses a
javax.servlet.ServletContextListenerto catch the
contextDestroyedevent and needs to access to a database. Attempts to obtain the
DataSourcefrom JNDI during this process receive a
javax.naming.NameNotFoundExceptionindicating that the JNDI repository does not contain the
Is it possible to configure the datasource such that when the JBoss is shut down, then, first the application is disabled/undeployed and then the DataSource will be shutdown?
How do I ensure a resource in JNDI is available during startup or shutdown of an application?
I have a HA singleton service(cluster wide) that initializes an ejb timer. To initialize the timer, I am doing a jndi look up of the ejb from HA service. This look up is randomly failing with 'Caused by: javax.naming.NameNotFoundException.
- Red Hat JBoss Enterprise Application Platform (EAP)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.