[jboss-cvs] JBossAS SVN: r64676 - trunk/tomcat/src/main/org/jboss/web/tomcat/service/session.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sat Aug 18 10:56:20 EDT 2007
Author: bstansberry at jboss.com
Date: 2007-08-18 10:56:20 -0400 (Sat, 18 Aug 2007)
New Revision: 64676
Modified:
trunk/tomcat/src/main/org/jboss/web/tomcat/service/session/SessionSerializationFactory.java
Log:
Remove per-call logging
Modified: trunk/tomcat/src/main/org/jboss/web/tomcat/service/session/SessionSerializationFactory.java
===================================================================
--- trunk/tomcat/src/main/org/jboss/web/tomcat/service/session/SessionSerializationFactory.java 2007-08-18 14:41:53 UTC (rev 64675)
+++ trunk/tomcat/src/main/org/jboss/web/tomcat/service/session/SessionSerializationFactory.java 2007-08-18 14:56:20 UTC (rev 64676)
@@ -54,42 +54,37 @@
{
String useJBossSerializationStr = System.getProperty("session.serialization.jboss", "false");
useJBossSerialization = Boolean.valueOf(useJBossSerializationStr).booleanValue();
+ try
+ {
+ if (useJBossSerialization)
+ {
+ log_.debug("Using JBossSerialization for web session replication");
+ }
+ }
+ catch (Throwable ignored)
+ {
+ // we don't fail a static initializer due to a debug log stmt
+ }
}
public static ObjectOutputStream createObjectOutputStream(OutputStream out) throws IOException
{
- if (log_.isDebugEnabled())
- {
- log_.debug("createObjectOutputStream using JBossSerialization = " + useJBossSerialization);
- }
- return useJBossSerialization ? new JBossObjectOutputStreamSharedTree(out) : new MarshalledValueOutputStream(out);
+ return useJBossSerialization ? new JBossObjectOutputStreamSharedTree(out) : new MarshalledValueOutputStream(out);
}
public static ObjectInputStream createObjectInputStream(byte[] bytes) throws IOException
{
- if (log_.isDebugEnabled())
- {
- log_.debug("createObjectInputStream using JBossSerialization = " + useJBossSerialization);
- }
- ByteArrayInputStream in = new ByteArrayInputStream(bytes);
- return useJBossSerialization ? new JBossObjectInputStreamSharedTree(in) : new MarshalledValueInputStream(in);
+ ByteArrayInputStream in = new ByteArrayInputStream(bytes);
+ return useJBossSerialization ? new JBossObjectInputStreamSharedTree(in) : new MarshalledValueInputStream(in);
}
public static MarshalledValue createMarshalledValue(Object o) throws IOException
{
- if (log_.isDebugEnabled())
- {
- log_.debug("createMarshalledValue using JBossSerialization = " + useJBossSerialization);
- }
return new MarshalledValue (o);
}
public static MarshalledObject createMarshalledObject(Object o) throws IOException
{
- if (log_.isDebugEnabled())
- {
- log_.debug("createMarshalledObject using JBossSerialization = " + useJBossSerialization);
- }
return new MarshalledObject(o);
}
More information about the jboss-cvs-commits
mailing list