You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by tr...@apache.org on 2005/10/07 10:43:04 UTC
svn commit: r307052 - in /directory/network:
branches/0.7/src/java/org/apache/mina/registry/ branches/0.7/xdocs/
trunk/src/java/org/apache/mina/registry/ trunk/xdocs/
Author: trustin
Date: Fri Oct 7 01:42:55 2005
New Revision: 307052
URL: http://svn.apache.org/viewcvs?rev=307052&view=rev
Log:
* Added more FAQ items based on recent questions
* Updated a link to ApacheCon
* Added some comment to SimpleServiceRegistry.startupThreadPools() as users requested
Modified:
directory/network/branches/0.7/src/java/org/apache/mina/registry/SimpleServiceRegistry.java
directory/network/branches/0.7/xdocs/faq.fml
directory/network/branches/0.7/xdocs/navigation.xml
directory/network/trunk/src/java/org/apache/mina/registry/SimpleServiceRegistry.java
directory/network/trunk/xdocs/faq.fml
Modified: directory/network/branches/0.7/src/java/org/apache/mina/registry/SimpleServiceRegistry.java
URL: http://svn.apache.org/viewcvs/directory/network/branches/0.7/src/java/org/apache/mina/registry/SimpleServiceRegistry.java?rev=307052&r1=307051&r2=307052&view=diff
==============================================================================
--- directory/network/branches/0.7/src/java/org/apache/mina/registry/SimpleServiceRegistry.java (original)
+++ directory/network/branches/0.7/src/java/org/apache/mina/registry/SimpleServiceRegistry.java Fri Oct 7 01:42:55 2005
@@ -218,6 +218,9 @@
private void startThreadPools()
{
+ // Start thread pools only when the first service is bound.
+ // If any services are bound, it means that thread pools are started
+ // already.
if( !services.isEmpty() )
return;
@@ -227,6 +230,7 @@
private void stopThreadPools()
{
+ // Stop thread pools only when all services are unbound.
if( !services.isEmpty() )
return;
Modified: directory/network/branches/0.7/xdocs/faq.fml
URL: http://svn.apache.org/viewcvs/directory/network/branches/0.7/xdocs/faq.fml?rev=307052&r1=307051&r2=307052&view=diff
==============================================================================
--- directory/network/branches/0.7/xdocs/faq.fml (original)
+++ directory/network/branches/0.7/xdocs/faq.fml Fri Oct 7 01:42:55 2005
@@ -307,6 +307,21 @@
corresponding response message.
</answer>
</faq>
+
+ <faq id="adding-filters-per-session">
+ <question>
+ How can I add filters to a specific session or port?
+ </question>
+ <answer>
+ There is <tt>IoSession.getFilterChain()</tt> and
+ <tt>ProtocolSession.getFilterChain()</tt> that returns
+ <tt>IoFilterChain</tt> and <tt>ProtocolFilterChain</tt> respectively.
+ You can add any session-specific filters using the returned chain.
+ But you cannot add port-specific filters right now. You'll have to
+ create more than one <tt>IoAcceptor</tt> or <tt>ProtocolAcceptor</tt>
+ because each acceptors have one filter chain you can adjust.
+ </answer>
+ </faq>
</part>
<part id="troubleshooting">
@@ -337,6 +352,17 @@
</p>
</answer>
</faq>
+
+ <faq id="ssl-client-hangs">
+ <question>
+ I created an SSL client with MINA, but it doesn't initiate any handshake
+ after the session is open.
+ </question>
+ <answer>
+ Please make sure you called <tt>SSLFilter.setUseClientMode(true)</tt>
+ before you initiate a connection. Server developers will also have to
+ disconnect users who doesn't initiate SSL handshake.
+ </answer>
+ </faq>
</part>
</faqs>
-
Modified: directory/network/branches/0.7/xdocs/navigation.xml
URL: http://svn.apache.org/viewcvs/directory/network/branches/0.7/xdocs/navigation.xml?rev=307052&r1=307051&r2=307052&view=diff
==============================================================================
--- directory/network/branches/0.7/xdocs/navigation.xml (original)
+++ directory/network/branches/0.7/xdocs/navigation.xml Fri Oct 7 01:42:55 2005
@@ -45,9 +45,9 @@
<item name="Wiki Pages" href="http://wiki.apache.org/directory/MinaHome"/>
</menu>
- <menu name="ApacheCon Europe 2005">
- <item name="ApacheCon Europe 2005" href="http://www.apachecon.com/"
- img="http://apache.org/images/ac2005eu_135x50.gif" />
+ <menu name="ApacheCon US 2005">
+ <item name="ApacheCon US 2005" href="http://www.apachecon.com/"
+ img="http://apache.org/images/ac2005us_white_184x80.jpg" />
</menu>
</body>
</project>
Modified: directory/network/trunk/src/java/org/apache/mina/registry/SimpleServiceRegistry.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/java/org/apache/mina/registry/SimpleServiceRegistry.java?rev=307052&r1=307051&r2=307052&view=diff
==============================================================================
--- directory/network/trunk/src/java/org/apache/mina/registry/SimpleServiceRegistry.java (original)
+++ directory/network/trunk/src/java/org/apache/mina/registry/SimpleServiceRegistry.java Fri Oct 7 01:42:55 2005
@@ -163,6 +163,9 @@
private void startThreadPools()
{
+ // Start thread pools only when the first service is bound.
+ // If any services are bound, it means that thread pools are started
+ // already.
if( !services.isEmpty() )
return;
@@ -180,6 +183,7 @@
private void stopThreadPools()
{
+ // Stop thread pools only when all services are unbound.
if( !services.isEmpty() )
return;
Modified: directory/network/trunk/xdocs/faq.fml
URL: http://svn.apache.org/viewcvs/directory/network/trunk/xdocs/faq.fml?rev=307052&r1=307051&r2=307052&view=diff
==============================================================================
--- directory/network/trunk/xdocs/faq.fml (original)
+++ directory/network/trunk/xdocs/faq.fml Fri Oct 7 01:42:55 2005
@@ -307,6 +307,21 @@
corresponding response message.
</answer>
</faq>
+
+ <faq id="adding-filters-per-session">
+ <question>
+ How can I add filters to a specific session or port?
+ </question>
+ <answer>
+ There is <tt>IoSession.getFilterChain()</tt> and
+ <tt>ProtocolSession.getFilterChain()</tt> that returns
+ <tt>IoFilterChain</tt> and <tt>ProtocolFilterChain</tt> respectively.
+ You can add any session-specific filters using the returned chain.
+ But you cannot add port-specific filters right now. You'll have to
+ create more than one <tt>IoAcceptor</tt> or <tt>ProtocolAcceptor</tt>
+ because each acceptors have one filter chain you can adjust.
+ </answer>
+ </faq>
</part>
<part id="troubleshooting">
@@ -337,6 +352,17 @@
</p>
</answer>
</faq>
+
+ <faq id="ssl-client-hangs">
+ <question>
+ I created an SSL client with MINA, but it doesn't initiate any handshake
+ after the session is open.
+ </question>
+ <answer>
+ Please make sure you called <tt>SSLFilter.setUseClientMode(true)</tt>
+ before you initiate a connection. Server developers will also have to
+ disconnect users who doesn't initiate SSL handshake.
+ </answer>
+ </faq>
</part>
</faqs>
-