Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / October 2005

Tip: Looking for answers? Try searching our database.

Change the username and password of a connection...

Thread view: 
gotostudy - 09 Oct 2005 11:00 GMT
Hi,all.
  Can a connection be modified to change the username and password? I
have got a connection, it is better to modify it with new username and
password than creating a new one, for some special use.
Bjorn Abelli - 09 Oct 2005 14:04 GMT
"gotostudy" wrote...

> Can a connection be modified to change the username and password?
> I have got a connection, it is better to modify it with new username
> and password than creating a new one, for some special use.

It's not a requisite for a Connection to be able to do so (i.e. not
specified in the interface).

However, I believe some drivers have it implemented in their Connection
implementations.

To know if it's possible or not, you need to check the documentation for the
specific driver, or rather what it says about its Connection implementation.
If it *is* possible, you'll probably need to cast the Connection object to
the specifik type before you can use any "setUser" or "setPassword" on it.

// Bjorn A


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.