This post is not really Bluebell oriented (by now), however I'm interested on sharing it.
As you know Oracle artifacts will not be maintained any more by Spring guys:
So we need to create an OSGI compliance artifact ourselves:
Find bellow steps to do it:
- Download the Oracle artifact you are interested in and materialize it as a Maven artifact. Following links may be interesting for you:
- Create a new folder in you preferred location and start roo on it.
- Install gpg and create a public key according to these links (note pgp must be on OS path):
- Then create the OSGI bundle with the following order:
addon create wrapper --topLevelPackage org.bluebell --projectName spring-roo-oracle-wrapper --artifactId ojdbc14 --groupId com.oracle --version classes12 --description "Oracle #jdbcdriver,driverclass:oracle.jdbc.OracleDriver" --licenseUrl "http: --vendorName "Oracle"
- This is not enough. Additional dependences are required. So edit the recently created pom and add the following repositories and dependencies:
<repositories>
<repository>
<id>com.springsource.repository.bundles.release</id>
<name>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</name>
<url>http: </repository>
<repository>
<id>com.springsource.repository.bundles.external </id>
<name>SpringSource Enterprise Bundle Repository - External Bundle Releases</name>
<url>http: </repository>
</repositories>
...
<dependency>
<groupId>javax.resource</groupId>
<artifactId>com.springsource.javax.resource</artifactId>
<version>1.5.0</version></dependency>
<dependency>
<groupId>javax.transaction</groupId>
<artifactId>com.springsource.javax.transaction</artifactId>
<version>1.1.0</version>
</dependency>
- Install the artifact (mvn install)
- Once done, a valid OSGI compliance Oracle driver will be available as Maven artifact into the local repository. In my case additional (and optional) dependences were required, so the way I followed was to remove them directly from generated MANIFEST.MF file.
 | Please note in such a case signing JAR will be useless |
They were:
- oracle.security.pki
- oracle.ons
- oracle.i18n.text.converter
- Install the osgi artifact in ROO: osgi start --url file:/my_jar_location.jar
osgi start --url file:/J:\.m2\repository\javax\resource\com.springsource.javax.resource\1.5.0\com.springsource.javax.resource-1.5.0.jar
osgi start --url file:/J:\.m2\repository\javax\transaction\com.springsource.javax.transaction\1.1.0\com.springsource.javax.transaction-1.1.0.jar
osgi start --url file:/J:\.m2\repository\com\oracle\org.bluebell.com.oracle.ojdbc14_g\10.2.0.1.0.0001\org.bluebell.com.oracle.ojdbc14_g-10.2.0.1.0.0001.jar
This worked for me, well... ...not at all:
Comentarios (3)
feb 09, 2011
Anónimo dice:
thanks for all the notes & explanation. So, did it work finally? I am little...thanks for all the notes & explanation. So, did it work finally? I am little confused by the last line "This worked for me, well... ...not at all:
feb 19, 2011
Anónimo dice:
This wrapping pom works for the 10.2.0.2 jar (for use on Oracle XE) <?xml v...This wrapping pom works for the 10.2.0.2 jar (for use on Oracle XE)
mar 14, 2011
Julio Argüello Fernández dice:
I apologize for the late response... The problem was ROO DBRE with Oracle hasn'...I apologize for the late response...
The problem was ROO DBRE with Oracle hasn't discovered my DB foreign keys, it was reported without a definitive response:
http://forum.springsource.org/showthread.php?p=341873#post341873