oracle11g - Need Pointers | Using JDBCTemplate | CQ 5.5 -
i need pointers/suggestions on following scenario.
scenario:
we trying use jdbctemplate
in cq 5.5
querying database (oracle 11g
). first step have integrated cq spring framework
. jdbctemplate work requires jdbc driver
needs loaded separately cq not available spring jars. jar required available here http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-112010-090769.html , jar in case “ojdbc6.jar
” contains oracledriver
class (javadoc: *http://docs.oracle.com/cd/e11882_01/appdev.112/e13995/oracle/jdbc/oracledriver.html*) required register driver create connection database.
problems/suggestions required on following points:
- as oracle 11g commercial product there no repository available online (for pom dependencies), need create separate local repository it. (need pointers; there other way it?)
- jar mentioned above not osgi. so how approach in case? (i have created osgi bundle following directions mentioned here http://cq-ops.tumblr.com/post/21893960212/how-to-turn-a-jdbc-driver-jar-into-an-osgi-bundle-jar)
- in process of converting jar osgi bundle have remove versions mentioned imported packages in manifest.mf file. (as understand cq by-default picks latest version available class, there may problem when new version of class available not compatible current version. need pointers; should looked priority? has faced issue due in project)
current status:
by converting ojdbc5.jar osgi bundle; able use jdbctemplate. but looking pointers check there other approach has followed in other project achieve scenario mentioned above?
the oracle driver not published public maven repo. indeed have put jar own maven repo
in apache karaf there nice feature write wrap: in front of bundle url , automatically creates bundle on fly using bnd tool. if cq not have such feature have create bundle on own. in case maven bundle plugin can you. can depend on oracle jar using maven dependency. can define exports packages of oracle jar. bnd should automatically inline classes in bundle jar. option maven shade plugin. can take @ source of servicemix bundles. there find poms bundle lot of plain jars.
not sure mean. far know oracle driver not have external dependencies.
i have written db tutorial apache karaf explains how deal oracle driver , how create data sources without depending on concrete driver.
the solutions in tutorial can not used 1:1 in cq surely give pointers.
Comments
Post a Comment