🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.database
Article #379

Re: User Profile to Access DB

#379
From: 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
Technical Details
Message-ID: <xn0f25143fclvq000-kdean@www.teamb.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <45c8bc5c$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1073da,352e3f8a5da008cb
X-Google-Attributes: gid1073da,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Kevin Dean [TeamB]" <NkOdSePaAnM@datadevelopment.com>
Subject: Re: User Profile to Access DB
Newsgroups: borland.public.jbuilder.database
References:  <45c8bc5c$1@newsgroups.borland.com>
Organization: Dolphin Data Development Ltd.
User-Agent: XanaNews/1.18.1.6
X-Face: ":yn4zt^A_dn>6~{YJmu^B\'4w)e:apPM\VC=Dvf&*tASxX9|BYczkFd$xr.$vNSZ[3Uobrp]c4\+\l){!WQI.$]veP({HLd;CDYH?iN
Message-ID: <xn0f25143fclvq000-kdean@www.teamb.com>
X-Ref: newsgroups.borland.com ~XNS:0000070D
MIME-Version: 1.0
Content-Type: text/plain; format=flowed
NNTP-Posting-Host: 199.85.107.253
Date: 6 Feb 2007 11:22:59 -0800
X-Trace: newsgroups.borland.com 1170789779 199.85.107.253 (6 Feb 2007 11:22:59 -0800)
Lines: 16
X-Authenticated-User: kdean
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail