1 17 18 package org.objectweb.jac.aspects.distrans; 19 20 import javax.naming.NamingException ; 21 22 import org.objectweb.jotm.Jotm; 23 import org.objectweb.jotm.TraceTm; 24 25 32 public class JOTMHelper { 33 34 35 private static Jotm jotm; 36 37 public static Jotm get() { 38 39 if ( jotm != null ) 40 return jotm; 41 42 46 try { 47 jotm = new Jotm(true,false); 48 } catch (NamingException ne) { 49 ne.printStackTrace(); 50 System.exit(1); 51 } 52 TraceTm.configure(); 53 54 return jotm; 55 } 56 57 } 58 | Popular Tags |