Vikash,

A Restlet Router can dynamically attach and detach routes, so there is
nothing that technically prevents you from leveraging life cycle events of
OSGi bundles to attach/detach Restlet resources to a parent Restlet
applications. This is all OSGi plumbing (not necessarily easy!). 

Again, we'll try to facilitate such use cases in Restlet 2.1. If you want to
contribute ideas/code/etc. that would be welcome.

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Technical Lead ~ http://www.restlet.org
Noelios Technologies ~ http://www.noelios.com




-----Message d'origine-----
De : Vikash Agrawal [mailto:[email protected]] 
Envoyé : dimanche 7 février 2010 12:00
À : [email protected]; David Fogel
Objet : RE: Restlet and OSGi Issues

Hi,

The aboce desription was very useful to me, thanks to you!!!

I am having a requirement and the requirement is we are going to deploy
Restlet along with some implementation class as an OSGi bundle and this
implementation class will contain implementation of an Application class,
which will attach all the resources listed in one of the configuration file.
If any resource is created at runtime then it should also be added to Router
and the same should be updated to configuratiopn file.

So as part of the descriptions given by you, if we define new resources that
can be added to the locations which would be recognized and teh same would
be present in the classpath. But the thing is, how we will make sure that
all teh newly created resources would be attached to teh router.

Waiting for your quick reply.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=24455
90

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2452476

Reply via email to