Debian Codegraph @

jetty-integrations/jetty-infinispan/jetty-infinispan-remote/src/main/config-template/etc/sessions/infinispan/infinispan-remote.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 <!-- Read hotrod-client.properties file -->
8 <!-- ===================================================================== -->
9 <New id="properties" class="java.util.Properties">
10 <Call name="load">
11 <Arg>
12 <New class="java.io.FileInputStream">
13 <Arg><Property name="jetty.base"/>/resources/hotrod-client.properties</Arg>
14 </New>
15 </Arg>
16 </Call>
17 </New>
18
19 <!-- ===================================================================== -->
20 <!-- Convert properties to configuration -->
21 <!-- ===================================================================== -->
22 <New class="org.infinispan.client.hotrod.configuration.ConfigurationBuilder">
23 <Call name="withProperties">
24 <Arg><Ref refid="properties"/></Arg>
25 </Call>
26 <Call name="marshaller">
27 <Arg>
28 <New class="org.infinispan.commons.marshall.ProtoStreamMarshaller"/>
29 </Arg>
30 </Call>
31 <Call name="addContextInitializer">
32 <Arg>
33 <New class="org.eclipse.jetty.session.infinispan.InfinispanSerializationContextInitializer"/>
34 </Arg>
35 </Call>
36 <Call id="config" name="build"/>
37 </New>
38
39 <!-- ===================================================================== -->
40 <!-- Get a reference to the remote cachemanager. -->
41 <!-- ===================================================================== -->
42 <New id="hotrodMgr" class="org.infinispan.client.hotrod.RemoteCacheManager">
43 <Arg><Ref refid="config"/></Arg>
44 </New>
45
46 <!-- ===================================================================== -->
47 <!-- Get a reference to the remote cache. -->
48 <!-- ===================================================================== -->
49 <Ref refid="hotrodMgr">
50 <Call id="cache" name="getCache">
51 <Arg><Property name="jetty.session.infinispan.remoteCacheName" default="sessions"/></Arg>
52 </Call>
53 </Ref>
54
55 <!-- ===================================================================== -->
56 <!-- Set queryMgrFactory reference to NullQueryManagerFactory -->
57 <!-- ===================================================================== -->
58 <New id="queryMgrFactory" class="org.eclipse.jetty.session.infinispan.NullQueryManagerFactory"/>
59
60 </Configure>