Skip to content

Instantly share code, notes, and snippets.

@imageaid
Created December 4, 2010 16:31
Show Gist options
  • Save imageaid/728298 to your computer and use it in GitHub Desktop.
Save imageaid/728298 to your computer and use it in GitHub Desktop.
The necessary/required Railo elements to add to Tomcat's web.xml
<!-- BEGIN: RAILO SERVLET SHTUFF -->
<servlet>
<servlet-name>GlobalCFMLServlet</servlet-name>
<description>CFML runtime Engine</description>
<servlet-class>railo.loader.servlet.CFMLServlet</servlet-class>
<init-param>
<param-name>configuration</param-name>
<param-value>{web-root-directory}/WEB-INF/railo/</param-value>
<description>Configuraton directory</description>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>GlobalAMFServlet</servlet-name>
<description>AMF Servlet for flash remoting</description>
<servlet-class>railo.loader.servlet.AMFServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- END: RAILO SERVLET SHTUFF -->
<!-- BEGIN RAILO SERVLET MAPPINGS -->
<servlet-mapping>
<servlet-name>GlobalCFMLServlet</servlet-name>
<url-pattern>*.cfm</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>GlobalCFMLServlet</servlet-name>
<url-pattern>/index.cfm/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>GlobalCFMLServlet</servlet-name>
<url-pattern>*.cfml</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>GlobalCFMLServlet</servlet-name>
<url-pattern>*.cfc</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>GlobalAMFServlet</servlet-name>
<url-pattern>/flashservices/gateway/*</url-pattern>
</servlet-mapping>
<!-- END RAILO SERVLET MAPPINGS -->
<!-- MESSAGEBROKER SERVLET -->
<servlet>
<servlet-name>MessageBrokerServlet</servlet-name>
<!--<display-name>MessageBrokerServlet</display-name>-->
<servlet-class>flex.messaging.MessageBrokerServlet</servlet-class>
<init-param>
<param-name>services.configuration.file</param-name>
<param-value>/WEB-INF/flex/services-config.xml</param-value>
<param-name>kronumMessageBrokerId</param-name>
<param-value>KronumMessageBroker</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Message Broker -->
<servlet-mapping>
<servlet-name>MessageBrokerServlet</servlet-name>
<url-pattern>/flex2gateway/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>MessageBrokerServlet</servlet-name>
<url-pattern>/flashservices/gateway/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>MessageBrokerServlet</servlet-name>
<url-pattern>/messagebroker/*</url-pattern>
</servlet-mapping>
<!-- RAILO WELCOME FILE -->
<welcome-file>index.cfm</welcome-file>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment