Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Servlets
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Servlets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 15th, 2004, 09:16 AM
Authorized User
 
Join Date: Jun 2003
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default Java Properties file

Hi,

I'm doing some servlet development at the moment.
I have been told to use properties file for database connection with jdbc.

Does anyone have any info on this? Tutorial or sample code would be helpful too.

Thanks
 
Old July 19th, 2004, 08:51 PM
Authorized User
 
Join Date: Jul 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to yuji_chen
Default

We are getting the connection string from properties file in our program is to avoid recompile the java file if we have make any changes in the connection. To do that, u can use the resource bundle class provide by sun to read the file and use it thoroughly in ur program.

HTH






Similar Threads
Thread Thread Starter Forum Replies Last Post
java.lang.RuntimeException: System properties file mshah101 Apache Tomcat 1 November 22nd, 2007 12:17 AM
Finding the properties of a file BrianWren VB.NET 1 August 6th, 2005 12:58 PM
Finding the properties of a file BrianWren Pro VB.NET 2002/2003 0 July 20th, 2005 11:38 AM
Accessing properties file outside jar file anand_indya J2EE 0 December 8th, 2004 06:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.