Peter

This doesn't sound like the correct approach to be taking. If you load
bundles into felix, then they will be within the scope of their own class
loaded, per the OSGi model, and therefore not 'the same class'.

Thanks

Bruce

On 13/10/2013 21:54, "Peter Cheung" <[email protected]> wrote:

>Dear All   I have a standalone java app that embedded felix. I can start
>it, load bundle and call the method from bundle (using reflection). 1) My
>first question is, using reflection is not efficiency.  I imported the
>class from bundle to my host app, it popup "ClassCastException", because
>i cannot cast a class that loaded from felix to a class that loaded from
>default class loader, even two classes are the same. Any workaround?2) I
>am using maven, how to i add bundle dependency to pom.xml?  pom.xml seems
>not searching the felix bundle repository.
>
>Thanksfrom Peter

*** DISCLAIMER ***

This message, including attachments, is intended solely for the addressee 
indicated in this message and is strictly confidential or otherwise privileged. 
If you are not the intended recipient (or responsible for delivery of the 
message to such person) : - (1) please immediately (i) notify the sender by 
reply email and (ii) delete this message and attachments, - (2) any use, copy 
or dissemination of this transmission is strictly prohibited. If you or your 
employer does not consent to Internet email messages of this kind, please 
advise Myriad Group AG by reply e-mail immediately. Opinions, conclusions and 
other information expressed in this message are not given or endorsed by Myriad 
Group AG unless otherwise indicated by an authorized representative independent 
of this message.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to