mirror of
https://github.com/apache/openjpa.git
synced 2025-02-08 11:06:01 +00:00
Do not throw exception when failed to lookup JNDI, rather return null. Callers handle null
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@608009 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4fda4e9484
commit
82cd11cb19
@ -935,7 +935,11 @@ public class OpenJPAConfigurationImpl
|
|||||||
name = StringUtils.trimToNull(name);
|
name = StringUtils.trimToNull(name);
|
||||||
if (name == null)
|
if (name == null)
|
||||||
return null;
|
return null;
|
||||||
return Configurations.lookup(name);
|
try {
|
||||||
|
return Configurations.lookup(name);
|
||||||
|
} catch (Exception ex) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setConnection2UserName(String connection2UserName) {
|
public void setConnection2UserName(String connection2UserName) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user