Wrox Programmer Forums
| 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 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 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:)
 
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




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





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