db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bilal haider <bilalhaide...@gmail.com>
Subject establishment of the connection
Date Mon, 14 Mar 2011 06:30:58 GMT

Hi i want to establish a connection with an existing db posdb.

                url = "jdbc:derby://" + "localhost" + ":" + "1527" + "/" +
"posdb"; 
		new ClientDriver();
		Connection connection = null; 
		try {

			connection = DriverManager.getConnection(url, "sa", "123");
			return true;
		
		}
		catch(Exception e)
		{
			System.out.println(e.getMessage());
			return false;
		}
Exception:
The application server rejected establishment of the connection.  An attempt
was made to access a database, posdb, which was not found.

-- 
View this message in context: http://old.nabble.com/establishment-of-the-connection-tp31141466p31141466.html
Sent from the Apache Derby Users mailing list archive at Nabble.com.


Mime
View raw message