JNDI connection in AEM server using spring
we have a requirement to access a database through a webserver JNDI connection using spring framework
we have a requirement to access a database through a webserver JNDI connection using spring framework
A solution to use JNDI in AEM. There could be other solutions as well --
Apache Sling :: DataSource Provider
While running in Application Server the DataSource instance might be managed by app server and registered with JNDI. To enable lookup of DataSource instance from JNDI you can configure JNDIDataSourceFactory
org.apache.sling.datasource.JNDIDataSourceFactoryIf Felix WebConsole is used then you can configure it via Configuration UI at http://localhost:8080/system/console/configMgr/org.apache.sling.datasource.JNDIDataSourceFactory
Once configured JNDIDataSourceFactory would lookup the DataSource instance and register it with OSGi ServiceRegistry
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.