Remove <prerequisites><maven> from pom.xml to avoid WARNING
[aaa.git] / commons / federation / jetty.xml.example
1 <?xml version="1.0"?>
2 <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//
3 DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
4
5 <Configure class="org.eclipse.jetty.server.Server">
6
7     <!-- =========================================================== -->
8     <!-- Set connectors -->
9     <!-- =========================================================== -->
10     <!-- One of each type! -->
11     <!-- =========================================================== -->
12
13     <!-- Use this connector for many frequently idle connections and for
14         threadless continuations. -->
15     <Call name="addConnector">
16         <Arg>
17             <New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
18                 <Set name="host">
19                     <Property name="jetty.host" />
20                 </Set>
21                 <Set name="port">
22                     <Property name="jetty.port" default="8181" />
23                 </Set>
24                 <Set name="maxIdleTime">300000</Set>
25                 <Set name="Acceptors">2</Set>
26                 <Set name="statsOn">false</Set>
27                 <Set name="confidentialPort">8443</Set>
28                 <Set name="lowResourcesConnections">20000</Set>
29                 <Set name="lowResourcesMaxIdleTime">5000</Set>
30             </New>
31         </Arg>
32     </Call>
33     <!-- Trusted Authentication Federation proxy connection -->
34     <Call name="addConnector">
35      <Arg>
36          <New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
37            <Set name="host">127.0.0.1</Set>
38      <Set name="port">8383</Set>
39      <Set name="maxIdleTime">300000</Set>
40      <Set name="Acceptors">2</Set>
41      <Set name="statsOn">false</Set>
42      <Set name="confidentialPort">8445</Set>
43      <Set name="name">federationConn</Set>
44      <Set name="lowResourcesConnections">20000</Set>
45      <Set name="lowResourcesMaxIdleTime">5000</Set>
46     </New>
47    </Arg>
48  </Call>
49     <!-- =========================================================== -->
50     <!-- Configure Authentication Realms -->
51     <!-- Realms may be configured for the entire server here, or -->
52     <!-- they can be configured for a specific web app in a context -->
53     <!-- configuration (see $(jetty.home)/contexts/test.xml for an -->
54     <!-- example). -->
55     <!-- =========================================================== -->
56     <Call name="addBean">
57         <Arg>
58             <New class="org.eclipse.jetty.plus.jaas.JAASLoginService">
59                 <Set name="name">karaf</Set>
60                 <Set name="loginModuleName">karaf</Set>
61                 <Set name="roleClassNames">
62                     <Array type="java.lang.String">
63                         <Item>org.apache.karaf.jaas.boot.principal.RolePrincipal
64                         </Item>
65                     </Array>
66                 </Set>
67             </New>
68         </Arg>
69     </Call>
70     <Call name="addBean">
71         <Arg>
72             <New class="org.eclipse.jetty.plus.jaas.JAASLoginService">
73                 <Set name="name">default</Set>
74                 <Set name="loginModuleName">karaf</Set>
75                 <Set name="roleClassNames">
76                     <Array type="java.lang.String">
77                         <Item>org.apache.karaf.jaas.boot.principal.RolePrincipal
78                         </Item>
79                     </Array>
80                 </Set>
81             </New>
82         </Arg>
83     </Call>
84 </Configure>
85