Hi Everyone

I am trying to figure out how to write a code to connect my J2ME application to SQL DB. I used http it worked. But now i want to make the connection via a socket, and define this connection bit as an API, plus a DHCP network connection method be part of my defined API.
Any ideas? please help.