DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Robin Zhang
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus Store MongoDB

Override the default MongoOptions(Connection Pool)

Created: 01/Dec/13 11:44 AM   Updated: 09/Dec/13 07:48 PM   Resolved: 01/Dec/13 07:09 PM
Component/s: None
Affects Version/s: 3.2.4
Fix Version/s: 3.2.6

File Attachments: 1. Text File (2 kB)

Environment: JDK1.6+ Linux CentOS 6

Forum Thread URL:,7630
Datastore: MongoDB

 Description  « Hide
for users to be able to override MongoOptions(Connection Pool)

Robin Zhang added a comment - 01/Dec/13 12:10 PM
this patch, provid a way of overriding the MogonOptions(for Mongo connection pool option)

After this patch applied, you need add the properties in persistence.xml(JPA) list below:
    <property name="datanucleus.mongodb.connectionsPerHost" value="100"/>
    <property name="datanucleus.mongodb.threadsAllowedToBlockForConnectionMultiplier" value="50"/>

Robin Zhang made changes - 01/Dec/13 12:10 PM
Field Original Value New Value
Attachment [ 12036 ]
Andy Jefferson added a comment - 01/Dec/13 07:09 PM
Patch applied to SVN trunk, with fix to formatting, removal of "import *", and properties added to plugin.xml. Thanks!

Andy Jefferson made changes - 01/Dec/13 07:09 PM
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 3.2.6 [ 12055 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 09/Dec/13 07:48 PM
Status Resolved [ 5 ] Closed [ 6 ]