Your question is incredibly broad and books would spend a chapter or
two on web.xml configuration. I am not sure if a treatsie on J2EE is
really on topic for this discussion board. I honestly would strongly
suggest getting a good reference book on J2EE and reviewing that to
get your hands around it.
I will answer your specific question but I really encourage you to go
spend some time learning about J2EE, server configuration, deployment
topologies etc.
In web.xml one of the artifact types you can configure is a servlet.
This is a two step process. First you define the server and its
configuration parameters giving that servlet a logical name. In the
next step you map that logical servlet to a physical URL. So, in the
case of the AMF gateway....
<servlet>
<servlet-name>AMFGatewayServlet</servlet-name>
<display-name>Flash Remoting AMF Servlet</display-name>
<description>Servlet-based plugin to Flash Remoting</description>
<servlet-class>flashgateway.controller.GatewayServlet</servlet-class>
<init-param>
<param-name>gateway.configuration.file</param-name>
<param-value>/WEB-INF/flex/gateway-config.xml</param-value>
</init-param>
<init-param>
<param-name>whitelist.configuration.file</param-name>
<param-value>/WEB-INF/flex/flex-config.xml</param-value>
</init-param>
<init-param>
<param-name>whitelist.parent.node</param-name>
<param-value>remote-objects</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
The Java class flashgateway.controller.GatewayServlet is defined a
servlet with the logical name AMFGatewayServlet. Several
configuration parameters are set on the servlet and the servlet is
configured to be instantiated on server boot.
Next the AMFGatewayServlet servlet is mapped to a specific URL as
<servlet-mapping>
<servlet-name>AMFGatewayServlet</servlet-name>
<url-pattern>/amfgateway/*</url-pattern>
</servlet-mapping>
Now a url like
http://foo.bar.com/amfgateway/whatever
Will have its streams directed at the appropriate servlet instance.
Again, I seriously have to urge you to learn about J2EE. I urge
everyone to understand that if they use server deployed Flex solutions
(Flex 1.5 and Flex2 with data services) they are in essence deploying
a J2EE application. Understanding how they work, how you configure
them and deploy them will help you immeasureably.
--
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com
Email: [EMAIL PROTECTED]
Office: 866-CYNERGY
--- In [email protected], [EMAIL PROTECTED] wrote:
>
> have come to the conclusion that in order to make my site secure I
need to
> do some work with the web.xml file. Work meaning editing it or
changing it
> around. What I am confused about is this. In my web.xml file the url
pattern is
> /amfgateway/* I am not able to find a folder named amfgateway so I
am confused
> as to how I go about editing it to make a webpage I am making
secure. I am
> using just a localhost server now I have not actually put anything
online. Can
> someone clear this xml thing up?
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income homes are not online. Make a difference this holiday season!
http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/