GithubHelp home page GithubHelp logo

Comments (4)

tristantarrant avatar tristantarrant commented on June 14, 2024 1

Hi, I've just issued a PR which fixes the schema among other things. See
https://github.com/tristantarrant/infinispan-cachestore-mongodb/blob/827c3af3effd2477154b9e096338f4a6f90bde94/src/test/resources/config/mongodb-config.xml
Once that is merged, I can release a new version of the cachestore and publish the schema at the appropriate coordinates.

from infinispan-cachestore-mongodb.

galderz avatar galderz commented on June 14, 2024

Hmmm, can you show the entire XML file? Maybe you're missing mongo schema URL link?

from infinispan-cachestore-mongodb.

orochies avatar orochies commented on June 14, 2024

The code is as follows thanks:

<?xml version="1.0" encoding="UTF-8"?>
<infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="urn:infinispan:config:8.2 http://www.infinispan.org/schemas/infinispan-config-8.2.xsd"
    xmlns="urn:infinispan:config:8.2">

    <cache-container default-cache="default" statistics="false">

        <local-cache-configuration name="photos-config">
            <eviction size="1000" />
            <persistence>
                <mongodbStore xmlns="urn:infinispan:config:mongodb:8.2">
                    <connection collection="photos"
                        uri="mongodb://localhost:27017/withis_cachestore?w=0&amp;connectTimeoutMS=2000" />
                </mongodbStore>
            </persistence>
        </local-cache-configuration>

        <local-cache-configuration name="entries-config">
            <eviction size="1000" />
            <persistence>
                <mongodbStore xmlns="urn:infinispan:config:mongodb:8.2">
                    <connection collection="entries"
                        uri="mongodb://localhost:27017/withis_cachestore?w=0&amp;connectTimeoutMS=2000" />
                </mongodbStore>
            </persistence>
        </local-cache-configuration>

        <local-cache name="thumbs" configuration="photos-config">

        </local-cache>

        <local-cache name="medium-photo" configuration="photos-config">

        </local-cache>

        <local-cache name="localities" configuration="entries-config">

        </local-cache>

    </cache-container>

</infinispan>

from infinispan-cachestore-mongodb.

galderz avatar galderz commented on June 14, 2024

http://www.infinispan.org/schemas/infinispan-config-8.2.xsd does not include the mongodbStore store definition. That's in a separate schema file. I don't think we currently have any mongo db store schemas published but you can figure out which mongodb store version you are using, download its schema (e.g. for master this is located here) and reference it.

from infinispan-cachestore-mongodb.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.