It can be made sort of pluggable.  There are jars that have OSGi
activators and manifests that handle all the OSGi-specific
functionality and are otherwise ignored when the jar's used outside of
OSGi.

A couple things you need to pay attention to:

- Thread control.  Just because you stop a bundle doesn't mean threads
that bundle started will be stopped as well.  So your thread
management needs to be sensitive to changes in the bundle state.

- Classloader.  Each bundle has its own classloader, and can have a
problem seeing class definitions outside itself unless specifically
made visible through the manifests.  Full classpaths aren't
sufficient; they need to be exposed.  And for the sake of passing
objects between bundles you may be relying on interfaces more than
usual.

Don

On Wed, Jun 15, 2011 at 11:24 AM, Achim Nierbeck
<[email protected]> wrote:
> Hi,
>
> I suggest take a look at Apache Karaf it contains pretty much what you need.
> It uses Felix/Equinox as base OSGi Framework, you are free of choice
> if you want to use spring/spring-dm or Blueprint. You are able to deploy
> std. or OSGi wars out of the box because of Pax Web.
> You might even consider using Pax Wicket for your Wicket (OSGi-fied)
> application.
> So rather building all from scratch use something that is already
> there and working :-)
>
> regards, Achim
>
>
> 2011/6/15 fachhoch <[email protected]>:
>>
>> I like the osgi approach of modifying modules without   restarting the
>> server, I want to use this , and wondering  If I can integrate apache felix
>> in my exsisting app, I have a web application built with wicket , spring ,
>> hibernate , using pom , I have subprojects one for war and for jar  , please
>> suggest me are there any tutorials on integrating osgi into exisisting app ?
>> is this kind of pluggable ?
>>
>> --
>> View this message in context: 
>> http://old.nabble.com/modifying-my-app-to-use-osgi-tp31852339p31852339.html
>> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
>
> --
> --
> *Achim Nierbeck*
>
>
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer & Project Lead
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

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

Reply via email to