<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:54:18 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[JAVA-1316] Multiple Mongo Instances always have the same MongoOption Reference</title>
                <link>https://jira.mongodb.org/browse/JAVA-1316</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Team,&lt;/p&gt;

&lt;p&gt;I&apos;m trying to create two instance of Mongo with different MongoOptions as the need is to connect to two different database within the same mongo host but with different connection parameters. &lt;/p&gt;

&lt;p&gt;But only one instance of MongoOption is created and only one of the possible connection parameters are set as the other one gets overridden during the second Mongo instance initialization.&lt;/p&gt;

&lt;p&gt;Is there a way to create two different instances of MongoOptions?&lt;/p&gt;

&lt;p&gt;The configuration is given below.&lt;br/&gt;
&amp;lt;mongo:mongo replica-set=&quot;${mongo.host}&quot; id=&quot;apiMongo&quot;&amp;gt;&lt;br/&gt;
		&amp;lt;mongo:options connections-per-host=&quot;8&quot;&lt;br/&gt;
                   threads-allowed-to-block-for-connection-multiplier=&quot;2&quot;&lt;br/&gt;
                   connect-timeout=&quot;12000&quot;&lt;br/&gt;
                   max-wait-time=&quot;12000&quot;&lt;br/&gt;
                   auto-connect-retry=&quot;true&quot;  &lt;br/&gt;
                   socket-keep-alive=&quot;true&quot;&lt;br/&gt;
                   socket-timeout=&quot;120000&quot;&lt;br/&gt;
                   /&amp;gt;&lt;br/&gt;
&amp;lt;/mongo:mongo&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;mongo:mongo replica-set=&quot;${mongo.host}&quot; id=&quot;systemMongo&quot;&amp;gt;&lt;br/&gt;
		&amp;lt;mongo:options connections-per-host=&quot;8&quot;&lt;br/&gt;
                   threads-allowed-to-block-for-connection-multiplier=&quot;2&quot;&lt;br/&gt;
                   connect-timeout=&quot;2000&quot;&lt;br/&gt;
                   max-wait-time=&quot;2000&quot;&lt;br/&gt;
                   auto-connect-retry=&quot;true&quot;  &lt;br/&gt;
                   socket-keep-alive=&quot;true&quot;&lt;br/&gt;
                   socket-timeout=&quot;2000&quot;&lt;br/&gt;
                   /&amp;gt;&lt;br/&gt;
&amp;lt;/mongo:mongo&amp;gt;&lt;/p&gt;

&lt;p&gt;Two instances of Mongo is created and they both point to a single instance of MongoOptions. Is there a way to create multiple instances of MongoOption?&lt;/p&gt;</description>
                <environment>Software</environment>
        <key id="148225">JAVA-1316</key>
            <summary>Multiple Mongo Instances always have the same MongoOption Reference</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="enthusiast">Sulbigar Shanawaz</reporter>
                        <labels>
                            <label>driver</label>
                    </labels>
                <created>Mon, 21 Jul 2014 21:07:58 +0000</created>
                <updated>Wed, 11 Sep 2019 19:11:21 +0000</updated>
                            <resolved>Mon, 21 Jul 2014 21:34:24 +0000</resolved>
                                    <version>2.10.1</version>
                                                    <component>Connection Management</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="666802" author="enthusiast" created="Mon, 21 Jul 2014 21:35:19 +0000"  >&lt;p&gt;Sure. Thank You.&lt;/p&gt;</comment>
                            <comment id="666798" author="jeff.yemin" created="Mon, 21 Jul 2014 21:34:24 +0000"  >&lt;p&gt;No problem.  I&apos;ll close this ticket then, but please post again if there&apos;s anything else we can help with.&lt;/p&gt;</comment>
                            <comment id="666791" author="enthusiast" created="Mon, 21 Jul 2014 21:31:09 +0000"  >&lt;p&gt;Apologies, &lt;br/&gt;
I just figured that out. I&apos;m drafting a query there as well. But doing bit more research before I post there.&lt;/p&gt;

&lt;p&gt;Thank You for the assistance &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="666784" author="jeff.yemin" created="Mon, 21 Jul 2014 21:27:18 +0000"  >&lt;p&gt;This seems like more of a Spring question than a driver question to me.  Are you using Spring Data MongoDB?  Have you posted this question to &lt;a href=&quot;https://jira.spring.io/browse/DATAMONGO?&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jira.spring.io/browse/DATAMONGO?&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hs0o5j:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>128362</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>