Fix to catch any errors when the container running tuscany doesn't have a jndi environment
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@703152 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
efe3363a81
commit
b0b6dc22a1
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ public class Jsr237WorkScheduler implements WorkScheduler {
|
|||
try {
|
||||
InitialContext ctx = new InitialContext();
|
||||
jsr237WorkManager = (WorkManager)ctx.lookup("java:comp/env/wm/TuscanyWorkManager");
|
||||
} catch (NamingException e) {
|
||||
} catch (Throwable e) {
|
||||
// ignore
|
||||
}
|
||||
if (jsr237WorkManager == null) {
|
||||
|
|
Loading…
Reference in a new issue