<bean class="org.apache.mina.filter.executor.ExecutorFilter">
                <constructor-arg>
                    <bean 
class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor">
                        <property name="corePoolSize" value="${CorePoolSize}"/>
                        <property name="maxPoolSize" value="${maxPoolSize}"/>
                        <property name="keepAliveSeconds" 
value="${keepAliveSeconds}"/>
                        <property name="queueCapacity" value="${QueueSize}"/>
                        <property name="beanName" value="WorkerThreadPool"/>
                    </bean>
                </constructor-arg>
            </bean>

Items such as ${CorePoolSize} are loaded from a properties file using a 
PropertyPlaceholderConfigurer.

Rob
----- Original Message ----
From: Kumaran Arul <[EMAIL PROTECTED]>
To: dev@mina.apache.org
Sent: Wednesday, July 18, 2007 1:56:09 AM
Subject: RE: Is Spring Integration of MINA recommended?

Hi 


Any body knows how to configure MINA  server threadpool details via
Spring configuration or point me to some documentation on this please.

thanks

Arul Kumaran
Senior Java/J2EE  developer/designer
Website: http://www.lulu.com/java-success

-----Original Message-----
From: Rob Butler [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 18 July 2007 11:44 AM
To: dev@mina.apache.org
Subject: Re: Is Spring Integration of MINA recommended?


To use Spring for configuring MINA or not is of course a personal
choice.  I very much like using Spring to configure MINA.  It has made
adding filters and other configuration very easy. 

Rob

----- Original Message ----
From: Kumaran Arul <[EMAIL PROTECTED]>
To: dev@mina.apache.org
Sent: Tuesday, July 17, 2007 9:23:46 PM
Subject: Is Spring Integration of MINA recommended?

Hi


Firstly, I am very impressed with the MINA as a whole. I just finished
JMX enabling my server and it is a breeze.

I have a working MINA based server without any Spring Integration except
for DI for business logic/Service Layer/DAO layers.


I looked at the Chat Server example at MINA site which is using
Spring-Integration and my feeling is that it will be harder to
understand for someone who 

Has not delved with MINA to understand what is going on by just looking
at the configuration. Any body has got any other pros and cons for using
Spring-Integration for the

server code? 


Arul Kumaran
Senior Java/J2EE  developer/designer
Woolworths Limited
Website: http://www.lulu.com/java-success



***********************************************************
CAUTION: This email and files included in its transmission 
are solely intended for the use of the addressee(s) and may 
contain information that is confidential and privileged. 
If you receive this email in error, please advise us 
immediately and delete it without copying the contents 
contained within. Woolworths Limited (including its group 
of companies) do not accept liability for the views 
expressed within or the consequences of any computer 
viruses that may be transmitted with this email. The 
contents are also subject to copyright. No part of it 
should be reproduced, adapted or transmitted without the 
written consent of the copyright owner.
***********************************************************





       
________________________________________________________________________
____________
Get the free Yahoo! toolbar and rest assured with the added security of
spyware protection.
http://new.toolbar.yahoo.com/toolbar/features/norton/index.php

***********************************************************
CAUTION: This email and files included in its transmission 
are solely intended for the use of the addressee(s) and may 
contain information that is confidential and privileged. 
If you receive this email in error, please advise us 
immediately and delete it without copying the contents 
contained within. Woolworths Limited (including its group 
of companies) do not accept liability for the views 
expressed within or the consequences of any computer 
viruses that may be transmitted with this email. The 
contents are also subject to copyright. No part of it 
should be reproduced, adapted or transmitted without the 
written consent of the copyright owner.
***********************************************************





       
____________________________________________________________________________________
Be a better Globetrotter. Get better travel answers from someone who knows. 
Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469

Reply via email to