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:
antelder 2008-10-09 12:25:04 +00:00
parent efe3363a81
commit b0b6dc22a1

View file

@ -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) {