Hello john,

I'm afraid this is not possible. Instances of VirtualHost and Router 
classes (such as the component's default host) delegate requests to 
handlers according to the current request's URI. Thus, your requirement 
can't be addressed this way. Is it possible for you to have only 
application?

Best regards,
Thierry Boileau

> Hello,
>
> I am using Restlet 2.0
> I am trying to associate two application to the default host with the same 
> URI pattern :
>
> getDefaultHost().attach("",new FirstApplication()));
> getDefaultHost().attach("",new SecondApplication()));
>
> Each application return a Router in the overriden createInboundRoot method.
>
> When i launch the server (using component.start()).
> Only the first application is working. URIs from the second applications are 
> not matched ...
>
> How to have multiple application sharing the same basePath ?
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2444228
>
>

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

Reply via email to