Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » Retrieve port and host from IConnectionProfile
Retrieve port and host from IConnectionProfile [message #594454] Tue, 03 March 2009 11:41
Eclipse User
Originally posted by: andi.hotz.adsl.li

Hello
I figured out a great deal of how DTP works with the help from this
newsgroup or on my own. Thanks.
There is still a question I can't find an answer. Based on an
IConnectionProfile I can retrieve the connection URL through
getBaseProperties(). For some databases this connection string contains
the a port number and a host. The connection URL is part of the
properties defined with the database connection. The exact format of the
connection URL varies with the vendors (i.e. MySQL vs. Oracle). What I
need in my application is the port number and the host name. Is there a
way to retrieve these from a IConnectionProfile or must I write a vendor
specific parser for the connection string?

Cheers

Andy
Previous Topic:DTP Webinar - March 5
Next Topic:Open Data Access (ODA) API Changes in Galileo
Goto Forum:
  


Current Time: Tue Jul 22 19:54:13 EDT 2014

Powered by FUDForum. Page generated in 0.01831 seconds