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.
Solved! Go to Solution.
Views
Replies
Total Likes
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)
Or you may try to refresh bundle once.
Thanks
Views
Replies
Total Likes
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)
Or you may try to refresh bundle once.
Thanks
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
Your JDBC connection pool config is not getting picked up due to incorrect naming convention. Notice the tilde sign in between the PID.
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
Views
Likes
Replies