[jboss-cvs] JBoss Messaging SVN: r6915 - trunk/docs/user-manual/en.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed May 20 06:58:30 EDT 2009
Author: ataylor
Date: 2009-05-20 06:58:30 -0400 (Wed, 20 May 2009)
New Revision: 6915
Modified:
trunk/docs/user-manual/en/configuring-transports.xml
Log:
reformatted code and tables for configuration transports doc
Modified: trunk/docs/user-manual/en/configuring-transports.xml
===================================================================
--- trunk/docs/user-manual/en/configuring-transports.xml 2009-05-20 10:37:43 UTC (rev 6914)
+++ trunk/docs/user-manual/en/configuring-transports.xml 2009-05-20 10:58:30 UTC (rev 6915)
@@ -15,7 +15,9 @@
<programlisting>
<acceptors>
<acceptor name="netty">
- <factory-class>org.jboss.messaging.integration.transports.netty.NettyAcceptorFactory</factory-class>
+ <factory-class>
+org.jboss.messaging.integration.transports.netty.NettyAcceptorFactory
+ </factory-class>
<param key="jbm.remoting.netty.port" value="5446" type="Integer"/>
</acceptor>
</acceptors>
@@ -52,7 +54,9 @@
<programlisting>
<connectors>
<connector name="netty">
- <factory-class>org.jboss.messaging.integration.transports.netty.NettyConnectorFactory</factory-class>
+ <factory-class>
+ org.jboss.messaging.integration.transports.netty.NettyConnectorFactory
+ </factory-class>
<param key="jbm.remoting.netty.port" value="5446" type="Integer"/>
</connector>
</connectors>
@@ -108,9 +112,13 @@
<programlisting>
Map<String, Object> connectionParams = new HashMap<String, Object>();
-connectionParams.put(org.jboss.messaging.integration.transports.netty.PORT_PROP_NAME, 5446);
+connectionParams.put(org.jboss.messaging.integration.transports.netty.PORT_PROP_NAME,
+ 5446);
-TransportConfiguration transportConfiguration = new TransportConfiguration("org.jboss.messaging.integration.transports.netty.NettyConnectorFactory", connectionParams);
+TransportConfiguration transportConfiguration =
+ new TransportConfiguration(
+ "org.jboss.messaging.integration.transports.netty.NettyConnectorFactory",
+ connectionParams);
ClientSessionFactory sessionFactory = new ClientSessionFactory(transportConfiguration);
@@ -126,7 +134,10 @@
connectionParams.put(org.jboss.messaging.integration.transports.netty.PORT_PROP_NAME, 5446);
-TransportConfiguration transportConfiguration = new TransportConfiguration("org.jboss.messaging.integration.transports.netty.NettyConnectorFactory", connectionParams);
+TransportConfiguration transportConfiguration =
+ new TransportConfiguration(
+ "org.jboss.messaging.integration.transports.netty.NettyConnectorFactory",
+ connectionParams);
ConnectionFactory connectionFactory = new JBossConnectionFactory(transportConfiguration);
@@ -258,20 +269,27 @@
>true</literal> to enable HTTP.</para>
</listitem>
<listitem>
- <para><literal>jbm.remoting.netty.httpclientidletime</literal>. TODO</para>
+ <para><literal>jbm.remoting.netty.httpclientidletime</literal>. How long a
+ client can be idle before sending an empty http request to keep the
+ connection alive</para>
</listitem>
<listitem>
- <para><literal>jbm.remoting.netty.httpclientidlescanperiod</literal>.
- TODO</para>
+ <para><literal>jbm.remoting.netty.httpclientidlescanperiod</literal>. How often,
+ in milliseconds, to scan for idle clients</para>
</listitem>
<listitem>
- <para><literal>jbm.remoting.netty.httpresponsetime</literal>. TODO</para>
+ <para><literal>jbm.remoting.netty.httpresponsetime</literal>. How long the
+ server can wait before sending an empty http response to keep the connection
+ alive</para>
</listitem>
<listitem>
- <para><literal>jbm.remoting.netty.httpserverscanperiod</literal>. TODO</para>
+ <para><literal>jbm.remoting.netty.httpserverscanperiod</literal>. How often, in
+ milliseconds, to scan for clients needing responses</para>
</listitem>
<listitem>
- <para><literal>jbm.remoting.netty.httprequiressessionid</literal>. TODO</para>
+ <para><literal>jbm.remoting.netty.httprequiressessionid</literal>. If true the
+ client will wait after the first call to receive a session id. Used the http
+ connector is connecting to servlet acceptor (not recommended) </para>
</listitem>
</itemizedlist>
</section>
@@ -297,9 +315,7 @@
<para>Deploy the servlet. Here's an example web.xml describing a web application
that uses the servlet:</para>
<programlisting><?xml version="1.0" encoding="UTF-8"?>
-<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
- version="2.4">
+<web-app>
<context-param>
<param-name>serverChannelName</param-name>
<param-value>org.jboss.jbm</param-value>
@@ -316,16 +332,22 @@
</context-param>
<listener>
- <listener-class>org.jboss.netty.channel.socket.http.HttpTunnelingSessionListener</listener-class>
+ <listener-class>
+ org.jboss.netty.channel.socket.http.HttpTunnelingSessionListener
+ </listener-class>
</listener>
<listener>
- <listener-class>org.jboss.netty.channel.socket.http.HttpTunnelingContextListener</listener-class>
+ <listener-class>
+ org.jboss.netty.channel.socket.http.HttpTunnelingContextListener
+ </listener-class>
</listener>
<servlet>
<servlet-name>NettyServlet</servlet-name>
- <servlet-class>org.jboss.netty.channel.socket.http.HttpTunnelingServlet</servlet-class>
+ <servlet-class>
+ org.jboss.netty.channel.socket.http.HttpTunnelingServlet
+ </servlet-class>
</servlet>
<servlet-mapping>
@@ -344,7 +366,9 @@
<acceptors>
<acceptor name="netty-invm">
- <factory-class>org.jboss.messaging.integration.transports.netty.NettyAcceptorFactory</factory-class>
+ <factory-class>
+ org.jboss.messaging.integration.transports.netty.NettyAcceptorFactory
+ </factory-class>
<param key="jbm.remoting.netty.useinvm" value="true" type="Boolean"/>
<param key="jbm.remoting.netty.host" value="org.jboss.jbm" type="String"/>
</acceptor>
@@ -358,11 +382,14 @@
<programlisting><connectors>
<connector name="netty-servlet">
- <factory-class>org.jboss.messaging.integration.transports.netty.NettyConnectorFactory</factory-class>
+ <factory-class>
+ org.jboss.messaging.integration.transports.netty.NettyConnectorFactory
+ </factory-class>
<param key="jbm.remoting.netty.host" value="localhost" type="String"/>
<param key="jbm.remoting.netty.port" value="8080" type="Integer"/>
<param key="jbm.remoting.netty.useservlet" value="true" type="Boolean"/>
- <param key="jbm.remoting.netty.servletpath" value="/messaging/JBMServlet" type="String"/>
+ <param key="jbm.remoting.netty.servletpath"
+ value="/messaging/JBMServlet" type="String"/>
</connector>
</connectors></programlisting>
More information about the jboss-cvs-commits
mailing list