Hi,
i need to read the database connection properties,driver class, username and password in java code...How can i read that using some properties....

See the API docs DatabaseMetaData. Good luck with the password, though. The JDBC Driver will not provide that info (or, at the very least, should not).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.