Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.
This repository was archived by the owner on May 7, 2024. It is now read-only.

MongoDB mongouri #79

@mgrandb

Description

@mgrandb

Something that has confused me for over two years, say I make a standard connection to mongodb

MongoRegister( name="mongo", server="127.0.0.1", db="testdb" );

everything works fine, the pool closes after five mins of no activity and reconnects with a new call like it should, but if I add a mongouri

MongoRegister( name="mongo", server="127.0.0.1", db="testdb", mongouri="mongodb://127.0.0.1:27017/testdb" );

when the pool closes after five mins of no activity it will not reconnect! throwing an error

java.lang.IllegalStateException: state should be: open.

OpenBD nightly, ready to run on windows, latest Java 1.8

Does anyone else have this problem or am I doing something wrong?
Any help figuring this out would be greatly appreciated.

Mark.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions