1 18 package org.apache.activemq.openwire; 19 20 import org.apache.activemq.command.BrokerId; 21 import org.apache.activemq.command.BrokerInfo; 22 23 public class BrokerInfoData extends DataFileGenerator { 24 25 protected Object createObject() { 26 BrokerInfo rc = new BrokerInfo(); 27 rc.setResponseRequired(false); 28 rc.setBrokerName("localhost"); 29 rc.setBrokerURL("tcp://localhost:61616"); 30 rc.setBrokerId(new BrokerId("ID:1289012830123")); 31 rc.setCommandId((short) 12); 32 rc.setResponseRequired(false); 33 return rc; 34 } 35 36 } 37 | Popular Tags |