Suseendran P
Suseendran P

Reputation: 557

Java-mongodb driver for Java1.2 or Java1.5

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

Upvotes: 0

Views: 287

Answers (2)

Trisha
Trisha

Reputation: 3931

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.

Upvotes: 1

Peter Lawrey
Peter Lawrey

Reputation: 533472

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.

Upvotes: 2

Related Questions