From b0b6dc22a1156b400bc6648fb71e96490f43f2c3 Mon Sep 17 00:00:00 2001 From: antelder Date: Thu, 9 Oct 2008 12:25:04 +0000 Subject: 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 --- .../main/java/org/apache/tuscany/sca/core/work/Jsr237WorkScheduler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java/sca/modules/core/src') diff --git a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/work/Jsr237WorkScheduler.java b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/work/Jsr237WorkScheduler.java index 90c13e6da8..ffc34e7328 100644 --- a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/work/Jsr237WorkScheduler.java +++ b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/work/Jsr237WorkScheduler.java @@ -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) { -- cgit v1.2.3