How to Get Generic Connection String in Java?

Hi Experts,,
i m new in J2EE
before this i been working in .Net technology...
Well i have to make a web app....
in that have to connect to Oracle DB,
nowin .Net the Connection string was given in web.config...
and used every where else in application
and in future only web.config needed to be chnaged in case of any chnages in db connection

is this possible in Java if soo how can i do it...
i am using Sun Java Studio Create 2 as IDE....

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mayank SAssociate Director - Product EngineeringCommented:
You can store the connection-string in a properties-file or any config XML file as you have in .NET, or store it as a data-source in the application's configuration-file.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mayank SAssociate Director - Product EngineeringCommented:
For MySql, this defines the steps:
Mayank SAssociate Director - Product EngineeringCommented:
Ok, found a page on Sun's web-site too. Better read this one:
noshi316Author Commented:
okay i try the configuration file
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.