[SJN-69] Does not load DataSource correctly when the name comes from the filename of the .properties/.xml file. | |
| Status: | Closed |
| Project: | Simple-JNDI |
| Component/s: | |
| Affects Version/s: | 0.11 |
| Fix Version/s: | 0.11.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Mike Hill | Assignee: | Henri Yandell |
| Resolution: | Fixed | ||
| Environment: | j2se 5 | ||
| Description |
| When my DataSource was configured in file called JFit.properties, trying to retrieve the DataSource from JNDI returned null which led to NullPointerException when getting the connection. Had to rename the file to jdbc.properties and have the name of the DataSource as a prefix inside each line of jdbc.properties. |
| Comment by bayard [ Wed, 28 Sep 2005 20:46:16 -0700 (PDT) ] |
| Test created to prove it fails, and now fixed. Took a surprising chunk of work to get solved. |