01:/*
02: * Created on January 20, 2004
03: *
04: * Utility.java is part of a JUnit test suit to test
05: * J2EE Connector 1.5 as implemented by JOnAS.
06: */
07:
08:package org.objectweb.jonas.jtests.beans.jca15;
09:
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:/** <p>This class contains the support methods for the
25: * JOnAS JCA1.5 test suite
26: *
27:**/
28:public class Utility
29:{
30:
31: private static Logger logger = null;
32: public static final String USER_TRANSACTION = "javax.transaction.UserTransaction";
33:
34: /**
35: * Write a JOnAS log record
36: *
37: * @param msg display this message in log
38: *
39: */
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:}
|