JBoss Cache SVN: r6681 - benchmarks/benchmark-fwk/trunk/conf.
by jbosscache-commits@lists.jboss.org
Author: mircea.markus
Date: 2008-09-02 13:13:03 -0400 (Tue, 02 Sep 2008)
New Revision: 6681
Modified:
benchmarks/benchmark-fwk/trunk/conf/email.properties
Log:
dos2unix-ed
Modified: benchmarks/benchmark-fwk/trunk/conf/email.properties
===================================================================
--- benchmarks/benchmark-fwk/trunk/conf/email.properties 2008-09-02 17:11:49 UTC (rev 6680)
+++ benchmarks/benchmark-fwk/trunk/conf/email.properties 2008-09-02 17:13:03 UTC (rev 6681)
@@ -1,12 +1,12 @@
-mail.transport.protocol=smtp
-mail.host=smtp.gmail.com
-mail.smtp.auth=true
-mail.smtp.port=465
-mail.smtp.socketFactory.port=465
-mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
-mail.smtp.socketFactory.fallback=false
-mail.smtp.quitwait=false
-
-
-mail.smtp.user=notify.by.email(a)gmail.com
-mail.smtp.password=******
+mail.transport.protocol=smtp
+mail.host=smtp.gmail.com
+mail.smtp.auth=true
+mail.smtp.port=465
+mail.smtp.socketFactory.port=465
+mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
+mail.smtp.socketFactory.fallback=false
+mail.smtp.quitwait=false
+
+
+mail.smtp.user=notify.by.email(a)gmail.com
+mail.smtp.password=******
15 years, 7 months
JBoss Cache SVN: r6680 - benchmarks/benchmark-fwk/trunk/lib.
by jbosscache-commits@lists.jboss.org
Author: mircea.markus
Date: 2008-09-02 13:11:49 -0400 (Tue, 02 Sep 2008)
New Revision: 6680
Added:
benchmarks/benchmark-fwk/trunk/lib/activation.jar
benchmarks/benchmark-fwk/trunk/lib/dsn.jar
benchmarks/benchmark-fwk/trunk/lib/imap.jar
benchmarks/benchmark-fwk/trunk/lib/mail.jar
benchmarks/benchmark-fwk/trunk/lib/mailapi.jar
benchmarks/benchmark-fwk/trunk/lib/pop3.jar
benchmarks/benchmark-fwk/trunk/lib/smtp.jar
Log:
Added: benchmarks/benchmark-fwk/trunk/lib/activation.jar
===================================================================
(Binary files differ)
Property changes on: benchmarks/benchmark-fwk/trunk/lib/activation.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: benchmarks/benchmark-fwk/trunk/lib/dsn.jar
===================================================================
(Binary files differ)
Property changes on: benchmarks/benchmark-fwk/trunk/lib/dsn.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: benchmarks/benchmark-fwk/trunk/lib/imap.jar
===================================================================
(Binary files differ)
Property changes on: benchmarks/benchmark-fwk/trunk/lib/imap.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: benchmarks/benchmark-fwk/trunk/lib/mail.jar
===================================================================
(Binary files differ)
Property changes on: benchmarks/benchmark-fwk/trunk/lib/mail.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: benchmarks/benchmark-fwk/trunk/lib/mailapi.jar
===================================================================
(Binary files differ)
Property changes on: benchmarks/benchmark-fwk/trunk/lib/mailapi.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: benchmarks/benchmark-fwk/trunk/lib/pop3.jar
===================================================================
(Binary files differ)
Property changes on: benchmarks/benchmark-fwk/trunk/lib/pop3.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: benchmarks/benchmark-fwk/trunk/lib/smtp.jar
===================================================================
(Binary files differ)
Property changes on: benchmarks/benchmark-fwk/trunk/lib/smtp.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
15 years, 7 months
JBoss Cache SVN: r6679 - benchmarks/benchmark-fwk/trunk/conf.
by jbosscache-commits@lists.jboss.org
Author: mircea.markus
Date: 2008-09-02 13:09:11 -0400 (Tue, 02 Sep 2008)
New Revision: 6679
Modified:
benchmarks/benchmark-fwk/trunk/conf/log4j.xml
Log:
added emaild notification
Modified: benchmarks/benchmark-fwk/trunk/conf/log4j.xml
===================================================================
--- benchmarks/benchmark-fwk/trunk/conf/log4j.xml 2008-09-02 17:08:54 UTC (rev 6678)
+++ benchmarks/benchmark-fwk/trunk/conf/log4j.xml 2008-09-02 17:09:11 UTC (rev 6679)
@@ -35,7 +35,7 @@
<param name="To" value="mircea.markus(a)jboss.com"/>
<param name="SMTPHost" value="smtp.gmail.com"/>
<param name="SMTPPort" value="465"/>
- <param name="Subject" value="Cache Bench notification1"/>
+ <param name="Subject" value="Cache Bench notification"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
</layout>
15 years, 7 months
JBoss Cache SVN: r6678 - in benchmarks/benchmark-fwk/trunk: src/org/cachebench/utils and 1 other directory.
by jbosscache-commits@lists.jboss.org
Author: mircea.markus
Date: 2008-09-02 13:08:54 -0400 (Tue, 02 Sep 2008)
New Revision: 6678
Added:
benchmarks/benchmark-fwk/trunk/conf/email.properties
benchmarks/benchmark-fwk/trunk/src/org/cachebench/utils/SMTPAppender.java
Modified:
benchmarks/benchmark-fwk/trunk/conf/log4j.xml
benchmarks/benchmark-fwk/trunk/src/org/cachebench/utils/PerNodeRollingFileAppender.java
Log:
added emaild notification
Added: benchmarks/benchmark-fwk/trunk/conf/email.properties
===================================================================
--- benchmarks/benchmark-fwk/trunk/conf/email.properties (rev 0)
+++ benchmarks/benchmark-fwk/trunk/conf/email.properties 2008-09-02 17:08:54 UTC (rev 6678)
@@ -0,0 +1,12 @@
+mail.transport.protocol=smtp
+mail.host=smtp.gmail.com
+mail.smtp.auth=true
+mail.smtp.port=465
+mail.smtp.socketFactory.port=465
+mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
+mail.smtp.socketFactory.fallback=false
+mail.smtp.quitwait=false
+
+
+mail.smtp.user=notify.by.email(a)gmail.com
+mail.smtp.password=******
Modified: benchmarks/benchmark-fwk/trunk/conf/log4j.xml
===================================================================
--- benchmarks/benchmark-fwk/trunk/conf/log4j.xml 2008-09-02 13:44:35 UTC (rev 6677)
+++ benchmarks/benchmark-fwk/trunk/conf/log4j.xml 2008-09-02 17:08:54 UTC (rev 6678)
@@ -5,7 +5,7 @@
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<!-- The list of appenders -->
<!-- The rolling file appender -->
- <appender name="FILE" class="org.apache.log4j.RollingFileAppender">
+ <appender name="FILE" class="org.cachebench.utils.PerNodeRollingFileAppender">
<!--<appender name="FILE" class="org.cachebench.utils.PerNodeRollingFileAppender">-->
<param name="File" value="cachebench.log"/>
<param name="Append" value="true"/>
@@ -27,6 +27,20 @@
</layout>
</appender>
+ <appender name="EMAIL" class="org.cachebench.utils.SMTPAppender">
+ <param name="Threshold" value="WARN"/>
+ <param name="BufferSize" value="1"/>
+ <param name="From" value="notify.by.email(a)gmail.com"/>
+ <param name="From" value="notify.by.email(a)gmail.com"/>
+ <param name="To" value="mircea.markus(a)jboss.com"/>
+ <param name="SMTPHost" value="smtp.gmail.com"/>
+ <param name="SMTPPort" value="465"/>
+ <param name="Subject" value="Cache Bench notification1"/>
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
+ </layout>
+ </appender>
+
<!-- The list of Categories-->
<category name="ClusterConfigurationCheck">
<priority value="INFO"/>
@@ -42,6 +56,7 @@
<category name="org.cachebench">
<priority value="INFO"/>
+ <appender-ref ref="EMAIL"/>
</category>
<category name="org.cachebench.reportgenerators">
Modified: benchmarks/benchmark-fwk/trunk/src/org/cachebench/utils/PerNodeRollingFileAppender.java
===================================================================
--- benchmarks/benchmark-fwk/trunk/src/org/cachebench/utils/PerNodeRollingFileAppender.java 2008-09-02 13:44:35 UTC (rev 6677)
+++ benchmarks/benchmark-fwk/trunk/src/org/cachebench/utils/PerNodeRollingFileAppender.java 2008-09-02 17:08:54 UTC (rev 6678)
@@ -39,6 +39,15 @@
}
private String appendNodeIndex(String s) {
- return conf.getCurrentNodeIndex() + "_" + s;
+ try
+ {
+ return conf.getCurrentNodeIndex() + "_" + s;
+ } catch (Throwable e)//ignore here, we're just a logger
+ {
+ System.out.println("exception occued while trying to index the file name: " + e.getMessage());
+ return s;
+ }
}
+
+
}
Added: benchmarks/benchmark-fwk/trunk/src/org/cachebench/utils/SMTPAppender.java
===================================================================
--- benchmarks/benchmark-fwk/trunk/src/org/cachebench/utils/SMTPAppender.java (rev 0)
+++ benchmarks/benchmark-fwk/trunk/src/org/cachebench/utils/SMTPAppender.java 2008-09-02 17:08:54 UTC (rev 6678)
@@ -0,0 +1,97 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.cachebench.utils;
+
+import org.apache.log4j.helpers.LogLog;
+import org.apache.log4j.spi.TriggeringEventEvaluator;
+import org.apache.log4j.spi.LoggingEvent;
+
+import javax.mail.Authenticator;
+import javax.mail.Message;
+import javax.mail.PasswordAuthentication;
+import javax.mail.Session;
+import javax.mail.internet.InternetAddress;
+import javax.mail.internet.MimeMessage;
+import java.util.Properties;
+
+
+public class SMTPAppender extends org.apache.log4j.net.SMTPAppender
+{
+
+ public SMTPAppender()
+ {
+ //support all message types
+ super(new TriggeringEventEvaluator()
+ {
+ public boolean isTriggeringEvent(LoggingEvent event)
+ {
+ return true;
+ }
+ });
+ }
+
+ /**
+ * Activate the specified options, such as the smtp host, the
+ * recipient, from, etc.
+ */
+ public void activateOptions()
+ {
+ final Properties props = new Properties();
+ try
+ {
+ props.load(getClass().getClassLoader().getResourceAsStream("email.properties"));
+ } catch (Exception e)
+ {
+ e.printStackTrace();
+ throw new RuntimeException(e);
+ }
+
+ try
+ {
+ Session session = Session.getInstance(props, new Authenticator()
+ {
+ @Override
+ protected PasswordAuthentication getPasswordAuthentication()
+ {
+ return new PasswordAuthentication(props.getProperty("mail.smtp.user"),props.getProperty("mail.smtp.password"));
+ }
+ });
+ //session.setDebug(true);
+ msg = new MimeMessage(session);
+
+
+ if (getFrom() != null)
+ msg.setFrom(new InternetAddress(getFrom()));
+ else
+ msg.setFrom();
+
+ msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(getTo(), true));
+ if (getSubject() != null)
+ msg.setSubject(getSubject());
+ } catch (Throwable e)
+ {
+ LogLog.error("Could not activate SMTPAppender options.", e);
+ }
+ }
+
+
+}
15 years, 7 months
JBoss Cache SVN: r6677 - in core/trunk/src: test/java/org/jboss/cache/config/parsing and 1 other directory.
by jbosscache-commits@lists.jboss.org
Author: manik.surtani(a)jboss.com
Date: 2008-09-02 09:44:35 -0400 (Tue, 02 Sep 2008)
New Revision: 6677
Added:
core/trunk/src/test/java/org/jboss/cache/config/parsing/CacheConfigsTest.java
Modified:
core/trunk/src/main/java/org/jboss/cache/config/parsing/CacheConfigsXmlParser.java
core/trunk/src/main/java/org/jboss/cache/config/parsing/RootElementBuilder.java
core/trunk/src/main/java/org/jboss/cache/config/parsing/XmlConfigurationParser.java
core/trunk/src/test/java/org/jboss/cache/config/parsing/SampleConfigFilesCorrectnessTest.java
Log:
Added support for legacy config files.
Modified: core/trunk/src/main/java/org/jboss/cache/config/parsing/CacheConfigsXmlParser.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/config/parsing/CacheConfigsXmlParser.java 2008-09-02 13:03:30 UTC (rev 6676)
+++ core/trunk/src/main/java/org/jboss/cache/config/parsing/CacheConfigsXmlParser.java 2008-09-02 13:44:35 UTC (rev 6677)
@@ -90,7 +90,8 @@
{
// loop through all elements in XML.
Element root = getDocumentRoot(stream);
- NodeList list = root.getElementsByTagNameNS(RootElementBuilder.JBOSSCACHE_REPO_NS, CONFIG_ROOT);
+
+ NodeList list = root.getElementsByTagName(CONFIG_ROOT);
if (list == null || list.getLength() == 0)
throw new ConfigurationException("Can't find " + CONFIG_ROOT + " tag");
@@ -108,9 +109,21 @@
String name = element.getAttribute(CONFIG_NAME);
if (name == null || name.trim().length() == 0)
throw new ConfigurationException("Element " + element + " has no name attribute");
+
XmlConfigurationParser parser = new XmlConfigurationParser();
- // FIXME - This should be using a valid schema!!!
- Configuration c = parser.parseElementIgnoringRoot(element);
+ Configuration c;
+ if (parser.isValidElementRoot(element))
+ {
+ // FIXME - This should be using a valid schema!!!
+ c = parser.parseElementIgnoringRoot(element);
+ }
+ else
+ {
+ log.warn("Detected legacy configuration file format when parsing configuration file. Migrating to the new (3.x) file format is recommended. See FAQs for details.");
+ XmlConfigurationParser2x oldParser = new XmlConfigurationParser2x();
+ c = oldParser.parseConfiguration(element);
+ }
+
// Prove that we can successfully clone it
c = c.clone();
result.put(name.trim(), c);
@@ -121,7 +134,7 @@
private Element getDocumentRoot(InputStream stream)
{
- RootElementBuilder rootElementBuilder = new RootElementBuilder();
+ RootElementBuilder rootElementBuilder = new RootElementBuilder(false);
return rootElementBuilder.readRoot(stream);
}
}
\ No newline at end of file
Modified: core/trunk/src/main/java/org/jboss/cache/config/parsing/RootElementBuilder.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/config/parsing/RootElementBuilder.java 2008-09-02 13:03:30 UTC (rev 6676)
+++ core/trunk/src/main/java/org/jboss/cache/config/parsing/RootElementBuilder.java 2008-09-02 13:44:35 UTC (rev 6677)
@@ -21,18 +21,18 @@
*/
package org.jboss.cache.config.parsing;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.jboss.cache.config.ConfigurationException;
+import org.jboss.util.xml.JBossEntityResolver;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
-import org.jboss.cache.config.ConfigurationException;
-import org.jboss.util.xml.JBossEntityResolver;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
import org.xml.sax.ErrorHandler;
+import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
-import org.xml.sax.SAXException;
+import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
-import javax.xml.parsers.DocumentBuilder;
import java.io.InputStream;
/**
@@ -79,6 +79,11 @@
this(new FailureErrorHandler());
}
+ public RootElementBuilder(boolean validating)
+ {
+ this(new FailureErrorHandler(), validating);
+ }
+
public Element readRoot(InputStream config)
{
try
Modified: core/trunk/src/main/java/org/jboss/cache/config/parsing/XmlConfigurationParser.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/config/parsing/XmlConfigurationParser.java 2008-09-02 13:03:30 UTC (rev 6676)
+++ core/trunk/src/main/java/org/jboss/cache/config/parsing/XmlConfigurationParser.java 2008-09-02 13:44:35 UTC (rev 6677)
@@ -23,7 +23,11 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.jboss.cache.config.*;
+import org.jboss.cache.config.BuddyReplicationConfig;
+import org.jboss.cache.config.CacheLoaderConfig;
+import org.jboss.cache.config.Configuration;
+import org.jboss.cache.config.ConfigurationException;
+import org.jboss.cache.config.CustomInterceptorConfig;
import org.jboss.cache.config.parsing.element.BuddyElementParser;
import org.jboss.cache.config.parsing.element.CustomInterceptorsElementParser;
import org.jboss.cache.config.parsing.element.EvictionElementParser;
@@ -31,6 +35,7 @@
import org.jboss.cache.lock.IsolationLevel;
import org.jboss.cache.util.FileLookup;
import org.w3c.dom.Element;
+import org.w3c.dom.NodeList;
import org.xml.sax.ErrorHandler;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
@@ -386,6 +391,19 @@
}
/**
+ * Tests whether the element passed in is a modern (3.0) config element rather than a legacy one.
+ *
+ * @param element element to test
+ * @return true of the element is a modern one and can be parsed using the current parser.
+ */
+ public boolean isValidElementRoot(Element element)
+ {
+ // simply test for the "jbosscache" element.
+ NodeList elements = element.getElementsByTagName("jbosscache");
+ return elements != null && elements.getLength() > 0;
+ }
+
+ /**
* Default schema validation error handler, that throws an exception on validation errors.
*/
private static class FailureErrorHandler implements ErrorHandler
Added: core/trunk/src/test/java/org/jboss/cache/config/parsing/CacheConfigsTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/config/parsing/CacheConfigsTest.java (rev 0)
+++ core/trunk/src/test/java/org/jboss/cache/config/parsing/CacheConfigsTest.java 2008-09-02 13:44:35 UTC (rev 6677)
@@ -0,0 +1,117 @@
+package org.jboss.cache.config.parsing;
+
+import org.jboss.cache.config.Configuration;
+import org.jboss.cache.lock.IsolationLevel;
+import org.testng.annotations.Test;
+
+import java.io.ByteArrayInputStream;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Tests the {@link org.jboss.cache.config.parsing.CacheConfigsXmlParser}.
+ *
+ * @author Manik Surtani (<a href="mailto:manik@jboss.org">manik(a)jboss.org</a>)
+ * @since 3.0
+ */
+@Test(groups = "unit")
+public class CacheConfigsTest
+{
+ public void testNewFormat() throws CloneNotSupportedException
+ {
+ String xml = "<cache-configs>\n" +
+ " <cache-config name=\"A\">\n" +
+ " <jbosscache xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" +
+ " xmlns=\"urn:jboss:jbosscache-core:config:3.0\">\n" +
+ " <locking isolationLevel=\"REPEATABLE_READ\" lockAcquisitionTimeout=\"15000\"/>\n" +
+ " <transaction transactionManagerLookupClass=\"org.jboss.cache.transaction.GenericTransactionManagerLookup\"/>\n" +
+ " <stateRetrieval timeout=\"20000\"/>\n" +
+ " </jbosscache>\n" +
+ " </cache-config>\n" +
+ "\n" +
+ " <cache-config name=\"B\">\n" +
+ " <jbosscache xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" +
+ " xmlns=\"urn:jboss:jbosscache-core:config:3.0\">\n" +
+ " <locking isolationLevel=\"READ_COMMITTED\" lockAcquisitionTimeout=\"15000\"/>\n" +
+ " <transaction transactionManagerLookupClass=\"org.jboss.cache.transaction.GenericTransactionManagerLookup\"/>\n" +
+ " <stateRetrieval timeout=\"20000\"/>\n" +
+ " </jbosscache>\n" +
+ " </cache-config>\n" +
+ "\n" +
+ " <cache-config name=\"C\">\n" +
+ " <jbosscache xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" +
+ " xmlns=\"urn:jboss:jbosscache-core:config:3.0\">\n" +
+ " <locking isolationLevel=\"READ_COMMITTED\" lockAcquisitionTimeout=\"100\"/>\n" +
+ " <stateRetrieval timeout=\"100\"/>\n" +
+ " </jbosscache>\n" +
+ " </cache-config>\n" +
+ "</cache-configs>";
+
+ ByteArrayInputStream bais = new ByteArrayInputStream(xml.getBytes());
+
+ CacheConfigsXmlParser ccxp = new CacheConfigsXmlParser();
+ Map<String, Configuration> map = ccxp.parseConfigs(bais);
+ Map toExpect = buildExpectedValues();
+
+ assert map.equals(toExpect);
+ }
+
+ public void testLegacyFormat() throws CloneNotSupportedException
+ {
+ String xml = "<cache-configs>\n" +
+ " <cache-config name=\"A\">\n" +
+ " <attribute name=\"IsolationLevel\">REPEATABLE_READ</attribute>\n" +
+ " <attribute name=\"LockAcquisitionTimeout\">15000</attribute>\n" +
+ " <attribute name=\"TransactionManagerLookupClass\">org.jboss.cache.transaction.GenericTransactionManagerLookup</attribute>\n" +
+ " <attribute name=\"StateRetrievalTimeout\">20000</attribute>\n" +
+ " </cache-config>\n" +
+ "\n" +
+ " <cache-config name=\"B\">\n" +
+ " <attribute name=\"IsolationLevel\">READ_COMMITTED</attribute>\n" +
+ " <attribute name=\"LockAcquisitionTimeout\">15000</attribute>\n" +
+ " <attribute name=\"TransactionManagerLookupClass\">org.jboss.cache.transaction.GenericTransactionManagerLookup</attribute>\n" +
+ " <attribute name=\"StateRetrievalTimeout\">20000</attribute>\n" +
+ " </cache-config>\n" +
+ "\n" +
+ " <cache-config name=\"C\">\n" +
+ " <attribute name=\"IsolationLevel\">READ_COMMITTED</attribute>\n" +
+ " <attribute name=\"LockAcquisitionTimeout\">100</attribute>\n" +
+ " <attribute name=\"StateRetrievalTimeout\">100</attribute>\n" +
+ " </cache-config>\n" +
+ "</cache-configs>";
+
+ ByteArrayInputStream bais = new ByteArrayInputStream(xml.getBytes());
+
+ CacheConfigsXmlParser ccxp = new CacheConfigsXmlParser();
+ Map<String, Configuration> map = ccxp.parseConfigs(bais);
+ Map toExpect = buildExpectedValues();
+
+ assert map.equals(toExpect);
+ }
+
+ private Map<String, Configuration> buildExpectedValues()
+ {
+ Map<String, Configuration> map = new HashMap<String, Configuration>(3);
+ Configuration cfg = new Configuration();
+ map.put("A", cfg);
+ cfg.setIsolationLevel(IsolationLevel.REPEATABLE_READ);
+ cfg.setLockAcquisitionTimeout(15000);
+ cfg.setTransactionManagerLookupClass("org.jboss.cache.transaction.GenericTransactionManagerLookup");
+ cfg.setStateRetrievalTimeout(20000);
+
+ cfg = new Configuration();
+ map.put("B", cfg);
+ cfg.setIsolationLevel(IsolationLevel.READ_COMMITTED);
+ cfg.setLockAcquisitionTimeout(15000);
+ cfg.setTransactionManagerLookupClass("org.jboss.cache.transaction.GenericTransactionManagerLookup");
+ cfg.setStateRetrievalTimeout(20000);
+
+ cfg = new Configuration();
+ map.put("C", cfg);
+ cfg.setIsolationLevel(IsolationLevel.READ_COMMITTED);
+ cfg.setLockAcquisitionTimeout(100);
+ cfg.setStateRetrievalTimeout(100);
+
+ return map;
+ }
+}
Modified: core/trunk/src/test/java/org/jboss/cache/config/parsing/SampleConfigFilesCorrectnessTest.java
===================================================================
--- core/trunk/src/test/java/org/jboss/cache/config/parsing/SampleConfigFilesCorrectnessTest.java 2008-09-02 13:03:30 UTC (rev 6676)
+++ core/trunk/src/test/java/org/jboss/cache/config/parsing/SampleConfigFilesCorrectnessTest.java 2008-09-02 13:44:35 UTC (rev 6677)
@@ -27,8 +27,8 @@
import org.apache.log4j.spi.LoggingEvent;
import org.jboss.cache.Cache;
import org.jboss.cache.DefaultCacheFactory;
-import org.testng.annotations.AfterTest;
-import org.testng.annotations.BeforeTest;
+import org.testng.annotations.AfterMethod;
+import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import java.io.File;
@@ -51,11 +51,7 @@
private InMemoryAppender appender;
private Level oldLevel;
-
- /**
- * Will be called only once, before all test methods run.
- */
- @BeforeTest
+ @BeforeMethod
public void setUpTest()
{
Logger log4jLogger = Logger.getRootLogger();
@@ -67,15 +63,13 @@
System.out.println("f = " + f.getAbsolutePath());
}
- /**
- * Will be called only once, after all test methods run.
- */
- @AfterTest
+ @AfterMethod
public void tearDownTest()
{
Logger log4jLogger = Logger.getRootLogger();
log4jLogger.setLevel(oldLevel);
log4jLogger.removeAppender(appender);
+ appender.close();
}
public void testSchemaValidity()
15 years, 7 months
JBoss Cache SVN: r6676 - core/trunk/src/main/java/org/jboss/cache.
by jbosscache-commits@lists.jboss.org
Author: mircea.markus
Date: 2008-09-02 09:03:30 -0400 (Tue, 02 Sep 2008)
New Revision: 6676
Modified:
core/trunk/src/main/java/org/jboss/cache/DefaultCacheFactory.java
Log:
updated warnign message
Modified: core/trunk/src/main/java/org/jboss/cache/DefaultCacheFactory.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/DefaultCacheFactory.java 2008-09-02 12:59:11 UTC (rev 6675)
+++ core/trunk/src/main/java/org/jboss/cache/DefaultCacheFactory.java 2008-09-02 13:03:30 UTC (rev 6676)
@@ -72,9 +72,10 @@
}
catch (ConfigurationException e)
{
- log.warn("Detected legacy configuration file format when parsing [" + configFileName + "]. Migrating to the new (3.x) file format is recommended. See FAQs for details.");
XmlConfigurationParser2x oldParser = new XmlConfigurationParser2x();
c = oldParser.parseFile(configFileName);
+ if (c != null)
+ log.warn("Detected legacy configuration file format when parsing [" + configFileName + "]. Migrating to the new (3.x) file format is recommended. See FAQs for details.");
}
return createCache(c, start);
}
@@ -162,9 +163,9 @@
}
catch (ConfigurationException e)
{
- log.warn("Detected legacy configuration file format when parsing configuration file. Migrating to the new (3.x) file format is recommended. See FAQs for details.");
XmlConfigurationParser2x oldParser = new XmlConfigurationParser2x();
c = oldParser.parseStream(is);
+ if (c!= null) log.warn("Detected legacy configuration file format when parsing configuration file. Migrating to the new (3.x) file format is recommended. See FAQs for details.");
}
return createCache(c);
}
15 years, 7 months
JBoss Cache SVN: r6675 - benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf.
by jbosscache-commits@lists.jboss.org
Author: mircea.markus
Date: 2008-09-02 08:59:11 -0400 (Tue, 02 Sep 2008)
New Revision: 6675
Modified:
benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/mvcc-local-RC.xml
benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/mvcc-local-RR.xml
benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/mvcc-repl-async-br.xml
benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/mvcc-repl-async.xml
benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/mvcc-repl-sync-br.xml
benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/mvcc-repl-sync.xml
benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/opt-repl-async-br.xml
benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/opt-repl-async.xml
benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/opt-repl-sync-br.xml
benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/opt-repl-sync.xml
benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/pess-local-NONE.xml
benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/pess-local.xml
benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/pess-repl-async-br.xml
benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/pess-repl-async.xml
benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/pess-repl-sync-br.xml
benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/pess-repl-sync.xml
Log:
updated xml namespace for config files
Modified: benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/mvcc-local-RC.xml
===================================================================
--- benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/mvcc-local-RC.xml 2008-09-02 12:34:06 UTC (rev 6674)
+++ benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/mvcc-local-RC.xml 2008-09-02 12:59:11 UTC (rev 6675)
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://www.jboss.org/jbosscache/jbosscache-config-3.0.xsd">
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.0">
<locking isolationLevel="READ_COMMITTED" lockAcquisitionTimeout="10000" nodeLockingScheme="mvcc" concurrencyLevel="300"/>
<transaction transactionManagerLookupClass="org.jboss.cache.transaction.GenericTransactionManagerLookup"/>
<stateRetrieval timeout="20000" fetchInMemoryState="false"/>
Modified: benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/mvcc-local-RR.xml
===================================================================
--- benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/mvcc-local-RR.xml 2008-09-02 12:34:06 UTC (rev 6674)
+++ benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/mvcc-local-RR.xml 2008-09-02 12:59:11 UTC (rev 6675)
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://www.jboss.org/jbosscache/jbosscache-config-3.0.xsd">
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.0">
<locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="10000" nodeLockingScheme="mvcc" concurrencyLevel="300"/>
<transaction transactionManagerLookupClass="org.jboss.cache.transaction.GenericTransactionManagerLookup"/>
<stateRetrieval timeout="20000" fetchInMemoryState="false"/>
Modified: benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/mvcc-repl-async-br.xml
===================================================================
--- benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/mvcc-repl-async-br.xml 2008-09-02 12:34:06 UTC (rev 6674)
+++ benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/mvcc-repl-async-br.xml 2008-09-02 12:59:11 UTC (rev 6675)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jbosscache>
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.0">
<locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="10000" nodeLockingScheme="mvcc"/>
<transaction transactionManagerLookupClass="org.jboss.cache.transaction.GenericTransactionManagerLookup"/>
<stateRetrieval timeout="20000" fetchInMemoryState="false"/>
Modified: benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/mvcc-repl-async.xml
===================================================================
--- benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/mvcc-repl-async.xml 2008-09-02 12:34:06 UTC (rev 6674)
+++ benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/mvcc-repl-async.xml 2008-09-02 12:59:11 UTC (rev 6675)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jbosscache>
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.0">
<locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="10000" nodeLockingScheme="mvcc"/>
<transaction transactionManagerLookupClass="org.jboss.cache.transaction.GenericTransactionManagerLookup"/>
<stateRetrieval timeout="20000" fetchInMemoryState="false"/>
Modified: benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/mvcc-repl-sync-br.xml
===================================================================
--- benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/mvcc-repl-sync-br.xml 2008-09-02 12:34:06 UTC (rev 6674)
+++ benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/mvcc-repl-sync-br.xml 2008-09-02 12:59:11 UTC (rev 6675)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jbosscache>
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.0">
<locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="10000" nodeLockingScheme="mvcc"/>
<transaction transactionManagerLookupClass="org.jboss.cache.transaction.GenericTransactionManagerLookup"/>
<stateRetrieval timeout="20000" fetchInMemoryState="false"/>
Modified: benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/mvcc-repl-sync.xml
===================================================================
--- benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/mvcc-repl-sync.xml 2008-09-02 12:34:06 UTC (rev 6674)
+++ benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/mvcc-repl-sync.xml 2008-09-02 12:59:11 UTC (rev 6675)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jbosscache>
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.0">
<locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="10000" nodeLockingScheme="mvcc"/>
<transaction transactionManagerLookupClass="org.jboss.cache.transaction.GenericTransactionManagerLookup"/>
<stateRetrieval timeout="20000" fetchInMemoryState="false"/>
Modified: benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/opt-repl-async-br.xml
===================================================================
--- benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/opt-repl-async-br.xml 2008-09-02 12:34:06 UTC (rev 6674)
+++ benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/opt-repl-async-br.xml 2008-09-02 12:59:11 UTC (rev 6675)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jbosscache>
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.0">
<locking lockAcquisitionTimeout="10000" nodeLockingScheme="optimistic"/>
<transaction transactionManagerLookupClass="org.jboss.cache.transaction.GenericTransactionManagerLookup"/>
<stateRetrieval timeout="20000" fetchInMemoryState="false"/>
Modified: benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/opt-repl-async.xml
===================================================================
--- benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/opt-repl-async.xml 2008-09-02 12:34:06 UTC (rev 6674)
+++ benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/opt-repl-async.xml 2008-09-02 12:59:11 UTC (rev 6675)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jbosscache>
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.0">
<locking lockAcquisitionTimeout="10000" nodeLockingScheme="optimistic"/>
<transaction transactionManagerLookupClass="org.jboss.cache.transaction.GenericTransactionManagerLookup"/>
<stateRetrieval timeout="20000" fetchInMemoryState="false"/>
Modified: benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/opt-repl-sync-br.xml
===================================================================
--- benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/opt-repl-sync-br.xml 2008-09-02 12:34:06 UTC (rev 6674)
+++ benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/opt-repl-sync-br.xml 2008-09-02 12:59:11 UTC (rev 6675)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jbosscache>
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.0">
<locking lockAcquisitionTimeout="10000" nodeLockingScheme="optimistic"/>
<transaction transactionManagerLookupClass="org.jboss.cache.transaction.GenericTransactionManagerLookup"/>
<stateRetrieval timeout="20000" fetchInMemoryState="false"/>
Modified: benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/opt-repl-sync.xml
===================================================================
--- benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/opt-repl-sync.xml 2008-09-02 12:34:06 UTC (rev 6674)
+++ benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/opt-repl-sync.xml 2008-09-02 12:59:11 UTC (rev 6675)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jbosscache>
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.0">
<locking lockAcquisitionTimeout="10000" nodeLockingScheme="optimistic"/>
<transaction transactionManagerLookupClass="org.jboss.cache.transaction.GenericTransactionManagerLookup"/>
<stateRetrieval timeout="20000" fetchInMemoryState="false"/>
Modified: benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/pess-local-NONE.xml
===================================================================
--- benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/pess-local-NONE.xml 2008-09-02 12:34:06 UTC (rev 6674)
+++ benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/pess-local-NONE.xml 2008-09-02 12:59:11 UTC (rev 6675)
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://www.jboss.org/jbosscache/jbosscache-config-3.0.xsd">
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.0">
<locking isolationLevel="NONE" lockAcquisitionTimeout="10000" nodeLockingScheme="pessimistic"/>
<transaction transactionManagerLookupClass="org.jboss.cache.transaction.GenericTransactionManagerLookup"/>
<stateRetrieval timeout="20000" fetchInMemoryState="false"/>
Modified: benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/pess-local.xml
===================================================================
--- benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/pess-local.xml 2008-09-02 12:34:06 UTC (rev 6674)
+++ benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/pess-local.xml 2008-09-02 12:59:11 UTC (rev 6675)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jbosscache>
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.0">
<locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="10000" nodeLockingScheme="pessimistic"/>
<transaction transactionManagerLookupClass="org.jboss.cache.transaction.GenericTransactionManagerLookup"/>
<stateRetrieval timeout="20000" fetchInMemoryState="false"/>
Modified: benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/pess-repl-async-br.xml
===================================================================
--- benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/pess-repl-async-br.xml 2008-09-02 12:34:06 UTC (rev 6674)
+++ benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/pess-repl-async-br.xml 2008-09-02 12:59:11 UTC (rev 6675)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jbosscache>
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.0">
<locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="10000" nodeLockingScheme="pessimistic"/>
<transaction transactionManagerLookupClass="org.jboss.cache.transaction.GenericTransactionManagerLookup"/>
<stateRetrieval timeout="20000" fetchInMemoryState="false"/>
Modified: benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/pess-repl-async.xml
===================================================================
--- benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/pess-repl-async.xml 2008-09-02 12:34:06 UTC (rev 6674)
+++ benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/pess-repl-async.xml 2008-09-02 12:59:11 UTC (rev 6675)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jbosscache>
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.0">
<locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="10000" nodeLockingScheme="pessimistic"/>
<transaction transactionManagerLookupClass="org.jboss.cache.transaction.GenericTransactionManagerLookup"/>
<stateRetrieval timeout="20000" fetchInMemoryState="false"/>
Modified: benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/pess-repl-sync-br.xml
===================================================================
--- benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/pess-repl-sync-br.xml 2008-09-02 12:34:06 UTC (rev 6674)
+++ benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/pess-repl-sync-br.xml 2008-09-02 12:59:11 UTC (rev 6675)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jbosscache>
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.0">
<locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="10000" nodeLockingScheme="pessimistic"/>
<transaction transactionManagerLookupClass="org.jboss.cache.transaction.GenericTransactionManagerLookup"/>
<stateRetrieval timeout="20000" fetchInMemoryState="false"/>
Modified: benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/pess-repl-sync.xml
===================================================================
--- benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/pess-repl-sync.xml 2008-09-02 12:34:06 UTC (rev 6674)
+++ benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-3.0.0/conf/pess-repl-sync.xml 2008-09-02 12:59:11 UTC (rev 6675)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<jbosscache>
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.0">
<locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="10000" nodeLockingScheme="pessimistic"/>
<transaction transactionManagerLookupClass="org.jboss.cache.transaction.GenericTransactionManagerLookup"/>
<stateRetrieval timeout="20000" fetchInMemoryState="false"/>
15 years, 7 months
JBoss Cache SVN: r6674 - benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-2.2.0/lib.
by jbosscache-commits@lists.jboss.org
Author: mircea.markus
Date: 2008-09-02 08:34:06 -0400 (Tue, 02 Sep 2008)
New Revision: 6674
Modified:
benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-2.2.0/lib/jbosscache-core.jar
Log:
Modified: benchmarks/benchmark-fwk/trunk/cache-products/jbosscache-2.2.0/lib/jbosscache-core.jar
===================================================================
(Binary files differ)
15 years, 7 months