Hi Evgeny,

You indeed need a Component to configure access logging, unless you manually
use the LogFilter in the org.restlet.engine.log package.

Instead of using the "defaultTarget" shortcut property, you need to use the
"hosts" property and to manually configure a virtual host (via SpringHost)
to attach two applications to it. 

You could also try to obtain the "defaultHost" property and to attach two
applications to it, but I'm not sure how easy it is with Spring.

Hope it helps!

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


-----Message d'origine-----
De : news [mailto:[email protected]] De la part de Evgeny Shepelyuk
Envoyé : vendredi 28 août 2009 12:44
À : [email protected]
Objet : Need help on Component configuraion

Hello,
I'm configuring Restlet from spring and facing a problem with achieving my  
goals.
First of all i need access logs. Only way i can see is creating and  
configuring component.
My goal is to create 2 separate servers on different ports. Each server  
has own application.

when its configured from spring without component - its working OK but  
without access logs.
My problem is that i can not join 2 servers into component.
Component only has default target. When i set default target to one of my  
applications the 2nd becames unavailable.
When i don't set defautlTarget -  none of applications are available.
Another problem with defautlTarget - that my application became availabel  
on both of configured servers.

Can anyone give me a halp on this issue ?

-- 
Regards,
Evgeny Shepelyuk

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

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

Reply via email to