Hi Pedro,
why do you embed the postgres driver?
Like you write it already is a nice bundle.
You can just install it in karaf using:
install -s mvn:org.ops4j.pax.jdbc/pax-jdbc-spec/0.6.0
install -s mvn:org.postgresql/postgresql/9.4-1200-jdbc41
There is even a pax-jdbc feature for it.
feature:repo-add pax-jdbc 0.6.0
feature:install pax-jdbc-postgresql
For plain felix you will have to download the bundles from maven central
and start them.
I also provide complete tutorials for using jdbc and jpa in karaf.
http://liquid-reality.de/display/liquid/2012/01/13/Apache+Karaf+Tutorial+Part+6+-+Database+Access
http://liquid-reality.de/display/liquid/2015/03/05/Apache+Karaf+Tutorial+Part+9+-+Annotation+based+blueprint+and+JPA
The approach described there also applies to plain felix. It is just a
little more work to find all the needed bundles.
Christian
On 25.06.2015 10:49, Pedro Domingues wrote:
I have never used karaf, but it seems disappointing.
I am currently fixing my blog, hence some content like pictures can be missing.
However take a look at the ways I use to embed dependencies and see if any
helps. I use maven: http://web.ist.utl.pt/ist162500/?cat=2
On June 24, 2015 10:47:07 PM WEST, Joe <joe.ad...@cmegroup.com> wrote:
Hi,
I'm trying to wrap a couple of jars as a bundle. The main bundle I
want is
called logging, but it has dependencies on another bundle called
logging-common. I am getting them both from maven. However, Karaf is
mad
at me because they both contain some of the same packages. They both
have
packages called com.blah.logging and com.blah.logging.support.
Would it be possible to wrap them both in a bundle using the wrap
command in
bundle, in a feature.xml file?
Do I need a more complex scheme? Would I need to make a bundle that
imports
the dependences through maven and then exposes the logging package?
Thanks!
--
View this message in context:
http://apache-felix.18485.x6.nabble.com/Complicated-wrapping-tp5013411.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
http://www.talend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org