File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes connect remotely to database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

connect remotely to database

sherif hathout

Joined: Nov 02, 2004
Posts: 18
please, I want to connect remotely to acertain DB on a server using hostname and port number. please it's urgent.

this code throws a SQLException(No suitable driver)

Connection con = DriverManager.getConnection("jdbc b2://host:50002/DBname", "user", "password");
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60794

Duplicate of this post.

Please do not cross-post the same question in multiple forums.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: connect remotely to database
Similar Threads
VPN service
JBoss and WMQ 7 JCA connection issue
Uncommon Exception
Naming Exception - Error accessing repository
how to post picture