How to connect external database in cq5.. | Community
Skip to main content
Level 3
October 16, 2015
Solved

How to connect external database in cq5..

  • October 16, 2015
  • 1 reply
  • 800 views

Hi,

 

I am trying to connect to the mysql database from my cq5.6.1.

I have done all configurations in the system/console/config related to the jdbcconnectionpool config..

And my dsn name is "sqdb". Here i am not able to get the datasource sqdb into my servlet using ,

dataSource = (DataSource) dataSourceService.getDataSource("sqdb");

I have followed this article http://helpx.adobe.com/experience-manager/using/datasourcepool.html

Can anybody help me on this.

 

Thanks,

Sony C

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

What is happening when you invoke the OSGi bundle that injects a DataSourcePool?

Are you getting errors in the log file? If so - please post the error message. 

Also -- make sure that you deploy your Database driver file into an OSGi bundle and deploy that to CQ.

Try restarting CQ after you set the Database configurations and deployed the OSGi bundle. 

1 reply

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

What is happening when you invoke the OSGi bundle that injects a DataSourcePool?

Are you getting errors in the log file? If so - please post the error message. 

Also -- make sure that you deploy your Database driver file into an OSGi bundle and deploy that to CQ.

Try restarting CQ after you set the Database configurations and deployed the OSGi bundle.