[jboss-cvs] JBossAS SVN: r58391 - trunk/testsuite/src/main/org/jboss/test/cmp2/cacheinvalidation/ejb
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Nov 15 07:58:21 EST 2006
Author: alex.loubyansky at jboss.com
Date: 2006-11-15 07:58:19 -0500 (Wed, 15 Nov 2006)
New Revision: 58391
Modified:
trunk/testsuite/src/main/org/jboss/test/cmp2/cacheinvalidation/ejb/FacadeSessionBean.java
Log:
cleanup logging
Modified: trunk/testsuite/src/main/org/jboss/test/cmp2/cacheinvalidation/ejb/FacadeSessionBean.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/cmp2/cacheinvalidation/ejb/FacadeSessionBean.java 2006-11-15 12:57:49 UTC (rev 58390)
+++ trunk/testsuite/src/main/org/jboss/test/cmp2/cacheinvalidation/ejb/FacadeSessionBean.java 2006-11-15 12:58:19 UTC (rev 58391)
@@ -52,16 +52,11 @@
*/
public void setup() throws Exception
{
- final long startTime = System.currentTimeMillis();
- log.debug("SETUP>");
-
CLocal c = getCLocalHome("CRWLocal").create(new Long(1));
c.setFirstName("Avoka");
ALocal a = getALocalHome("ARWLocal").create(new Long(2), "Ataka");
a.setC(c);
-
- log.debug("SETUP> done in " + (System.currentTimeMillis() - startTime) + " ms.");
}
/**
@@ -70,9 +65,6 @@
*/
public void tearDown() throws Exception
{
- final long startTime = System.currentTimeMillis();
- log.info("TEAR DOWN>");
-
try
{
CLocal c = getCLocalHome("CRWLocal").findByPrimaryKey(new Long(1));
@@ -90,8 +82,6 @@
catch(FinderException e)
{
}
-
- log.info("TEAR DOWN> done in " + (System.currentTimeMillis() - startTime) + " ms.");
}
/**
@@ -100,16 +90,11 @@
*/
public String readFirstName(String jndiName, Long id) throws Exception
{
- final long startTime = System.currentTimeMillis();
- log.info("READ> jndiName=" + jndiName);
-
final CLocalHome ch = (CLocalHome) getHome(jndiName);
CLocal c = ch.findByPrimaryKey(id);
final String firstName = c.getFirstName();
- log.info(jndiName + ".name=" + firstName);
-
- log.info("READ> jndiName=" + jndiName + " done in " + (System.currentTimeMillis() - startTime) + " ms.");
+ log.debug(jndiName + ".name=" + firstName);
return firstName;
}
@@ -119,16 +104,11 @@
*/
public void writeFirstName(String jndiName, Long id, String name) throws Exception
{
- final long startTime = System.currentTimeMillis();
- log.info("WRITE> jndiName=" + jndiName);
-
final CLocalHome ch = (CLocalHome) getHome(jndiName);
CLocal c = ch.findByPrimaryKey(id);
c.setFirstName(name);
- log.info(jndiName + ".name=" + c.getFirstName());
-
- log.info("WRITE> jndiName=" + jndiName + " done in " + (System.currentTimeMillis() - startTime) + " ms.");
+ log.debug(jndiName + ".name=" + c.getFirstName());
}
/**
@@ -137,16 +117,11 @@
*/
public String readRelatedAFirstName(String jndiName, Long id) throws Exception
{
- final long startTime = System.currentTimeMillis();
- log.info("READ RELATED> jndiName=" + jndiName);
-
final CLocalHome ch = (CLocalHome) getHome(jndiName);
CLocal c = ch.findByPrimaryKey(id);
final String firstName = c.getA() == null ? null : c.getA().getName();
- log.info(jndiName + ".a.name=" + firstName);
-
- log.info("READ RELATED> jndiName=" + jndiName + " done in " + (System.currentTimeMillis() - startTime) + " ms.");
+ log.debug(jndiName + ".a.name=" + firstName);
return firstName;
}
@@ -156,14 +131,9 @@
*/
public void removeA(String jndiName, Long id) throws Exception
{
- final long startTime = System.currentTimeMillis();
- log.info("REMOVE> jndiName=" + jndiName);
-
final ALocalHome ah = (ALocalHome) getHome(jndiName);
ALocal a = ah.findByPrimaryKey(id);
a.remove();
-
- log.info("REMOVE> jndiName=" + jndiName + " done in " + (System.currentTimeMillis() - startTime) + " ms.");
}
// SessionBean implementation
More information about the jboss-cvs-commits
mailing list