Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package gwt.registration.server;
- import java.sql.Connection;
- import java.sql.DriverManager;
- import java.sql.SQLException;
- public class UserAdmin {
- private static Connection con = null;
- private final static String host = "asgard.swp2010.de";
- private final static String db = "db";
- private final static String user = "user";
- private final static String pw = "pw";
- public UserAdmin() throws SQLException {
- if(con==null) {
- con = DriverManager.getConnection("jdbc:postgresql://"+host+"/"+db, user, pw);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement