1 7 8 package org.objectweb.jonas.jtests.beans.jca15; 9 10 import java.util.*; 11 import java.text.SimpleDateFormat ; 12 13 import javax.resource.ResourceException ; 14 import javax.resource.spi.*; 15 import javax.resource.spi.SecurityException ; 16 import javax.resource.spi.security.*; 17 import javax.security.auth.Subject ; 18 import javax.transaction.xa.*; 19 import org.objectweb.jonas.common.Log; 20 import org.objectweb.util.monolog.api.Logger; 21 import org.objectweb.util.monolog.api.BasicLevel; 22 23 24 28 public class Utility 29 { 30 31 private static Logger logger = null; 32 public static final String USER_TRANSACTION = "javax.transaction.UserTransaction"; 33 34 40 public static synchronized void log(String msg) { 41 if (logger == null) { 42 logger = Log.getLogger("ersatz.resourceadapter"); 43 } 44 logger.log(BasicLevel.DEBUG, msg); 45 } 46 47 48 } | Popular Tags |