The following system.properties configuration will allow your Karaf based SMX4 instance to use an Oracle JDBC lock:
karaf.lock=true
karaf.lock.class=org.apache.felix.karaf.main. OracleJDBCLock
karaf.lock.jdbc.url=jdbc: oracle:thin:@hostname:1521:XE
karaf.lock.jdbc.driver=oracle. jdbc.OracleDriver
karaf.lock.jdbc.user=user
karaf.lock.jdbc.password= password
karaf.lock.jdbc.table=KARAF_ LOCK
karaf.lock.jdbc.clustername= karaf
karaf.lock.jdbc.timeout=30
karaf.lock.class=org.apache.
karaf.lock.jdbc.url=jdbc:
karaf.lock.jdbc.driver=oracle.
karaf.lock.jdbc.user=user
karaf.lock.jdbc.password=
karaf.lock.jdbc.table=KARAF_
karaf.lock.jdbc.clustername=
karaf.lock.jdbc.timeout=30
Please note that the Oracle JDBC driver will have to be added to your classpath, this can be easily done by coping the Oracle JDBC jar into the SMX/lib folder. Also note that the karaf.lock.jdbc.url requires an active SID, this means you must manually create a database instance before using this particular lock.
No comments:
Post a Comment