[jboss-cvs] jboss-seam/doc/reference/en/modules ...
Shane Bryzak
Shane_Bryzak at symantec.com
Sun Aug 6 06:49:19 EDT 2006
User: sbryzak2
Date: 06/08/06 06:49:19
Modified: doc/reference/en/modules remoting.xml
Log:
Updated to reflect changes in JBSEAM-281
Revision Changes Path
1.16 +37 -3 jboss-seam/doc/reference/en/modules/remoting.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: remoting.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/doc/reference/en/modules/remoting.xml,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- remoting.xml 5 Jul 2006 04:15:54 -0000 1.15
+++ remoting.xml 6 Aug 2006 10:49:19 -0000 1.16
@@ -656,7 +656,7 @@
<para>
To aid in tracking down bugs, it is possible to enable a debug mode which will display the
contents of all the packets send back and forth between the client and server in a popup window.
- To enable debug mode, execute the <literal>setDebug()</literal> method:
+ To enable debug mode, either execute the <literal>setDebug()</literal> method in Javascript:
</para>
<programlisting>
@@ -664,6 +664,16 @@
</programlisting>
<para>
+ Or configure it via components.xml:
+ </para>
+
+ <programlisting>
+ <component name="org.jboss.seam.remoting.remotingConfig">
+ <property name="debug">true</property>
+ </component>
+ </programlisting>
+
+ <para>
To turn off debugging, call <literal>setDebug(false)</literal>. If you want to write your own
messages to the debug log, call <literal>Seam.Remoting.log(message)</literal>.
</para>
@@ -946,8 +956,31 @@
</para>
<para>
- The following example demonstrates how to configure the polling to occur much more aggressively. You should
- set these parameters to suitable values for your application:
+ Caution should be used when setting a high <literal>pollTimeout</literal> value; each request that
+ has to wait for a message means that a server thread is tied up until a message is received, or until the
+ request times out. If many such requests are being served simultaneously, it could mean a large
+ number of threads become tied up because of this reason.
+ </para>
+
+ <para>
+ It is recommended that you set these options via components.xml, however they can be overridden via
+ Javascript if desired. The following example demonstrates how to configure the polling to occur much
+ more aggressively. You should set these parameters to suitable values for your application:
+ </para>
+
+ <para>
+ Via components.xml:
+ </para>
+
+ <programlisting>
+ <component name="org.jboss.seam.remoting.remotingConfig">
+ <property name="pollTimeout">5</property>
+ <property name="pollInterval">1</property>
+ </component>
+ </programlisting>
+
+ <para>
+ Via JavaScript:
</para>
<programlisting>
@@ -957,6 +990,7 @@
// Wait up to 5 seconds on the server for new messages
Seam.Remoting.pollTimeout = 5;
</programlisting>
+
</sect2>
</sect1>
More information about the jboss-cvs-commits
mailing list