Debian Codegraph @

jetty-integrations/jetty-infinispan/jetty-infinispan-remote-query/src/main/config-template/etc/sessions/infinispan/infinispan-remote-query.xml

raw
1 <?xml version="1.0"?>
2 <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://jetty.org/configure_10_0.dtd">
3
4 <Configure id="Server" class="org.eclipse.jetty.server.Server">
5
6 <!-- ===================================================================== -->
7 <!-- Set up support for queries and index on session expiry time. -->
8 <!-- ===================================================================== -->
9
10
11 <New id="properties" class="java.util.Properties">
12 <Call name="load">
13 <Arg>
14 <New class="java.io.FileInputStream">
15 <Arg><Property name="jetty.base"/>/resources/hotrod-client.properties</Arg>
16 </New>
17 </Arg>
18 </Call>
19 </New>
20
21
22 <!-- ===================================================================== -->
23 <!-- Convert properties to configuration. -->
24 <!-- ===================================================================== -->
25 <New class="org.infinispan.client.hotrod.configuration.ConfigurationBuilder">
26 <Call name="withProperties">
27 <Arg><Ref refid="properties"/></Arg>
28 </Call>
29 <Call name="marshaller">
30 <Arg>
31 <New class="org.infinispan.commons.marshall.ProtoStreamMarshaller"/>
32 </Arg>
33 </Call>
34 <Call name="addContextInitializer">
35 <Arg>
36 <New class="org.eclipse.jetty.session.infinispan.InfinispanSerializationContextInitializer"/>
37 </Arg>
38 </Call>
39 <Call id="config" name="build"/>
40 </New>
41
42 <!-- ===================================================================== -->
43 <!-- Get a reference to the remote cachemanager. -->
44 <!-- ===================================================================== -->
45 <New id="remoteCacheManager" class="org.infinispan.client.hotrod.RemoteCacheManager">
46 <Arg><Ref refid="config"/></Arg>
47 </New>
48
49 <!-- ===================================================================== -->
50 <!-- Get a reference to the remote cache. -->
51 <!-- ===================================================================== -->
52 <Ref refid="remoteCacheManager">
53 <Call id="cache" name="getCache">
54 <Arg><Property name="jetty.session.infinispan.remoteCacheName" default="sessions"/></Arg>
55 </Call>
56 </Ref>
57
58 <!-- ===================================================================== -->
59 <!-- Set queryMgrFactory reference to RemoteQueryManagerFactory -->
60 <!-- ===================================================================== -->
61 <New id="queryMgrFactory" class="org.eclipse.jetty.session.infinispan.RemoteQueryManagerFactory"/>
62
63 </Configure>