In that case it's probably best to use the dynamic-import for the jms
librarie as it can't know of your own classes.
Make sure are actually exporting it also :)

Otherwise it's usually better to have a strict Import-Package but in this
case as it's a infrastructural component it's OK.

regards, Achim


2013/10/18 homeration <[email protected]>

> Hi all,
>
> I expose my problem:
> I use a JMS client in my application running Karaf. JMS libraries are
> deployed in Karaf as OSGI modules. I use the Spring framework to facilitate
> the integration.
>
> Upon receipt of a JMS message, external JMS library tries to deserialize
> the
> wrapped java object (the JMS message wrap a java object - ObjectMessage -).
> But as it did not import the class, it generates a ClassNotFoundException.
>
> I've had the same problem when I used other libraries like Hector (for
> Apache Cassandra).
>
> What do you recommend to do in this use case? Edit the module to add the
> "Dynamic-Import" tag?
>
> Regards, Christophe.
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Dynamic-import-into-non-user-library-tp4029990.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
Commiter & Project Lead
blog <http://notizblog.nierbeck.de/>

Reply via email to