Search in sources :

Example 16 with ConnectionId

use of org.apache.activemq.command.ConnectionId in project activemq-artemis by apache.

the class ConnectionIdTest method populateObject.

@Override
protected void populateObject(Object object) throws Exception {
    super.populateObject(object);
    ConnectionId info = (ConnectionId) object;
    info.setValue("Value:1");
}
Also used : ConnectionId(org.apache.activemq.command.ConnectionId)

Example 17 with ConnectionId

use of org.apache.activemq.command.ConnectionId in project activemq-artemis by apache.

the class ConnectionIdTest method createObject.

@Override
public Object createObject() throws Exception {
    ConnectionId info = new ConnectionId();
    populateObject(info);
    return info;
}
Also used : ConnectionId(org.apache.activemq.command.ConnectionId)

Example 18 with ConnectionId

use of org.apache.activemq.command.ConnectionId in project activemq-artemis by apache.

the class XBeanConfigTest method setUp.

@Override
protected void setUp() throws Exception {
    System.setProperty("brokername", "testbroker");
    brokerService = createBroker();
    broker = brokerService.getBroker();
    // started automatically
    // brokerService.start();
    context = new ConnectionContext();
    context.setBroker(broker);
    info = new ConnectionInfo();
    info.setClientId("James");
    info.setUserName("James");
    info.setConnectionId(new ConnectionId("1234"));
    try {
        broker.addConnection(context, info);
    } catch (Throwable e) {
        e.printStackTrace();
        fail(e.getMessage());
    }
    assertNotNull("No broker created!");
}
Also used : ConnectionId(org.apache.activemq.command.ConnectionId) ConnectionContext(org.apache.activemq.broker.ConnectionContext) ConnectionInfo(org.apache.activemq.command.ConnectionInfo)

Example 19 with ConnectionId

use of org.apache.activemq.command.ConnectionId in project activemq-artemis by apache.

the class ConnectionIdTest method createObject.

@Override
public Object createObject() throws Exception {
    ConnectionId info = new ConnectionId();
    populateObject(info);
    return info;
}
Also used : ConnectionId(org.apache.activemq.command.ConnectionId)

Example 20 with ConnectionId

use of org.apache.activemq.command.ConnectionId in project activemq-artemis by apache.

the class ConnectionIdTest method createObject.

@Override
public Object createObject() throws Exception {
    ConnectionId info = new ConnectionId();
    populateObject(info);
    return info;
}
Also used : ConnectionId(org.apache.activemq.command.ConnectionId)

Aggregations

ConnectionId (org.apache.activemq.command.ConnectionId)30 ConnectionInfo (org.apache.activemq.command.ConnectionInfo)7 RemoveInfo (org.apache.activemq.command.RemoveInfo)3 SessionId (org.apache.activemq.command.SessionId)3 ActiveMQTopic (org.apache.activemq.command.ActiveMQTopic)2 ConsumerId (org.apache.activemq.command.ConsumerId)2 MessageAck (org.apache.activemq.command.MessageAck)2 Test (org.junit.Test)2 IOException (java.io.IOException)1 IllegalStateException (javax.jms.IllegalStateException)1 SimpleString (org.apache.activemq.artemis.api.core.SimpleString)1 AMQConsumer (org.apache.activemq.artemis.core.protocol.openwire.amq.AMQConsumer)1 AMQSession (org.apache.activemq.artemis.core.protocol.openwire.amq.AMQSession)1 BrokerService (org.apache.activemq.broker.BrokerService)1 ConnectionContext (org.apache.activemq.broker.ConnectionContext)1 ActiveMQMessage (org.apache.activemq.command.ActiveMQMessage)1 ActiveMQTempQueue (org.apache.activemq.command.ActiveMQTempQueue)1 BrokerId (org.apache.activemq.command.BrokerId)1 BrokerInfo (org.apache.activemq.command.BrokerInfo)1 ConsumerInfo (org.apache.activemq.command.ConsumerInfo)1