Setting Up Flash Remoting for J2EE
Chapter 2 describes using the Flash Remoting for J2EE installer to install Flash Remoting. Be sure to use the latest update from Macromedia, which at the time of this writing is the Flash Remoting MX for J2EE Updater 1. The updater is available in ZIP archive format from http://www.macromedia.com/support/flash_remoting/updaters.html.
The updater provides several different distributions of Flash Remoting:
WAR archive with no examples
WAR archive with examples
EAR archive with no examples
EAR archive with examples
JAR archive
If you want to run the examples in a servlet container, install the WAR archive with examples. If you want to run the examples in a servlet and EJB container, install the EAR archive with examples. The installation procedure is described under Section 2.1.3.
To install Flash Remoting for use in your own application, place the JAR archive, flashgateway.jar, in your web application’s WEB-INF/lib directory and add the following servlet definition and mapping to your web application’s WEB-INF/web.xml file:
<servlet> <servlet-name>FlashGatewayServlet</servlet-name> <servlet-class>flashgateway.controller.GatewayServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>FlashGatewayServlet</servlet-name> <url-pattern>/gateway</url-pattern> </servlet-mapping>
The servlet definition maps the Flash Remoting gateway servlet to the /gateway URL within your web application. If your web application context root is /mywebapp and viewable ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access