Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 6th, 2003, 09:23 AM
Registered User
 
Join Date: Jun 2003
Location: Hannover, Low Sachsony, Germany.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default DataSource

Hallo everybody,

I get a DataSource-Instance using ServiceLocator Pattern. I use a J2EE-Server. When getting a Connection from DataSource I use a following constructor datasource.getConnection(user, password).:)

But on this place I always get an exception Application cannot override username/password specified in resource reference jdbc/dbname :(

Could somebody explain me how can I avoid this problem. I have to use different databases and it is required that passwords were handed over on request through the user.

greetings
Nadja:)
Reply With Quote
  #2 (permalink)  
Old June 8th, 2003, 08:45 PM
Registered User
 
Join Date: Jun 2003
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Perhaps you could double check your connection URL... what DB you are using?

Thanks

Neo Gigs
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataSource suhas_feb BOOK: Professional Jakarta Struts 1 June 19th, 2007 09:46 PM
Object datasource VS DataSource SoftMind BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 4 July 27th, 2006 10:44 PM
Re-link to new datasource tready Excel VBA 0 November 9th, 2005 09:51 AM
No datasource property sadermine Access 2 August 11th, 2005 05:55 PM
ListBox DataSource jugomkd C# 2 October 9th, 2004 11:30 PM



All times are GMT -4. The time now is 11:30 PM.


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