1 23 24 package com.sun.enterprise.jbi.serviceengine.config; 25 import com.sun.enterprise.jbi.serviceengine.ServiceEngineException; 26 import com.sun.enterprise.jbi.serviceengine.core.Bridge; 27 28 34 public class ComponentConfiguration { 35 36 40 private final String THREADPOOL = 41 "com.sun.enterprise.jbi.config.ThreadPool"; 42 43 private String BRIDGE_CLASS="com.sun.enterprise.jbi.serviceengine.bridge.AppServerBridge"; 44 45 51 public String getCommonThreadPoolName() { 52 return System.getProperty(THREADPOOL); 53 } 54 55 public Bridge getBridge() throws ServiceEngineException{ 56 try { 57 return (Bridge)Class.forName(BRIDGE_CLASS).newInstance(); 58 } catch(Exception e) { 59 throw new ServiceEngineException("Error initializing Bridge,cannot continue :" + e); 60 } 61 } 62 } 63 | Popular Tags |