Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dtp-connect-dev] Where to get the shared connection?


A related question is how to get the catalog model. I have tried to create a SQL model connection using "org.eclipse.datatools.modelbase.sql.schema.Database" as the connection factory id but got a NullPointerException. SQL Dev Tools is on a tight schedule, so any help is highly appreciated!


Best Regards!

Max ( Hui ) Cao
Sr S/W Eng - Dev
Sybase, Inc. Shanghai, China
Tel: 86-21-68799918-3047




Hui.Cao@xxxxxxxxxx
Sent by: dtp-connect-dev-bounces@xxxxxxxxxxx

01/03/2006 03:34 PM

Please respond to
DTP Connectivity project development list <dtp-connect-dev@xxxxxxxxxxx>

To
dtp-connect-dev@xxxxxxxxxxx
cc
Subject
[dtp-connect-dev] Where to get the shared connection?






Hi,

       Is there any API for SQL Dev Tools to get the shared connection created by a connection profile? I see that ConnectionInfoImpl maintains a shared connection, but the ConnectionInfoImpl instance itself can only be accessed through IConnectionProfile.createConnection, which will cause IllegalStateException when called more than once.


Best Regards!

Max ( Hui ) Cao

DTP SQL Dev Tools committer
Sr S/W Eng - Dev
Sybase, Inc. Shanghai, China
_______________________________________________
dtp-connect-dev mailing list
dtp-connect-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dtp-connect-dev


Back to the top