diff --git a/.gitignore b/.gitignore
index daef0eb..fccb85f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,10 @@ buildNumber.properties
# IntelliJ IdeaIU
.idea/
*.iml
+# Apache ActiveMQ
+ActiveMQConnections.dot
+activemq-data/
+/data/
+/activemq-core/derbydb/
+/activemq-core/testJdbcConfig/
+/activemq-core/derby.log
diff --git a/activemq-console/pom.xml b/activemq-console/pom.xml
index 6b9e7df..f4e2ce7 100644
--- a/activemq-console/pom.xml
+++ b/activemq-console/pom.xml
@@ -27,7 +27,7 @@
org.apache.activemq
activemq-parent
- 4.1.1
+ 4.1.1-j8
activemq-console
@@ -37,16 +37,16 @@
- ${pom.groupId}
+ ${project.groupId}
activemq-core
- ${pom.groupId}
+ ${project.groupId}
activemq-core
test-jar
- ${pom.groupId}
+ ${project.groupId}
activeio-core
diff --git a/activemq-core/pom.xml b/activemq-core/pom.xml
index 1c924c3..a60316e 100644
--- a/activemq-core/pom.xml
+++ b/activemq-core/pom.xml
@@ -25,7 +25,7 @@
org.apache.activemq
activemq-parent
- 4.1.1
+ 4.1.1-j8
activemq-core
@@ -50,7 +50,7 @@
- ${pom.groupId}
+ ${project.groupId}
activeio-core
false
@@ -172,9 +172,7 @@
maven-surefire-plugin
- pertest
- false
- true
+ false
-Xmx512M
**/*Test.*
diff --git a/activemq-core/src/test/java/org/apache/activemq/config/BrokerXmlConfigFromJNDITest.java b/activemq-core/src/test/java/org/apache/activemq/config/BrokerXmlConfigFromJNDITest.java
index d5165cf..97c3ff0 100644
--- a/activemq-core/src/test/java/org/apache/activemq/config/BrokerXmlConfigFromJNDITest.java
+++ b/activemq-core/src/test/java/org/apache/activemq/config/BrokerXmlConfigFromJNDITest.java
@@ -30,28 +30,21 @@
* @version $Revision: 467693 $
*/
public class BrokerXmlConfigFromJNDITest extends JmsTopicSendReceiveWithTwoConnectionsTest {
+
protected ActiveMQConnectionFactory createConnectionFactory() throws Exception {
- // START SNIPPET: example
-
-// System.err.print(System.getProperties());
-
- // we could put these properties into a jndi.properties
- // on the classpath instead
- Hashtable properties = new Hashtable();
+ final Hashtable properties = new Hashtable<>();
properties.put("java.naming.factory.initial", "org.apache.activemq.jndi.ActiveMQInitialContextFactory");
// configure the embedded broker using an XML config file
// which is either a URL or a resource on the classpath
- File f = new File(System.getProperty("basedir", "."));
- properties.put(Context.PROVIDER_URL, "vm://localhost?brokerConfig=xbean:file:"+f+"/src/test/resources/activemq.xml");
+ final String providerUrl = "vm://localhost?brokerConfig=xbean:classpath:activemq.xml";
+ properties.put(Context.PROVIDER_URL, providerUrl);
- InitialContext context = new InitialContext(properties);
- ActiveMQConnectionFactory connectionFactory = (ActiveMQConnectionFactory) context.lookup("ConnectionFactory");
+ final InitialContext context = new InitialContext(properties);
+ return (ActiveMQConnectionFactory) context.lookup("ConnectionFactory");
- // END SNIPPET: example
- return connectionFactory;
}
}
diff --git a/activemq-core/src/test/java/org/apache/activemq/config/ConfigTest.java b/activemq-core/src/test/java/org/apache/activemq/config/ConfigTest.java
index 6163f58..85343b0 100644
--- a/activemq-core/src/test/java/org/apache/activemq/config/ConfigTest.java
+++ b/activemq-core/src/test/java/org/apache/activemq/config/ConfigTest.java
@@ -75,10 +75,12 @@ public class ConfigTest extends TestCase {
*/
/*
- * This tests creating a journal persistence adapter using the persistence adapter factory bean
+ * This test creates a journal persistence adapter using the persistence adapter factory bean.
*/
public void testJournaledJDBCConfig() throws Exception {
-// System.out.print("Checking journaled JDBC persistence adapter configuration... ");
+
+ if (log.isDebugEnabled())
+ log.debug("testJournaledJDBCConfig() start");
File journalFile = new File(JOURNAL_ROOT + "testJournaledJDBCConfig/journal");
recursiveDelete(journalFile);
@@ -98,16 +100,17 @@ public void testJournaledJDBCConfig() throws Exception {
assertTrue("Should have created a journal directory at " + journalFile.getAbsolutePath(), journalFile.exists());
- // Check persistence factory configurations
-// System.out.print("Checking persistence adapter factory settings... ");
+ // TODO Check persistence factory configurations
JournalPersistenceAdapter pa = (JournalPersistenceAdapter) broker.getPersistenceAdapter();
-
+
log.info("Success");
} finally {
if (broker != null) {
broker.stop();
}
}
+ if (log.isDebugEnabled())
+ log.debug("testJournaledJDBCConfig() end");
}
/*
diff --git a/activemq-core/src/test/resources/log4j.properties b/activemq-core/src/test/resources/log4j.properties
index 3f12e67..fa9f971 100644
--- a/activemq-core/src/test/resources/log4j.properties
+++ b/activemq-core/src/test/resources/log4j.properties
@@ -16,11 +16,12 @@
## ---------------------------------------------------------------------------
#
-# The logging properties used during tests..
+# The logging properties used during tests ...
#
log4j.rootLogger=INFO, out
log4j.logger.org.apache.activemq.spring=WARN
+log4j.logger.org.apache.activemq.test.JmsTopicSendReceiveWithTwoConnectionsTest=DEBUG
# CONSOLE appender not used by default
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
diff --git a/activemq-core/src/test/resources/org/apache/activemq/config/sample-conf/jdbc-example.xml b/activemq-core/src/test/resources/org/apache/activemq/config/sample-conf/jdbc-example.xml
index 92a0221..92f6a48 100644
--- a/activemq-core/src/test/resources/org/apache/activemq/config/sample-conf/jdbc-example.xml
+++ b/activemq-core/src/test/resources/org/apache/activemq/config/sample-conf/jdbc-example.xml
@@ -1,4 +1,4 @@
-???
+
- ${pom.groupId}
+ ${project.groupId}
activemq-core
- ${pom.groupId}
+ ${project.groupId}
activemq-core
test
test-jar
- ${pom.groupId}
+ ${project.groupId}
activeio-core
@@ -95,8 +95,9 @@
- commons-httpclient
- commons-httpclient
+ log4j
+ log4j
+ compile
diff --git a/activemq-ra/pom.xml b/activemq-ra/pom.xml
index 72aab90..22b0a76 100644
--- a/activemq-ra/pom.xml
+++ b/activemq-ra/pom.xml
@@ -25,7 +25,7 @@
org.apache.activemq
activemq-parent
- 4.1.1
+ 4.1.1-j8
activemq-ra
diff --git a/activemq-rar/pom.xml b/activemq-rar/pom.xml
index 220bd6d..b088233 100644
--- a/activemq-rar/pom.xml
+++ b/activemq-rar/pom.xml
@@ -27,7 +27,7 @@
org.apache.activemq
activemq-parent
- 4.1.1
+ 4.1.1-j8
activemq-rar
@@ -39,7 +39,7 @@
- ${pom.groupId}
+ ${project.groupId}
activemq-ra
@@ -83,7 +83,7 @@
axion
- ${pom.groupId}
+ ${project.groupId}
activemq-jaas
diff --git a/activemq-repository-builder/pom.xml b/activemq-repository-builder/pom.xml
index 6c8c779..f42e10a 100644
--- a/activemq-repository-builder/pom.xml
+++ b/activemq-repository-builder/pom.xml
@@ -35,7 +35,7 @@
- ${pom.groupId}
+ ${project.groupId}
org.apache.activemq
diff --git a/activemq-soaktest/project.xml b/activemq-soaktest/project.xml
index 3a4f54c..3c22764 100644
--- a/activemq-soaktest/project.xml
+++ b/activemq-soaktest/project.xml
@@ -30,7 +30,7 @@
- ${pom.groupId}
+ ${project.groupId}
activemq-core
${pom.currentVersion}
@@ -40,7 +40,7 @@
- ${pom.groupId}
+ ${project.groupId}
activeio-core
${activeio_version}
@@ -50,7 +50,7 @@
- ${pom.groupId}
+ ${project.groupId}
activemq-core-test
${pom.currentVersion}
diff --git a/activemq-systest/project.xml b/activemq-systest/project.xml
index e09984b..2e8d79b 100644
--- a/activemq-systest/project.xml
+++ b/activemq-systest/project.xml
@@ -56,7 +56,7 @@
- ${pom.groupId}
+ ${project.groupId}
activemq-core
${pom.currentVersion}
@@ -91,7 +91,7 @@
- ${pom.groupId}
+ ${project.groupId}
activeio-core
${activeio_version}
diff --git a/activemq-test-atomikos/pom.xml b/activemq-test-atomikos/pom.xml
index a5194a3..a0ec60d 100644
--- a/activemq-test-atomikos/pom.xml
+++ b/activemq-test-atomikos/pom.xml
@@ -27,13 +27,17 @@
org.apache.activemq
activemq-parent
- 4.1.1
+ 4.1.1-j8
activemq-test-atomikos
jar
ActiveMQ :: Atomikos System Test
+
+ 3.2.3
+
+
@@ -51,17 +55,17 @@
- ${pom.groupId}
+ ${project.groupId}
activemq-core
- ${pom.groupId}
+ ${project.groupId}
activemq-core
compile
test-jar
- ${pom.groupId}
+ ${project.groupId}
activeio-core
@@ -73,22 +77,22 @@
com.atomikos
transactions
- 3.1.0
+ ${atomikos.version}
com.atomikos
transactions-api
- 3.1.0
+ ${atomikos.version}
com.atomikos
transactions-jta
- 3.1.0
+ ${atomikos.version}
com.atomikos
atomikos-util
- 3.1.0
+ ${atomikos.version}
diff --git a/activemq-tooling/maven-activemq-memtest-plugin/pom.xml b/activemq-tooling/maven-activemq-memtest-plugin/pom.xml
index ded6f42..f467b39 100644
--- a/activemq-tooling/maven-activemq-memtest-plugin/pom.xml
+++ b/activemq-tooling/maven-activemq-memtest-plugin/pom.xml
@@ -23,7 +23,7 @@
org.apache.activemq.tooling
activemq-tooling
- 4.1.1
+ 4.1.1-j8
maven-activemq-memtest-plugin
diff --git a/activemq-tooling/maven-activemq-perf-plugin/pom.xml b/activemq-tooling/maven-activemq-perf-plugin/pom.xml
index cc28d03..33c75b8 100644
--- a/activemq-tooling/maven-activemq-perf-plugin/pom.xml
+++ b/activemq-tooling/maven-activemq-perf-plugin/pom.xml
@@ -22,7 +22,7 @@
org.apache.activemq.tooling
activemq-tooling
- 4.1.1
+ 4.1.1-j8
maven-activemq-perf-plugin
diff --git a/activemq-tooling/maven-activemq-plugin/pom.xml b/activemq-tooling/maven-activemq-plugin/pom.xml
index 7d99f6a..89a8ea4 100644
--- a/activemq-tooling/maven-activemq-plugin/pom.xml
+++ b/activemq-tooling/maven-activemq-plugin/pom.xml
@@ -22,7 +22,7 @@
org.apache.activemq.tooling
activemq-tooling
- 4.1.1
+ 4.1.1-j8
maven-activemq-plugin
diff --git a/activemq-tooling/pom.xml b/activemq-tooling/pom.xml
index 49c60da..f087c6b 100644
--- a/activemq-tooling/pom.xml
+++ b/activemq-tooling/pom.xml
@@ -23,7 +23,7 @@
org.apache.activemq
activemq-parent
- 4.1.1
+ 4.1.1-j8
org.apache.activemq.tooling
diff --git a/activemq-web-console/pom.xml b/activemq-web-console/pom.xml
index 32012d4..1c9e43e 100644
--- a/activemq-web-console/pom.xml
+++ b/activemq-web-console/pom.xml
@@ -25,7 +25,7 @@
org.apache.activemq
activemq-parent
- 4.1.1
+ 4.1.1-j8
activemq-web-console
@@ -95,29 +95,29 @@
- ${pom.groupId}
+ ${project.groupId}
activemq-web
- ${pom.groupId}
+ ${project.groupId}
activemq-xmpp
- ${pom.version}
+ ${project.version}
- ${pom.groupId}
+ ${project.groupId}
activemq-console
- ${pom.version}
+ ${project.version}
- ${pom.groupId}
+ ${project.groupId}
activemq-core
- ${pom.groupId}
+ ${project.groupId}
activeio-core
diff --git a/activemq-web-demo/pom.xml b/activemq-web-demo/pom.xml
index 3ea1446..4e60034 100644
--- a/activemq-web-demo/pom.xml
+++ b/activemq-web-demo/pom.xml
@@ -25,7 +25,7 @@
org.apache.activemq
activemq-parent
- 4.1.1
+ 4.1.1-j8
activemq-web-demo
@@ -74,17 +74,17 @@
- ${pom.groupId}
+ ${project.groupId}
activemq-web
- ${pom.groupId}
+ ${project.groupId}
activemq-core
- ${pom.groupId}
+ ${project.groupId}
activeio-core
diff --git a/activemq-web/pom.xml b/activemq-web/pom.xml
index c20b817..d60b26d 100644
--- a/activemq-web/pom.xml
+++ b/activemq-web/pom.xml
@@ -27,7 +27,7 @@
org.apache.activemq
activemq-parent
- 4.1.1
+ 4.1.1-j8
activemq-web
@@ -38,11 +38,11 @@
- ${pom.groupId}
+ ${project.groupId}
activemq-core
- ${pom.groupId}
+ ${project.groupId}
activemq-core
test
test-jar
diff --git a/activemq-xmpp/pom.xml b/activemq-xmpp/pom.xml
index f64f77b..5446367 100644
--- a/activemq-xmpp/pom.xml
+++ b/activemq-xmpp/pom.xml
@@ -27,7 +27,7 @@
org.apache.activemq
activemq-parent
- 4.1.1
+ 4.1.1-j8
activemq-xmpp
@@ -68,19 +68,19 @@
- ${pom.groupId}
+ ${project.groupId}
activemq-core
- ${pom.groupId}
+ ${project.groupId}
activeio-core
@@ -167,16 +167,6 @@
-
- org.apache.maven.plugins
- maven-compiler-plugin
- true
-
-
- 1.5
-
-
-
maven-surefire-plugin
diff --git a/assembly/pom.xml b/assembly/pom.xml
index 6c87590..3cbec56 100644
--- a/assembly/pom.xml
+++ b/assembly/pom.xml
@@ -27,7 +27,7 @@
org.apache.activemq
activemq-parent
- 4.1.1
+ 4.1.1-j8
apache-activemq
@@ -45,41 +45,41 @@
- ${pom.groupId}
+ ${project.groupId}
activemq-core
- ${pom.groupId}
+ ${project.groupId}
activemq-core
test-jar
- ${pom.groupId}
+ ${project.groupId}
activeio-core
- ${pom.groupId}
+ ${project.groupId}
activemq-console
- ${pom.groupId}
+ ${project.groupId}
activemq-optional
- ${pom.groupId}
+ ${project.groupId}
activemq-web
- ${pom.groupId}
+ ${project.groupId}
activemq-jaas
- ${pom.groupId}
+ ${project.groupId}
activemq-web-demo
war
- ${pom.groupId}
+ ${project.groupId}
activemq-rar
rar
true
@@ -266,7 +266,7 @@
-
+
org.apache.maven.plugins
maven-assembly-plugin
@@ -297,7 +297,7 @@
src/main/descriptors/unix-bin.xml
- ${pom.artifactId}-${pom.version}
+ ${project.artifactId}-${project.version}
false
@@ -311,7 +311,7 @@
src/main/descriptors/windows-bin.xml
- ${pom.artifactId}-${pom.version}
+ ${project.artifactId}-${project.version}
false
@@ -344,7 +344,7 @@