🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.database
2 messages
2 total messages Started by P Tue, 06 Feb 2007 17:35
User Profile to Access DB
#378
Author: P
Date: Tue, 06 Feb 2007 17:35
6 lines
1099 bytes
Hello,
   I wish to access a profile file located on the local machine, and use that info for loggin into a database. I do not want to make connecting to the DB automatic by coding the connection into JBuilder, each user will have different rights and different Databases to access. Does anyone know how to do such a thing?

Thank you,
pez
Re: User Profile to Access DB
#379
Author: Kevin Dean [TeamB]
Date: Tue, 06 Feb 2007 19:22
16 lines
1738 bytes
P wrote:

>
>Hello,
>    I wish to access a profile file located on the local machine, and use that info for loggin into a database. I do not want to make connecting to the DB automatic by coding the connection into JBuilder, each user will have different rights and different Databases to access. Does anyone know how to do such a thing?

The best bet is to store the database URL in a properties file.  See the 
java.util.Properties class for details.

-- 
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads