Expand my Community achievements bar.

SOLVED

Imported OSGi JDBC configuration not working

Avatar

Level 2

I tried to import a JDBC config from another AEM instance into /apps/system/config/ via Package Manager, but it seems it is not recognized even afer server restart. I can see it in the configuration page, but not directly under the Day Commons JDBC Connection Pool, like other JDBC configurations that were created manually.

Can anyone give me a hint, what is needed? When I open the jcr_content file, the attributes look the same as in the valid configurations already present.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Martin-Nekula ,

Adding via package might not work, so try to add/create under Day Commons JDBC Connections Pool manually or build and deploy via code(by allowing in vault filter)

Reference https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-6-5-adding-custom-fact...

Or you may try to refresh bundle once.

Thanks 

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hi @Martin-Nekula ,

Adding via package might not work, so try to add/create under Day Commons JDBC Connections Pool manually or build and deploy via code(by allowing in vault filter)

Reference https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-6-5-adding-custom-fact...

Or you may try to refresh bundle once.

Thanks 

Avatar

Level 2

Thank You, manually works of course, but we will try to change the deployment to code and keep it in version control if that is the recommended way.

Avatar

Level 2

Hi @Martin-Nekula 

Your JDBC connection pool config is not getting picked up due to incorrect naming convention. Notice the tilde sign in between the PID.

 

image (8).png

This means OSGI is not recognizing this as a JDBC connection pool config and that is why it is not appearing below "Day Commons JDBC Connection Pool" along with other JDBC configs.

 

To overcome this, you can try renaming your config in CRX (/apps/system/config). Just put a tilde sign (~) before the unique identifier begins.

 

e.g.
com.day.commons.datasource.jdbcpool.JdbcPoolService~0b6e7108-9542-44ea-bc13-7969a49bb962.config

 

Of course, this is just a workaround, correct solution would be to deploy this config via code or create manually.

 

Regards,

Amber