[jboss-cvs] JBoss Messaging SVN: r6820 - trunk/examples/javaee/servlet-transport.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sat May 16 04:01:55 EDT 2009
Author: ataylor
Date: 2009-05-16 04:01:55 -0400 (Sat, 16 May 2009)
New Revision: 6820
Modified:
trunk/examples/javaee/servlet-transport/readme.html
Log:
fixed servlet example readme
Modified: trunk/examples/javaee/servlet-transport/readme.html
===================================================================
--- trunk/examples/javaee/servlet-transport/readme.html 2009-05-16 07:59:41 UTC (rev 6819)
+++ trunk/examples/javaee/servlet-transport/readme.html 2009-05-16 08:01:55 UTC (rev 6820)
@@ -14,66 +14,12 @@
<h2>Example configuration</h2>
- <p>
- JBoss Messaging supports different transports through configuration. In fact JBoss Messaging provides a set of
- simple SPI that allow new transports can be plugged in easily. In this example, netty's servlet transport is
- configured and used in sending and receiving messages with JBoss Message Server.
-
- To enable netty's servlet transport, following these steps
- <ol>
- <li>Create a servlet</li>
- There is a servlet for this example under config. Please take a look at
- <code>${JBOSS_HOME}/server/default-with-jbm2/config/jms-servlet/WEB-INF/web.xml</code> for
- details of the servlet configuration. The servlet is used to accept requests and send response. Before using servlet
- transport, the servlet need to be deployed to the AS 5.
-
- <li>Add servlet connector/acceptor entries in <code>${JBOSS_HOME}/server/default-with-jbm2/deploy/messaging.sar/jbm-configuration.xml</code></li>
- The corresponding connector/acceptor need to be configured to tell JBoss Messaging to use netty servlet transport.
- The configure looks like:
- <p>
- <pre><code>
- <connectors>
- ...
- <connector name="netty-servlet">
- <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="/jms-servlet/JBMServlet" type="String"/>
- </connector>
- ...
- </connectors>
-
- <acceptors>
- ...
- <acceptor name="netty-servlet">
- <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>
- ...
- </acceptor>
- </code></pre>
- </p>
- <li>You also need to use the Connection Factory that has configured to use the servlet connector in jbm-jms.xml, as</li>
- <p>
- <pre><code>
- <connection-factory name="TestServletConnectionFactory">
- <connector-ref connector-name="netty-servlet"/>
- <entries>
- <entry name="/TestServletConnectionFactory"/>
- </entries>
- </connection-factory>
- </code></pre>
- </p>
- </ol>
- </p>
<h2>Example step-by-step</h2>
- <p><em>From this directory, type <code>ant deploy</code> to deploy resources in the application server (including the WAR).</br >
- Type <code>ant</code> to run the example.<br />
- Finally type <code>ant undeploy</code> to undeploy the example resources from the application server.</em></p>
+ <p><em>To deploy and start the server, type <code>ant deploy</code>from the example directory</br >
+ Once the server has started type <code>ant run</code> to run the example.<br />
+ To remove the new profile type <code>ant undeploy</code>.</em></p>
<br>
<ol>
More information about the jboss-cvs-commits
mailing list