Hi Chris,

Comments inlined.

2009/10/31 Giambalvo, Christian <[email protected]>

> Hi,
>
> i'm also interested in making a modular, during runtime extensible wicket
> appliaction.
> Meaning a Wicketapplication which can be extended by plugins during
> runtime.
> Can OSGi accomplish this?
>

Yes, OSGi can accomplish that. You can add/remove/stop/start bundles
(plugins) at runtime.

Could you please explain the wstarter a little bit more in detail.
> I only developed normal wicket web applications and the wstarter demo
> doesn't look clear to me.
>
>
Right now I do not have much time to go into lengthy explanations:-(... but.

1- The entry point of the application is the class
http://code.google.com/p/antilia/source/browse/com.antilia.wstarter.demo/src/com/antilia/wstarter/demo/Activator.java
2- This class just registers a tracker which will listen for the the
start/stop of an HTTP service. This service HTTP allows to register
servlets.
So when the service starts I just register a WicketServlet under the context
"demo-app".
3-An important part is that the bundle com.antilia.wstarter is a "super
bundle" that can read classes form other bundles see
http://code.google.com/p/antilia/source/browse/com.antilia.wstarter/META-INF/MANIFEST.MF
and the line
Eclipse-BuddyPolicy: registered
4-Bundle 
com.antilia.wstarter.demo<http://code.google.com/p/antilia/source/browse/com.antilia.wstarter.demo/META-INF/MANIFEST.MF>
 declares com.antilia.wstarter as a buddy. See Eclipse-RegisterBuddy:
com.antilia.wstarter at
http://code.google.com/p/antilia/source/browse/com.antilia.wstarter.demo/META-INF/MANIFEST.MF
This allows com.antilia.wstarter reading classes from
com.antilia.wstarter.demo<http://code.google.com/p/antilia/source/browse/com.antilia.wstarter.demo/META-INF/MANIFEST.MF>

There are other places where you can read about OSGi, Services, Service
Trackers, etc. You will have to understand some few concepts before you can
get yourself going.
<http://code.google.com/p/antilia/source/browse/com.antilia.wstarter.demo/META-INF/MANIFEST.MF>If
I find sometime I might write a wiki page explaining things more in
detail... if that would be of some interest?

Hope this help.

Best,

Ernesto


Regards,
>
> Chris
>
> -----Ursprüngliche Nachricht-----
> Von: Ernesto Reinaldo Barreiro [mailto:[email protected]]
> Gesendet: Freitag, 30. Oktober 2009 06:22
> An: [email protected]
> Betreff: Re: OSGi Wicket
>
> If you don't mind tying yourself to equinox these two projects
>
> http://code.google.com/p/antilia/source/browse/#svn/com.antilia.wstarter
>
> http://code.google.com/p/antilia/source/browse/#svn/com.antilia.wstarter.demo
>
> might be of some help. The launcher inlcuded with the demo
>
>
> http://code.google.com/p/antilia/source/browse/com.antilia.wstarter.demo/wicket-app.launch
>
> Is for eclipse 3.4. If you are using 3.5 just tell me and I'll add one.
>
> Regards,
>
> Ernesto
>
>
> <http://code.google.com/p/antilia/source/browse/#svn/com.antilia.wstarter>
> 2009/10/30 Tomáš Mihok <[email protected]>
>
> > Hello,
> >
> > I'm currently designing a new application. One of the requests is to make
> > it modular. I found out that one of the possibilities to enable loading
> of
> > modules while application is running is OSGi. Is there a
> tool/plugin/guide
> > to accomplish this or are there any other possibilities of accomplishing
> > same goal?
> >
> > Tom
> >
> >
> > ---------------------------------------------------------------------
> > 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