Connecting to a database with a webService (cxf) deployed (osgi) in Servicemix

2009-06-07

  1. Install and start ServiceMix 4.0 2) Add necessary bundles

features/install cxf-osgi

osgi/install -s mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-dbcp/1.2.2_3/

osgi/install -s wrap:mvn:org.springframework/spring-jdbc/2.5.6/

osgi/install -s wrap:mvn:mysql/mysql-connector-java/5.1.6

… See details in this gooole document or download test-wsdl-first-osgi.zip

Comments:

Thomas Gill - Aug 1, 2009

Matteo - How do you install an Oracle driver in Servicemix. I have the oracle6.jar. Tried putting in lib dir and also install file:///tmp/ojdbc6.jar Trying to setup Master -Slave using JDBC for ActiveMQ

In smx4 try installing bundle from springsource http://www.springsource.com/repository/app/bundle/version/detail?name=com.springsource.oracle.jdbc&version=10.2.0.2 if you cannot, please ask in servicemix forum, I’m not an expert in java/osgi.. Regards

Thanks Matteo - The Spring version is a little old but works. I have the ActiveMQ tables created in DB and everything works. I tried with one Master alone and when running it is all good. But when the Master goes down the DB lock is not removed. Planning to start 2 Brokers and see how it behaves.


Enter your instance's address


More posts like this

My Networking Survival Kit

2020-03-15 | #Me

In this small tutorial I’ll speak about tunneling, ssh port forwarding, socks, pac files, Sshuttle I’ve been using Linux since 1995 but I have never been interested a lot in networking.

Continue reading 