RE: Server connector parameters ignored when configuring from Spring

2009-08-22 Thread Jerome Louvel
Evgeny,

This is available in the recent 2.0 snapshots:
http://www.restlet.org/documentation/snapshot/jse/changes

The next official release containing it will be 2.0 M5.

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:n...@ger.gmane.org] De la part de Evgeny Shepelyuk
Envoyé : lundi 17 août 2009 15:51
À : discuss@restlet.tigris.org
Objet : Re: Server connector parameters ignored when configuring from Spring

Hello Jerome,

Which wil be restlet version containing the fix ?
This will be available in 2.0 final or earlier, what about 1.1 branch ?


 Hi Evgeny,

 I've refactored the JettyServerHelper to lazy-configure the thread pool.  
 It
 should now be configurable via Spring!

 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:n...@ger.gmane.org] De la part de Evgeny Shepelyuk
 Envoyé : mardi 4 août 2009 16:45
 À : discuss@restlet.tigris.org
 Objet : Re: Server connector parameters ignored when configuring from  
 Spring

 Hi
 One small note,
 Only Thread Pool size are not taken into account,
 Connector by itself is configured OK.
 Seems the reason is that thread pool settings are configured inside
 constuctor

 Hello,

 While developing my restlet application i faced following problem.
 Im using restlet 2.0m3 with Jetty server connector and configuring my
 server from Spring.
 This is snippet of XML file


  bean id=springComponent
 class=org.restlet.ext.spring.SpringComponent
 init-method=start
  property name=clientsList
  list
  valuehttp/value
  /list
  /property
  property name=server
  bean class=org.restlet.ext.spring.SpringServer
 id=springServer
  constructor-arg value=http
 type=java.lang.String/
  constructor-arg value=4343 type=int/
  property name=parameters
  map
  entry key=acceptorThreads
 value=20/
  entry key=acceptQueueSize
 value=400/
  entry key=maxThreads
 value=800/
  /map
  /property
  /bean
  /property
  property name=defaultTarget ref=springRouter/
  /bean


 The expected behaviour of passing the parameters to underlying jetty
 instance has not occurred.
 While debugging and researchign source code i found following in class
 JettyServerHelper
 method  public SeriesParameter getHelpedParameters() always returns
 empry parameters because method getHelped() returns null.

 Can anyone give me a hand and explain if this is a bug or i'm  
 configuring
 server connector incorrectly ?








-- 
Regards,
Evgeny Shepelyuk

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

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


Re: Server connector parameters ignored when configuring from Spring

2009-08-18 Thread Evgeny Shepelyuk
Hello Jerome,

Which wil be restlet version containing the fix ?
This will be available in 2.0 final or earlier, what about 1.1 branch ?


 Hi Evgeny,

 I've refactored the JettyServerHelper to lazy-configure the thread pool.  
 It
 should now be configurable via Spring!

 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:n...@ger.gmane.org] De la part de Evgeny Shepelyuk
 Envoyé : mardi 4 août 2009 16:45
 À : discuss@restlet.tigris.org
 Objet : Re: Server connector parameters ignored when configuring from  
 Spring

 Hi
 One small note,
 Only Thread Pool size are not taken into account,
 Connector by itself is configured OK.
 Seems the reason is that thread pool settings are configured inside
 constuctor

 Hello,

 While developing my restlet application i faced following problem.
 Im using restlet 2.0m3 with Jetty server connector and configuring my
 server from Spring.
 This is snippet of XML file


  bean id=springComponent
 class=org.restlet.ext.spring.SpringComponent
 init-method=start
  property name=clientsList
  list
  valuehttp/value
  /list
  /property
  property name=server
  bean class=org.restlet.ext.spring.SpringServer
 id=springServer
  constructor-arg value=http
 type=java.lang.String/
  constructor-arg value=4343 type=int/
  property name=parameters
  map
  entry key=acceptorThreads
 value=20/
  entry key=acceptQueueSize
 value=400/
  entry key=maxThreads
 value=800/
  /map
  /property
  /bean
  /property
  property name=defaultTarget ref=springRouter/
  /bean


 The expected behaviour of passing the parameters to underlying jetty
 instance has not occurred.
 While debugging and researchign source code i found following in class
 JettyServerHelper
 method  public SeriesParameter getHelpedParameters() always returns
 empry parameters because method getHelped() returns null.

 Can anyone give me a hand and explain if this is a bug or i'm  
 configuring
 server connector incorrectly ?








-- 
Regards,
Evgeny Shepelyuk

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


RE: Server connector parameters ignored when configuring from Spring

2009-08-17 Thread Jerome Louvel
Hi Evgeny,

I've refactored the JettyServerHelper to lazy-configure the thread pool. It
should now be configurable via Spring!

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:n...@ger.gmane.org] De la part de Evgeny Shepelyuk
Envoyé : mardi 4 août 2009 16:45
À : discuss@restlet.tigris.org
Objet : Re: Server connector parameters ignored when configuring from Spring

Hi
One small note,
Only Thread Pool size are not taken into account,
Connector by itself is configured OK.
Seems the reason is that thread pool settings are configured inside  
constuctor

 Hello,

 While developing my restlet application i faced following problem.
 Im using restlet 2.0m3 with Jetty server connector and configuring my
 server from Spring.
 This is snippet of XML file


   bean id=springComponent  
 class=org.restlet.ext.spring.SpringComponent
 init-method=start
   property name=clientsList
   list
   valuehttp/value
   /list
   /property
   property name=server
   bean class=org.restlet.ext.spring.SpringServer
id=springServer
   constructor-arg value=http
type=java.lang.String/
   constructor-arg value=4343 type=int/
   property name=parameters
   map
   entry key=acceptorThreads
value=20/
   entry key=acceptQueueSize
value=400/
   entry key=maxThreads
value=800/
   /map
   /property
   /bean
   /property
   property name=defaultTarget ref=springRouter/
   /bean


 The expected behaviour of passing the parameters to underlying jetty
 instance has not occurred.
 While debugging and researchign source code i found following in class
 JettyServerHelper
 method  public SeriesParameter getHelpedParameters() always returns
 empry parameters because method getHelped() returns null.

 Can anyone give me a hand and explain if this is a bug or i'm configuring
 server connector incorrectly ?





-- 
Regards,
Evgeny Shepelyuk

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

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


Re: Server connector parameters ignored when configuring from Spring

2009-08-04 Thread Evgeny Shepelyuk
Hello again

Can anyone asnwer smth about my issue ?

 Hello,

 While developing my restlet application i faced following problem.
 Im using restlet 2.0m3 with Jetty server connector and configuring my
 server from Spring.
 This is snippet of XML file


   bean id=springComponent  
 class=org.restlet.ext.spring.SpringComponent
 init-method=start
   property name=clientsList
   list
   valuehttp/value
   /list
   /property
   property name=server
   bean class=org.restlet.ext.spring.SpringServer 
 id=springServer
   constructor-arg value=http 
 type=java.lang.String/
   constructor-arg value=4343 type=int/
   property name=parameters
   map
   entry key=acceptorThreads 
 value=20/
   entry key=acceptQueueSize 
 value=400/
   entry key=maxThreads 
 value=800/
   /map
   /property
   /bean
   /property
   property name=defaultTarget ref=springRouter/
   /bean


 The expected behaviour of passing the parameters to underlying jetty
 instance has not occurred.
 While debugging and researchign source code i found following in class
 JettyServerHelper
 method  public SeriesParameter getHelpedParameters() always returns
 empry parameters because method getHelped() returns null.

 Can anyone give me a hand and explain if this is a bug or i'm configuring
 server connector incorrectly ?





-- 
Regards,
Evgeny Shepelyuk

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


Server connector parameters ignored when configuring from Spring

2009-07-31 Thread Evgeny Shepelyuk
Hello,

While developing my restlet application i faced following problem.
Im using restlet 2.0m3 with Jetty server connector and configuring my  
server from Spring.
This is snippet of XML file


bean id=springComponent 
class=org.restlet.ext.spring.SpringComponent  
init-method=start
property name=clientsList
list
valuehttp/value
/list
/property
property name=server
bean class=org.restlet.ext.spring.SpringServer 
id=springServer
constructor-arg value=http 
type=java.lang.String/
constructor-arg value=4343 type=int/
property name=parameters
map
entry key=acceptorThreads 
value=20/
entry key=acceptQueueSize 
value=400/
entry key=maxThreads 
value=800/
/map
/property
/bean
/property
property name=defaultTarget ref=springRouter/
/bean


The expected behaviour of passing the parameters to underlying jetty  
instance has not occurred.
While debugging and researchign source code i found following in class  
JettyServerHelper
method  public SeriesParameter getHelpedParameters() always returns  
empry parameters because method getHelped() returns null.

Can anyone give me a hand and explain if this is a bug or i'm configuring  
server connector incorrectly ?


-- 
Regards,
Evgeny Shepelyuk

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