Correct implementation of IConnectionFactory [message #634142] |
Wed, 20 October 2010 11:51  |
Eclipse User |
|
|
|
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 15:03  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02665 seconds