Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2180 asteen 1
<?xml version="1.0" encoding="UTF-8"?>
2
 
3
<!DOCTYPE web-app
4
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
5
    "http://java.sun.com/dtd/web-app_2_3.dtd">
6
 
7
<web-app>
8
  <servlet>
9
    <servlet-name>HTTPServerILServlet</servlet-name>
10
    <display-name>JBossMQ HTTP-IL Servlet</display-name>
11
    <description>Provides and HTTP invocation layer for JBossMQ</description>
12
    <servlet-class>org.jboss.mq.il.http.servlet.HTTPServerILServlet</servlet-class>
13
    <init-param>
14
        <param-name>Invoker</param-name> 
15
        <param-value>jboss.mq:service=Invoker</param-value> 
16
     </init-param>
17
  </servlet>
18
  <servlet-mapping>
19
    <servlet-name>HTTPServerILServlet</servlet-name>
20
    <url-pattern>/HTTPServerILServlet/*</url-pattern>
21
  </servlet-mapping>
22
 
23
  <!-- Alternate mappings that place the servlets under the restricted
24
    path to required authentication for access. Remove the unsecure mappings
25
    if only authenticated users should be allowed.
26
    -->
27
  <servlet-mapping>
28
    <servlet-name>HTTPServerILServlet</servlet-name>
29
    <url-pattern>/restricted/HTTPServerILServlet/*</url-pattern>
30
  </servlet-mapping>
31
 
32
   <!-- An example security constraint that restricts access to the HTTP invoker
33
   to users with the role HttpInvoker Edit the roles to what you want and
34
   configure the WEB-INF/jboss-web.xml/security-domain element to reference
35
   the security domain you want.
36
   -->
37
   <security-constraint>
38
      <web-resource-collection>
39
         <web-resource-name>HTTPServerILServlet</web-resource-name>
40
         <description>An example security config that only allows users with the
41
            role JBossMqHttpIl to access the HTTP-IL servlet
42
         </description>
43
         <url-pattern>/restricted/*</url-pattern>
44
         <http-method>GET</http-method>
45
         <http-method>POST</http-method>
46
      </web-resource-collection>
47
      <auth-constraint>
48
         <role-name>JBossMqHttpIl</role-name>
49
      </auth-constraint>
50
   </security-constraint>
51
   <login-config>
52
      <auth-method>BASIC</auth-method>
53
      <realm-name>JBossMQ HTTP-IL</realm-name>
54
   </login-config>
55
 
56
   <security-role>
57
      <role-name>JBossMqHttpIl</role-name>
58
   </security-role>
59
 
60
 
61
</web-app>