mirror of https://github.com/apache/activemq.git
This commit is contained in:
parent
4eb5097f22
commit
8498136f5e
|
@ -26,13 +26,12 @@ import javax.jms.JMSException;
|
|||
import javax.jms.Message;
|
||||
import javax.jms.MessageConsumer;
|
||||
import javax.jms.MessageProducer;
|
||||
import javax.jms.Queue;
|
||||
import javax.jms.Session;
|
||||
import javax.jms.TextMessage;
|
||||
|
||||
import org.apache.activemq.transport.amqp.AmqpTestSupport;
|
||||
import org.apache.qpid.amqp_1_0.jms.impl.ConnectionFactoryImpl;
|
||||
import org.apache.qpid.amqp_1_0.jms.impl.QueueImpl;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
import org.junit.rules.TestName;
|
||||
|
@ -40,17 +39,12 @@ import org.slf4j.Logger;
|
|||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class AMQ4914Test extends AmqpTestSupport {
|
||||
|
||||
@Rule
|
||||
public TestName testName = new TestName();
|
||||
|
||||
protected static final Logger LOG = LoggerFactory.getLogger(AMQ4914Test.class);
|
||||
private final static String QUEUE_NAME="queue://ENTMQ476TestQueue";
|
||||
|
||||
/**
|
||||
*
|
||||
* @param sizeInBytes
|
||||
* @return
|
||||
*/
|
||||
private String createLargeString(int sizeInBytes) {
|
||||
byte[] base = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0};
|
||||
StringBuilder builder = new StringBuilder();
|
||||
|
@ -76,7 +70,6 @@ public class AMQ4914Test extends AmqpTestSupport {
|
|||
doTestSendLargeMessage(65536 * 4);
|
||||
}
|
||||
|
||||
@Ignore("AMQ-5102")
|
||||
@Test(timeout = 5 * 60 * 1000)
|
||||
public void testSendHugeMessage() throws JMSException {
|
||||
doTestSendLargeMessage(1024 * 1024 * 10);
|
||||
|
@ -91,7 +84,7 @@ public class AMQ4914Test extends AmqpTestSupport {
|
|||
|
||||
long startTime = System.currentTimeMillis();
|
||||
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
|
||||
QueueImpl queue = new QueueImpl(QUEUE_NAME);
|
||||
Queue queue = session.createQueue(testName.getMethodName());
|
||||
MessageProducer producer = session.createProducer(queue);
|
||||
TextMessage message = session.createTextMessage();
|
||||
message.setText(payload);
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
<groupId>${project.groupId}</groupId>
|
||||
<artifactId>activemq-partition</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>org.fusesource.hawtdispatch</groupId>
|
||||
<artifactId>hawtdispatch-transport</artifactId>
|
||||
|
@ -91,7 +91,7 @@
|
|||
<artifactId>zookeeper</artifactId>
|
||||
<version>${zookeeper-version}</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>org.osgi</groupId>
|
||||
<artifactId>org.osgi.core</artifactId>
|
||||
|
@ -101,9 +101,9 @@
|
|||
<groupId>org.osgi</groupId>
|
||||
<artifactId>org.osgi.compendium</artifactId>
|
||||
<version>${org.osgi.core-version}</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
</dependency>
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>${project.groupId}</groupId>
|
||||
<artifactId>activemq-kahadb-store</artifactId>
|
||||
|
@ -426,7 +426,7 @@
|
|||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.qpid</groupId>
|
||||
<artifactId>proton-j-impl</artifactId>
|
||||
<artifactId>proton-j</artifactId>
|
||||
<version>${qpid-proton-version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
<include>conf/*.ts</include>
|
||||
<include>conf/*.ks</include>
|
||||
<include>conf/*.cert</include>
|
||||
<include>webapps/*.ico</include>
|
||||
<include>webapps/*.ico</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
|
||||
|
@ -142,7 +142,7 @@
|
|||
<include>${pom.groupId}:activemq-web</include>
|
||||
<include>org.fusesource.hawtbuf:hawtbuf</include>
|
||||
<include>org.fusesource.insight:insight-log-core</include>
|
||||
<!-- TODO: we use a patched insight-log4j AR from assembly/src/release/lib until a new release is out
|
||||
<!-- TODO: we use a patched insight-log4j AR from assembly/src/release/lib until a new release is out
|
||||
<include>org.fusesource.insight:insight-log4j</include>
|
||||
-->
|
||||
</includes>
|
||||
|
@ -205,9 +205,8 @@
|
|||
<include>org.jasypt:jasypt-spring3</include>
|
||||
<include>javax.jmdns:jmdns</include>
|
||||
<include>org.apache.qpid:proton</include>
|
||||
<include>org.apache.qpid:proton-api</include>
|
||||
<include>org.apache.qpid:proton-jms</include>
|
||||
<include>org.apache.qpid:proton-j-impl</include>
|
||||
<include>org.apache.qpid:proton-j</include>
|
||||
<include>${pom.groupId}:activemq-runtime-config</include>
|
||||
<include>org.jvnet.jaxb2_commons:jaxb2-basics-runtime</include>
|
||||
|
||||
|
|
4
pom.xml
4
pom.xml
|
@ -100,7 +100,7 @@
|
|||
<paho-version>0.4.0</paho-version>
|
||||
<linkedin-zookeeper-version>1.4.0</linkedin-zookeeper-version>
|
||||
<zookeeper-version>3.4.5</zookeeper-version>
|
||||
<qpid-proton-version>0.6</qpid-proton-version>
|
||||
<qpid-proton-version>0.7</qpid-proton-version>
|
||||
<qpid-jms-version>0.26</qpid-jms-version>
|
||||
<regexp-version>1.3</regexp-version>
|
||||
<rome-version>1.0</rome-version>
|
||||
|
@ -676,7 +676,7 @@
|
|||
<artifactId>openjpa-persistence-jdbc</artifactId>
|
||||
<version>${openjpa-version}</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- Optional Shiro Support -->
|
||||
<dependency>
|
||||
<groupId>org.apache.shiro</groupId>
|
||||
|
|
Loading…
Reference in New Issue