How can I connect to a database on the web through netbeans/java
<p>I am developing a chat program in java for mobiles. I have to connect to a database that is located in my web host, so how should I connect to that db?</p>

<p>Thanks in advance :)</p>
