cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Mayer <>
Subject Testing the connection
Date Tue, 10 Apr 2007 20:23:28 GMT
In my application, the user has the ability to switch between databases 
(for testing purposes). He gets a little dialog, types in 
user/password/db-name and under the hood, an appropriate
DataContext is built.

Works fine, but I want to test the correctness of what he typed in 
BEFORE the next query is performed.

So I could do that by getting the new DataSource and invoking 
getConnection() with an appropriate Exceptionhandling but that seems to 
be not very smart design.

Does anyone have a better idea?


View raw message