简体   繁体   English

Infinispan的configuration.xml的位置

[英]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.xmlclustered.xml

PS: If anything, comment, I will respond asap here. PS:如果有任何意见,我将在这里尽快答复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 配置问题:无法找到XML模式名称空间的Spring NamespaceHandler [urn:infinispan:config:7.0] - Configuration issue: Unable to locate Spring NamespaceHandler for XML schema namespace [urn:infinispan:config:7.0] getClassLoader()。getResource(“ Configuration.xml”)。getPath()在jar内不起作用 - getClassLoader().getResource(“Configuration.xml”).getPath() does not work inside a jar 为什么 mapping.xml 和 configuration.xml 必须在 pojo 包之外? - Why the mapping.xml and configuration.xml has to be outside the pojo package? 从父模块向子模块war添加Spring的configuration.xml - add configuration.xml for Spring from Parent module to child module war 在 tomcat 或 jetty 中部署 mule 应用程序时,如何在 configuration.xml 文件中将 http 端点更改为 servlet 端点? - While deploying mule application in tomcat or jetty , How to change http endpoints to servlet endpoints in configuration.xml file? infinispan 休眠二级缓存 - 需要 XML 配置格式 - infinispan hibernate 2nd level cache - XML Configuration format required 将Infinispan xml配置从6.x迁移到7.x - Migrating Infinispan xml configuration from 6.x to 7.x Infinispan拦截器配置? - Infinispan Interceptor Configuration? Wildfly-Infinispan Transactions配置 - Wildfly - Infinispan Transactions configuration 在Spring中哪里可以找到Spring数据库XML文件? - Where to locate a spring database XML file in Spring?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM