On 01/06/10 21:51, jupiterroom wrote:
> Hi.
>
> I have an application and have implemented createInboundRoot to root the the
> resources I want to use.  Now I have something I consider to be a new
> application and what to keep the routing seperate with a different
> implementation of createInboundRoot.  I am using this bit of code:
>
> component.getDefaultHost().attach(appFoo);
> component.getDefaultHost().attach(appBar);
>
> However only appFoo routing seems to work.  Am I doing something wrong?  Can
> I have multiple applications?

If you use 'attach' without a path, it uses an empty URI pattern (twice, 
so effectively one replaces the other). You should try attach with a 
different URI pattern for the other application:
http://www.restlet.org/documentation/2.0/jse/api/org/restlet/routing/VirtualHost.html#attach(java.lang.String,%20org.restlet.Restlet)

Best wishes,

Bruno.

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

Reply via email to