1 45 package org.exolab.jms.server; 46 47 import org.apache.commons.logging.Log; 48 import org.apache.commons.logging.LogFactory; 49 50 import org.exolab.jms.service.ServiceManager; 51 import org.exolab.jms.config.Configuration; 52 53 54 66 public class EmbeddedJmsServer 67 extends JmsServer 68 implements Runnable { 69 70 73 private static final Log _log = LogFactory.getLog(EmbeddedJmsServer.class); 74 75 76 82 public EmbeddedJmsServer(Configuration config) throws ServerException { 83 super(config); 84 } 85 86 92 public EmbeddedJmsServer(String file) throws ServerException { 93 super(file); 94 } 95 96 103 public void run() { 104 try { 105 init(); 106 } catch (Exception exception) { 107 _log.error(exception, exception); 108 } 109 } 112 113 118 public ServiceManager getServiceManager() { 119 return _services; 120 } 121 122 } 123 | Popular Tags |