Load Oracle Database Driver Jar in AEM | Community
Skip to main content
Level 2
Oct 30, 2018 3:04 PM UTC
Solved

Load Oracle Database Driver Jar in AEM

Hi Team,

We followed this 2 articles for using relational Database in AEM:

Adobe Experience Manager Help | Injecting a DataSourcePool Service into an Adobe Experience Manager OSGi bundle

Adobe Experience Manager Help | Querying and Persisting Adobe Experience Manager data into MySQL

As per the article guideline, we are able to use Oracle 12c database in AEM. But to use Oracle 12c Database we have to upload Oracle 12c Driver as a jar separately using OSGi bundle. Our production team does not allow to load this Oracle 12c drive as jar separately. Is there any way we can add it along with the project.
When added directly in pom.xml file are getting the transitive dependency error:

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Oct 31, 2018 8:09 AM UTC

You can do it by package manager, you can put oracle osgi bundle inside /apps/app/install folder in lower environment  and deploy via package manager.

Arun Patidar

3 replies

Level 4
May 16, 2019 4:22 PM UTC

Make sure that the jar file which you are planning to include under /apps/install folder in your codebase is the OSGi compatible Jar file.

Translate
smacdonald2008
Level 10
Oct 31, 2018 2:23 PM UTC

As a side note - those are older AEM community articles - we will update them for AEM 6.4. But the point that you need to wrap a database driver file into an OSGi bundle and deploy still exists.

Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Oct 31, 2018 8:09 AM UTC

You can do it by package manager, you can put oracle osgi bundle inside /apps/app/install folder in lower environment  and deploy via package manager.

Translate
Arun Patidar