| Summary: | JNDI data source take design time username/pass | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Lin Zhu <lzhu> |
| Component: | BIRT | Assignee: | Bin Feng <bin.feng> |
| Status: | VERIFIED FIXED | QA Contact: | Maggie Shen <lshen> |
| Severity: | normal | ||
| Priority: | P3 | CC: | bin.feng, bluesoldier |
| Version: | 3.7.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 353280 | ||
|
Description
Lin Zhu
Currently while opening JNDI connection, Datasource.getConnection(String, String) with user credential is use to make initial connection attempt; While the initial attempt failed, attempt Datasource.getConnection() without user credential. This is not a problem for design time. In runtime environment, username/password usually differs from design time; Opening a JNDI connection against application server usually does not require using username/passwords. According to the requirement above, the process of getting JNDI connection is changed as below: 1. Attemp obtaining connection by Datasource.getConnection() and catch any exception. 2. If Step#1 failed, try obtaining connection by Datasource.getConnection(String, String) 3. If all above failed, try obtaining connection by JDBC URL. Fixed verified on build 3.7.2.v20111107-1411. |