From 8387295adefec0cb80f2504380a2733f5d1cbfed Mon Sep 17 00:00:00 2001 From: "Hiram R. Chirino" Date: Tue, 13 Nov 2012 19:49:39 +0000 Subject: [PATCH] Take the activemq-amqp module out of the ustable profile, include it in the default assembly. git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1408918 13f79535-47bb-0310-9956-ffa450edef68 --- activemq-amqp/pom.xml | 4 ++-- .../activemq/transport/amqp/AmqpWireFormat.java | 11 +++++++++-- activemq-core/pom.xml | 8 ++++---- assembly/pom.xml | 4 ++++ assembly/src/main/descriptors/common-bin.xml | 4 +++- assembly/src/release/conf/activemq.xml | 1 + pom.xml | 4 +++- 7 files changed, 26 insertions(+), 10 deletions(-) diff --git a/activemq-amqp/pom.xml b/activemq-amqp/pom.xml index c4f04620aa..bc39041eb0 100644 --- a/activemq-amqp/pom.xml +++ b/activemq-amqp/pom.xml @@ -45,7 +45,7 @@ org.apache.qpid qpid-proton - 1.0-SNAPSHOT + ${qpid-proton-version} @@ -58,7 +58,7 @@ org.apache.qpid qpid-amqp-1-0-client-jms - 0.18 + ${qpid-jms-version} test diff --git a/activemq-amqp/src/main/java/org/apache/activemq/transport/amqp/AmqpWireFormat.java b/activemq-amqp/src/main/java/org/apache/activemq/transport/amqp/AmqpWireFormat.java index a24319947e..631011e7be 100644 --- a/activemq-amqp/src/main/java/org/apache/activemq/transport/amqp/AmqpWireFormat.java +++ b/activemq-amqp/src/main/java/org/apache/activemq/transport/amqp/AmqpWireFormat.java @@ -30,7 +30,7 @@ public class AmqpWireFormat implements WireFormat { private int version = 1; - private long maxFrameLength = 1024*1024*100; + private long maxFrameSize = 1024*1024*100; public ByteSequence marshal(Object command) throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream(); @@ -60,7 +60,7 @@ public class AmqpWireFormat implements WireFormat { return new AmqpHeader(magic); } else { int size = dataIn.readInt(); - if( size > maxFrameLength ) { + if( size > maxFrameSize) { throw new AmqpProtocolException("Frame size exceeded max frame length."); } Buffer frame = new Buffer(size); @@ -85,4 +85,11 @@ public class AmqpWireFormat implements WireFormat { } + public long getMaxFrameSize() { + return maxFrameSize; + } + + public void setMaxFrameSize(long maxFrameSize) { + this.maxFrameSize = maxFrameSize; + } } diff --git a/activemq-core/pom.xml b/activemq-core/pom.xml index 430b21bdfc..dea82c1fcc 100755 --- a/activemq-core/pom.xml +++ b/activemq-core/pom.xml @@ -108,6 +108,10 @@ org.apache.activemq activemq-stomp + + org.apache.activemq + activemq-amqp + org.apache.geronimo.specs @@ -1197,10 +1201,6 @@ unstable - - org.apache.activemq - activemq-amqp - diff --git a/assembly/pom.xml b/assembly/pom.xml index d57b4d69a0..6535609c85 100755 --- a/assembly/pom.xml +++ b/assembly/pom.xml @@ -93,6 +93,10 @@ ${project.groupId} activemq-stomp + + ${project.groupId} + activemq-amqp + ${project.groupId} diff --git a/assembly/src/main/descriptors/common-bin.xml b/assembly/src/main/descriptors/common-bin.xml index 3a6621cee7..7dc4adba21 100644 --- a/assembly/src/main/descriptors/common-bin.xml +++ b/assembly/src/main/descriptors/common-bin.xml @@ -112,11 +112,11 @@ org.slf4j:jcl-over-slf4j ${pom.groupId}:activemq-client ${pom.groupId}:activemq-broker + ${pom.groupId}:activemq-openwire-legacy ${pom.groupId}:activemq-kahadb-store ${pom.groupId}:activemq-spring ${pom.groupId}:activemq-console ${pom.groupId}:activemq-jaas - ${pom.groupId}:kahadb org.apache.activemq.protobuf:activemq-protobuf org.apache.geronimo.specs:geronimo-j2ee-management_1.1_spec org.apache.geronimo.specs:geronimo-jms_1.1_spec @@ -140,6 +140,7 @@ false runtime + ${pom.groupId}:activemq-amqp ${pom.groupId}:activemq-mqtt ${pom.groupId}:activemq-stomp ${pom.groupId}:activemq-http @@ -182,6 +183,7 @@ org.jasypt:jasypt org.jasypt:jasypt-spring3 javax.jmdns:jmdns + org.apache.qpid:qpid-proton diff --git a/assembly/src/release/conf/activemq.xml b/assembly/src/release/conf/activemq.xml index 8a4c031f93..ec81be109d 100755 --- a/assembly/src/release/conf/activemq.xml +++ b/assembly/src/release/conf/activemq.xml @@ -143,6 +143,7 @@ + diff --git a/pom.xml b/pom.xml index 84c4e0673c..04c3f88f84 100755 --- a/pom.xml +++ b/pom.xml @@ -91,6 +91,8 @@ 10.9.1.0 4.2.0 1.1.2 + 1.0-SNAPSHOT + 0.18 1.3 1.0 9.4 @@ -202,6 +204,7 @@ activemq-stomp activemq-mqtt + activemq-amqp activemq-kahadb-store activemq-amq-store @@ -1436,7 +1439,6 @@ unstable - activemq-amqp