[英]Where to locate configuration.xml of Infinispan
I'm new with Infinispan and I must configure Infinispan as distributed-cache. 我是Infinispan的新手,必须将Infinispan配置为分布式缓存。
I have just create the jdg.properties and also create the configuration.xml where I set the distributed-cache like this: 我刚刚创建了jdg.properties,还创建了configuration.xml,在其中设置了分布式缓存,如下所示:
<distributed-cache name="core_report"
mode="ASYNC" segments="20" owners="1" remote-timeout="30000" start="EAGER">
<locking acquire-timeout="30000" concurrency-level="1000"
striping="false" />
<transaction mode="NONE" />
<eviction max-entries="100000" strategy="LIRS" />
<expiration lifespan="-1" max-idle="-1" />
<persistence>
<file-store shared="true" preload="true" passivation="true"
fetch-state="true" read-only="false" purge="false" path="file-store">
<write-behind flush-lock-timeout="15000"
thread-pool-size="5" />
</file-store>
</persistence>
</distributed-cache>
Now I don't understand where to locate this file. 现在,我不知道该文件的位置。 In the web project or in the remote machine?
在Web项目中还是在远程计算机中?
I would like to understand better. 我想更好地了解。 Thank all
谢谢大家
I was thinking about the quickest way how to convey the most relevant information here... 我在想如何在这里传达最相关信息的最快方法...
Apart from suggesting that you can consult our documentation: http://infinispan.org/docs/7.1.x/user_guide/user_guide.html#_configuring_cache_declaratively I also highly recommend to look at clustered-cache infinispan-quickstart . 除了建议您可以查阅我们的文档之外: http : //infinispan.org/docs/7.1.x/user_guide/user_guide.html#_configuring_cache_declaratively我也强烈建议查看集群缓存 infinispan-quickstart 。
https://github.com/infinispan/infinispan-quickstart/tree/master/clustered-cache https://github.com/infinispan/infinispan-quickstart/tree/master/clustered-cache
After short look you can find out the exact directory structure and where are configuration files usually put. 简短浏览后,您可以找到确切的目录结构以及通常放在何处的配置文件。 It is src/main/resources folder -- see infinispan.xml file at that location.
它是src / main / resources文件夹-请参阅该位置的infinispan.xml文件。
I suggest mimicking above mentioned quickstart as it seems to be really straightforward approach for your issue. 我建议模仿上面提到的快速入门,因为这对于您的问题而言似乎是非常简单的方法。
Note: you can have your infinispan.xml configuration file where ever you want and use absolute path to that file in new DefaultCacheManager definition. 注意:可以将infinispan.xml配置文件放在任何位置,并在新的DefaultCacheManager定义中使用该文件的绝对路径。
I suppose your deployment is InVM usage. 我想您的部署是InVM的使用。 If you want to configure infinispan-server, you can change server configuration file that is located in ispn-server/standalone/configuration/ folder.
如果要配置infinispan-server,则可以更改ispn-server / standalone / configuration /文件夹中的服务器配置文件。 Commonly standalone.xml or clustered.xml .
通常是standalone.xml或clustered.xml 。
PS: If anything, comment, I will respond asap here. PS:如果有任何意见,我将在这里尽快答复。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.