Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[dtp-dev] New Managed Connection APIs in Connectivity

Hey all,

I've added support to connection profiles for managing shared connections.
Connection profile instances will now maintain a connection for each
connection factory registered to its profile type, excluding the "ping"
connection factory.  These connections can be accessed through
IConnectionProfile.getManagedConnection(), passing the factory type as the
parameter (e.g. java.sql.Connection).  This method returns an
IManagedConnection object responsible for managing the connection.  Clients
can register listeners with managed connections so they may be informed of
life cycle events affecting the connection (e.g. opened, closed, modified,
etc.).  I've documented the public APIs, but please feel free to post any
questions you may have.

I've also reworked the code that creates and closes the connections.
Because of this change, you may experience some strange UI behavior when
errors occur.  I have opened a defect with the platform team to address the
issue (basically the jobs error dialog is lost for the remainder of the
workbench's execution).

I've also improved the error reporting.  With the exception of the defect
noted above, errors will be generated in the problems view after failed
connection attempts.  Errors and exceptions are also written out to the
log.

I still need to modify the base content provider classes to use the managed
connections and need to modify the auto-connect functionality
appropriately.

Happy coding,
Rob



Back to the top