Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsRetrieve port and host from IConnectionProfile
https://www.eclipse.org/forums/index.php/mv/msg/187396/594454/#msg_594454
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?