0
votes

Hi..
In my project i'm using MongoDB and Java. For that i have download java-mongo driver mongo-2.10.1.jar.

Now my problem is, JRE restriction.
In my project we are using Java1.2 for particular packages and Java1.5 for others. I'm not sure about all the code in mongo-2.10.1 using Java1.2 at max java1.5.

Can any one suggest me which version of java-mongo driver uses java1.2 as max java1.5

Thanks

2
You mean you are really using the ancient Java version 1.2, a Java version from 1998, in a production environment? Why? MongoDB, like almost all other current Java software, does not support Java 1.2. - Jesper
Exactly clients are still using java1.2 in production env. In java code also we are using java1.2 and java1.5. Any of the monog-java driver release support java1.5(but not beyond that)..?? - Suseendran P
Oracle/Sun hasn't given free support supported Java 5.0 for more than five years, you must have more resources than they do :P - Peter Lawrey
Java 1.2 windows client was developed for Windows 95. Are they still using that too? - Peter Lawrey

2 Answers

2
votes

The best solution in your situation is to use a proxy or gateway service.

This way you Java 1.2 client can contact a Java 7 service which talks to the database. I suggest you do this anyway to cache and centralise you service. Passing too much logic to such old, under powered client is a bad idea. IMHO.

1
votes

The MongoDB Java driver supports Java 1.5 and above only. The versions of the Java driver from next year onwards will only support Java 1.6 and above. Peter's answer is the best solution to your problem.