KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > jtests > beans > jca15 > Utility


1 /*
2  * Created on January 20, 2004
3  *
4  * Utility.java is part of a JUnit test suit to test
5  * J2EE Connector 1.5 as implemented by JOnAS.
6  */

7
8 package org.objectweb.jonas.jtests.beans.jca15;
9
10 import java.util.*;
11 import java.text.SimpleDateFormat JavaDoc;
12
13 import javax.resource.ResourceException JavaDoc;
14 import javax.resource.spi.*;
15 import javax.resource.spi.SecurityException JavaDoc;
16 import javax.resource.spi.security.*;
17 import javax.security.auth.Subject JavaDoc;
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 JavaDoc 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 JavaDoc msg) {
41     if (logger == null) {
42         logger = Log.getLogger("ersatz.resourceadapter");
43     }
44     logger.log(BasicLevel.DEBUG, msg);
45   }
46  
47
48 }
Popular Tags