Hi,
If I understand well, you want one request to be handled by a set of
resources, each of them declared in distinct application.
In this case, I just wonder which resource will send the response back
to the client.
Best regards,
THierry Boileau
> Thanks for your quick answer.
>
> As a workaround, can i share a same router instance among multiple
> applications ?
>
> The basic idea is to have multiple standalone applications that can interact
> with the complete uri.
>
>
>> 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=2444399
>
>
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2444423