Bugzilla Version 2.16.7
Bugzilla Bug 1785
  JDO DataSource configuration using a Properties collection
     Query page      Enter new bug
Bug#: 1785   Platform:   Reporter: martin-fuchs at gmx dot net (Martin Fuchs)
Product:   OS:   Add CC:
Component:   Version:   CC:
Status: CLOSED   Priority:  
Resolution: FIXED   Severity:  
Assigned To: werner dot guttmann at gmx dot net (Werner Guttmann)   Target Milestone:  

Attachment Type Modified Status Actions
proposed patch patch 2004-11-06 03:55 none Edit
JUnit tests for JdoConfFactory patch 2004-11-11 14:37 none Edit
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 1785 depends on: Show dependency tree
Show dependency graph
Bug 1785 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments:

Reopen bug

View Bug Activity   |   Format For Printing

Description: Opened: 2004-11-06 03:48

The attached patch allows to configure JDO using a JDBC DataSource by providing 
the configuration parameters using a Properties collection.

------- Additional Comment #1 From Martin Fuchs 2004-11-06 03:55 -------
Created an attachment (id=764)
proposed patch

The idea is to allow configuration in a similary way like with JDBC 3.0.

------- Additional Comment #2 From Werner Guttmann 2004-11-10 14:29 -------
Martin, can I please ask you to amend the CTF test case as well (in case there
is one already). 

------- Additional Comment #3 From Martin Fuchs 2004-11-11 14:37 -------
Created an attachment (id=766)
JUnit tests for JdoConfFactory

Well, this is a bit difficult. The JDO-CTF internally configures the database
connection, so I can't use it to test JdoConfFactory.
But I can provide you with JUnit test cases in this patch file. The test class 
is configured to use an Oracle Database, but can be change without problems to
use other drivers. (see the string constants at the top)

------- Additional Comment #4 From Werner Guttmann 2004-11-12 00:53 -------
No problem, Martin, as you can add 'independent' JUnit test cases to src/tests, 
i.e. test cases that are not part of the test suite. There's already some at 

------- Additional Comment #5 From Werner Guttmann 2004-11-29 03:36 -------
Patch (code only) applied as provided. Martin, I decided not to include the test
case as it stands, for the reasons described above. And I didn't want to include
it as a simple JUnit test case either, as this would imply creating new config
files, which I don't think is ideal. Iow, can we please create a new bug report
for just the test case ?

------- Additional Comment #6 From Werner Guttmann 2004-11-29 03:37 -------
Well, well .. setting the bug state to 'FIXED' ... ;-).

     Query page      Enter new bug
This is Bugzilla: the Mozilla bug system. For more information about what Bugzilla is and what it can do, see bugzilla.org.
Actions: New | Query | bug # | Reports   New Account | Log In