On Mar 17, 2009, at 6:54 PM, bilbo0s wrote:
>
> OK,
>
> I built the new driver you pushed,
> works fine with failover.
>
> A couple of questions:
>
> Is it the case that I can use the DBTCP class
> to make a connection to more than 2 Mongos?
>
> For instance, if I have 1 Master and then a
> Slave that is configured as a Master for a
> third Slave, can I give the DBTCP constructor
> a list of 3 IP addresses?
I didn't think that MongoDB supports that mode yet - I believe that
you can only have a two-level replication structure.
>
> Secondly,
>
> What exactly is the difference between the
> Mongo Java Driver and XJDM? Since XJDM
> is unsupported, I am wondering what the
> intent and history of that driver is?
It's not "unsupported" as it's just not "10gen supported". It's an
independent open source project, and I'll support XJDM as I'm using it
in a few personal projects, and want to continue to explore support
for alternate languages on the JVM.
The history is simple. I wrote XJDM last October for a few reasons :
1) I was documenting BSON and the MongoDB wire protocol, and the best
way I found to be sure you grok something is to write code that does it.
2) There was no independent driver for java for MongoDB, as MongoDB
and Babble were tightly coupled, and the code that became the 10gen
supported driver was embedded in Babble and designed for JS support.
So I thought it would be nice to have a small Java driver that could
be used in any of the languages that run on the JVM, in the most
idiomatic way possible for those languages.
After Jan 5, when we decided to drop work on Babble and just focus on
MongoDB, the code from the appserver was pulled out and turned into
the "10gen supported" Java driver.
So I'll keep going with XJDM - it gives us an opportunity to
experiment with things, and if they work and feel right, bring them
back into the 10gen-supported driver.
>
> As usual, thank you for the patience you guys
> are showing.
I think that you are the one showing the most patience. Thanks for
that :)
geir