Hi,

I mean that you already have the datasource at hand so there is no need to look it up in JNDI. But it seems there is no way of connecting camel with the underlying persitence unit.

BTW: Your problem has nothing to do with pax-jdbc or pax-exam it is more related to aries-jpa that does not account the dynamic nature of OSGi when doing the JNDI lookup it obviously does not wait for a service to become available but fails instantly.

What you can try is to adjust the start order of your bundles so the pax-jdbc, config-admin and derby bundles start as soon as possible before aries-jpa kicks in. Also make yure your osgi-jndi bundle starts as soon as possible!



Am 31.08.2017 um 18:01 schrieb karsten.bl...@hermes-ottoint.com:
I have added to the blueprint description of my bundle under test:

     <reference id="wait-for-service-scv" interface="javax.sql.DataSource"
         filter="(osgi.jndi.service.name=jdbc/scv)" />

with no result.
Getting still the unfriendly Exception and after that the
INFO  | FelixStartLevel
| nfig.impl.DataSourceRegistration | Creating DataSource jdbc/scv

message.

what do you mean by :
-- "
Beside that you should check if camel can even use those fetched service as a datasource instead of JNDI because that might create issues if the service changes while blueprint keeps track of those changes."?

--
--
------------------
OPS4J - http://www.ops4j.org - ops4j@googlegroups.com

---
You received this message because you are subscribed to the Google Groups "OPS4J" group. To unsubscribe from this group and stop receiving emails from it, send an email to ops4j+unsubscr...@googlegroups.com <mailto:ops4j+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.

--
--
------------------
OPS4J - http://www.ops4j.org - ops4j@googlegroups.com

--- You received this message because you are subscribed to the Google Groups "OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ops4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to