tags:

views:

148

answers:

2

Is there any library that would simplify the task of connecting to a server with JDBC? Something that can take a string like "mysql://username:password@host/db", similar to what PHP MDB2 do: http://pear.php.net/package/MDB2/docs/latest/MDB2/MDB2.html#methodparseDSN

I'm not interested on any ORM or complex library such as Spring as I'm not even doing this from the Java language (but still on the JVM).

A: 

Just read the jdbc javadoc first...

Gilles
People that downvote should think about the RTFM... Not even able to find a simple answer that is in the official doc is just pathetic. More downvotes please, need to beat my previous attempt.
Gilles
+1  A: 

This tutorial on java.sun.com might help:

http://java.sun.com/docs/books/tutorial/jdbc/basics/connecting.html

If you are looking for an abstraction layer to make working with databases easier - Hibernate is a widely used library - but it does take some effort to climb the learning curve.

http://www.hibernate.org/

Kelvin Meeks