<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Integrating Apache MINA with Spring</title>
	<atom:link href="http://www.ashishpaliwal.com/blog/2008/11/integrating-apache-mina-with-spring/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ashishpaliwal.com/blog/2008/11/integrating-apache-mina-with-spring/</link>
	<description>From Programmer, For Programmers</description>
	<lastBuildDate>Tue, 17 Aug 2010 12:04:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Les Hazlewood</title>
		<link>http://www.ashishpaliwal.com/blog/2008/11/integrating-apache-mina-with-spring/comment-page-1/#comment-8129</link>
		<dc:creator>Les Hazlewood</dc:creator>
		<pubDate>Wed, 21 Oct 2009 22:48:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.ashishpaliwal.com/blog/?p=198#comment-8129</guid>
		<description>Oops - my XML example didn&#039;t show correctly.  Let&#039;s try again with brackets instead: 

[bean class=&quot;org.apache.mina.transport.socket.nio.NioSocketAcceptor&quot;
          init-method=&quot;bind&quot; destroy-method=&quot;unbind&quot;/]
    ...
    [property name=&quot;sessionConfig.tcpNoDelay&quot; value=&quot;true&quot;/]
    ...
[/bean]

Ashish, please feel free to edit/consolidate my comments so this shows proper XML if you have the ability to do so.

Regards,

Les</description>
		<content:encoded><![CDATA[<p>Oops &#8211; my XML example didn&#8217;t show correctly.  Let&#8217;s try again with brackets instead: </p>
<p>[bean class="org.apache.mina.transport.socket.nio.NioSocketAcceptor"<br />
          init-method="bind" destroy-method="unbind"/]<br />
    &#8230;<br />
    [property name="sessionConfig.tcpNoDelay" value="true"/]<br />
    &#8230;<br />
[/bean]</p>
<p>Ashish, please feel free to edit/consolidate my comments so this shows proper XML if you have the ability to do so.</p>
<p>Regards,</p>
<p>Les</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Les Hazlewood</title>
		<link>http://www.ashishpaliwal.com/blog/2008/11/integrating-apache-mina-with-spring/comment-page-1/#comment-8128</link>
		<dc:creator>Les Hazlewood</dc:creator>
		<pubDate>Wed, 21 Oct 2009 22:45:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.ashishpaliwal.com/blog/?p=198#comment-8128</guid>
		<description>@Declan and Ashish,

Spring supports nested property configuration by using OGNL path expressions.  For example, if you wanted to change the &#039;tcpNoDelay&#039; property of the NioSocketAcceptor&#039;s nested SessionConfig instance:


    ...
    
    ...


Naturally the default,no-arg constructor of whatever bean you&#039;re instantiating must ensure that any beans referenced via a OGNL expression are non-null (the NioSocketAcceptor does indeed ensure this for its internal SessionConfig instance). No coding necessary :)

Using the nested property technique above, I think you can easily satisfy almost all of your Mina Spring-configuration needs.

Here is the Spring doco reference:

http://static.springsource.org/spring/docs/2.5.x/reference/beans.html#beans-compound-property-names

Regards,

Les</description>
		<content:encoded><![CDATA[<p>@Declan and Ashish,</p>
<p>Spring supports nested property configuration by using OGNL path expressions.  For example, if you wanted to change the &#8216;tcpNoDelay&#8217; property of the NioSocketAcceptor&#8217;s nested SessionConfig instance:</p>
<p>    &#8230;</p>
<p>    &#8230;</p>
<p>Naturally the default,no-arg constructor of whatever bean you&#8217;re instantiating must ensure that any beans referenced via a OGNL expression are non-null (the NioSocketAcceptor does indeed ensure this for its internal SessionConfig instance). No coding necessary <img src='http://www.ashishpaliwal.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Using the nested property technique above, I think you can easily satisfy almost all of your Mina Spring-configuration needs.</p>
<p>Here is the Spring doco reference:</p>
<p><a href="http://static.springsource.org/spring/docs/2.5.x/reference/beans.html#beans-compound-property-names" rel="nofollow">http://static.springsource.org/spring/docs/2.5.x/reference/beans.html#beans-compound-property-names</a></p>
<p>Regards,</p>
<p>Les</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Les Hazlewood</title>
		<link>http://www.ashishpaliwal.com/blog/2008/11/integrating-apache-mina-with-spring/comment-page-1/#comment-8107</link>
		<dc:creator>Les Hazlewood</dc:creator>
		<pubDate>Tue, 20 Oct 2009 20:58:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.ashishpaliwal.com/blog/?p=198#comment-8107</guid>
		<description>@serge

You don&#039;t need to worry about this - Spring uses a LinkedHashMap implementation for map definitions by default which does retain definition order.

- Les</description>
		<content:encoded><![CDATA[<p>@serge</p>
<p>You don&#8217;t need to worry about this &#8211; Spring uses a LinkedHashMap implementation for map definitions by default which does retain definition order.</p>
<p>- Les</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: serge</title>
		<link>http://www.ashishpaliwal.com/blog/2008/11/integrating-apache-mina-with-spring/comment-page-1/#comment-1320</link>
		<dc:creator>serge</dc:creator>
		<pubDate>Thu, 26 Feb 2009 18:01:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.ashishpaliwal.com/blog/?p=198#comment-1320</guid>
		<description>Hi Ashish

  We need the chain filters in a certain order, so a Map is not appropriate !

By.</description>
		<content:encoded><![CDATA[<p>Hi Ashish</p>
<p>  We need the chain filters in a certain order, so a Map is not appropriate !</p>
<p>By.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ashish</title>
		<link>http://www.ashishpaliwal.com/blog/2008/11/integrating-apache-mina-with-spring/comment-page-1/#comment-509</link>
		<dc:creator>ashish</dc:creator>
		<pubDate>Sat, 13 Dec 2008 02:30:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.ashishpaliwal.com/blog/?p=198#comment-509</guid>
		<description>To be true, I don&#039;t have an answer right now. Let me check and get back to you.</description>
		<content:encoded><![CDATA[<p>To be true, I don&#8217;t have an answer right now. Let me check and get back to you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Declan</title>
		<link>http://www.ashishpaliwal.com/blog/2008/11/integrating-apache-mina-with-spring/comment-page-1/#comment-500</link>
		<dc:creator>Declan</dc:creator>
		<pubDate>Wed, 10 Dec 2008 18:13:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.ashishpaliwal.com/blog/?p=198#comment-500</guid>
		<description>Hi Ashish,
Thanks for the example. One question that has been vexing me for the past while that you may know the answer to. Do you know why the reuseAddress session config parameter no longer exposed when configuring an NioDatagramConnector/Acceptor ? Of course it is possible to set it programmatically by getting a hold of the DatagramSessionConfig from the acceptor/connector once created, however it makes it awkward from a spring config point of view.

Thanks,
Declan.</description>
		<content:encoded><![CDATA[<p>Hi Ashish,<br />
Thanks for the example. One question that has been vexing me for the past while that you may know the answer to. Do you know why the reuseAddress session config parameter no longer exposed when configuring an NioDatagramConnector/Acceptor ? Of course it is possible to set it programmatically by getting a hold of the DatagramSessionConfig from the acceptor/connector once created, however it makes it awkward from a spring config point of view.</p>
<p>Thanks,<br />
Declan.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.ashishpaliwal.com/blog/2008/11/integrating-apache-mina-with-spring/comment-page-1/#comment-29</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 04 Nov 2008 14:48:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.ashishpaliwal.com/blog/?p=198#comment-29</guid>
		<description>Thanks for this example.  It was invaluable in porting my mina-1.1.7 spring configuration over to 2.0.</description>
		<content:encoded><![CDATA[<p>Thanks for this example.  It was invaluable in porting my mina-1.1.7 spring configuration over to 2.0.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
