Hi Simon and Stephan,

I quickly read through this thread so apologizes if I miss your point... In 
order to ensure that new virtual hosts are dynamically taken into account, you 
need to call Component#updateHosts().

Regarding OSGi usage and hot addition/removal of applications, we have a 
project going on, led by Bryan Hunt that will be integrated to Restlet in 
version 2.2. You can see more details here:
http://bryanhunt.wordpress.com/2011/06/30/osgi-at-rest/

Best regards,
Jerome
--
http://www.restlet.org
http://twitter.com/#!/jlouvel




-----Message d'origine-----
De : Stephan Koops [mailto:[email protected]] 
Envoyé : jeudi 29 septembre 2011 18:57
À : [email protected]
Objet : Re: Re: 2.0.3: re-deploying a JAXRS application without restarting the 
JVM

Hi Simon,

as I implemented the JAX-RS-extension three and a half years ago, the 
JaxRsRestlet was add-only, because all the things in a javax.ws.rs.Application 
are added to the Restlet-JAX-RS-Instance. So, if you remove, you have to see, 
what providers and so on you have to remove, and which you have to leave, 
because they are also added by another JAX-RS-Application. I've long time not 
looked into the code, so I can't tell something to setApplications().
You could implement a clear, but don't forget to readd the default providers 
and so on; there must be a method for it somewhere (in the JaxRsRestlet?).

I've no experience this OSGI, so I can't say something to Restlet and OSGI.

best regards
    Stephan

-----Ursprüngliche Nachricht-----
Von: "Simon Temple" <[email protected]>
Gesendet: 29.09.2011 17:44:02
An: [email protected]
Betreff: RE: Re: 2.0.3: re-deploying a JAXRS application without restarting the 
JVM

>Apologies for the multiple postings...
>
>IMHO, I think setApplications() should not "Add the given applications to the 
>available applications" I think it should *replace* the available applications 
>with those given.
>
>wdyt?
___________________________________________________________
Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die Toolbar 
eingebaut! https://produkte.web.de/mailcheck/

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

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

Reply via email to