Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » Correct implementation of IConnectionFactory
Correct implementation of IConnectionFactory [message #634142] Wed, 20 October 2010 15:51 Go to next message
John Doyle is currently offline John Doyle
Messages: 12
Registered: March 2010
Junior Member
My project is relying upon the ConnectionProfiles provided in the enablement package for database connectivity. I've noted that all implementations of IConnectionFactory save one (SQMConnectionFactory) has what I consider a bad implementation of one of the createConnection methods. For example:

public IConnection createConnection(IConnectionProfile profile, String uid, String pwd) {
return createConnection(profile);
}

I assume this method is intended for the case where I have a profile that I know is missing credentials, and am in possession of the credentials. It obviously fails when called however, because the credentials I pass never get through.

Is there a reason for this that I'm missing, or is it just a bug that's been copied over and over?

thanks
~john
Re: Correct implementation of IConnectionFactory [message #634709 is a reply to message #634142] Fri, 22 October 2010 19:03 Go to previous message
Brian Fitzpatrick is currently offline Brian Fitzpatrick
Messages: 495
Registered: July 2009
Senior Member
Hey John...

Hmmm... Well, I wasn't responsible for the initial connectivity
framework, so I can't comment on the reasons behind the duplication, but
I can certainly look into it.

Do you have any additional info I could use to create a sample to
duplicate what you're seeing? Or a sample project/chunk of code I could
start from...

--Fitz

John Doyle wrote:
> My project is relying upon the ConnectionProfiles provided in the
> enablement package for database connectivity. I've noted that all
> implementations of IConnectionFactory save one (SQMConnectionFactory)
> has what I consider a bad implementation of one of the createConnection
> methods. For example:
>
> public IConnection createConnection(IConnectionProfile profile, String
> uid, String pwd) {
> return createConnection(profile);
> }
>
> I assume this method is intended for the case where I have a profile
> that I know is missing credentials, and am in possession of the
> credentials. It obviously fails when called however, because the
> credentials I pass never get through.
>
> Is there a reason for this that I'm missing, or is it just a bug that's
> been copied over and over?
>
> thanks
> ~john
Previous Topic:DTP 1.8.2 - regeneration of Sybase Ecore models and model code
Next Topic:Adding context sensitive menu items to the Data Source Explorer
Goto Forum:
  


Current Time: Thu Oct 30 16:45:30 GMT 2014

Powered by FUDForum. Page generated in 0.01599 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software