And what about on your consumer? On Thu, Mar 9, 2017 at 3:43 PM, Deomisr <patrick.reg...@edf.fr> wrote:
> hi Mtaylor, > > I already put the mqtt.setclientid on my publisher > > this is my code : > > public class MQTTBasicPubSubExample { > > public static void main(final String[] args) throws Exception { > // Create a new MQTT connection to the broker. We are not setting > the > client ID. The broker will pick one for us. > System.out.println("Connecting to Artemis using MQTT"); > MQTT mqtt = new MQTT(); > mqtt.setConnectAttemptsMax(2); > mqtt.setReconnectAttemptsMax(1); > mqtt.setClientId("Test"); > > mqtt.setUserName("CommerceDN"); > mqtt.setPassword("manage"); > > > mqtt.setHost("ssl://myServer:1883"); > > BlockingConnection connection = mqtt.blockingConnection(); > connection.connect(); > System.out.println("Connected to Artemis"); > > String payload = "This is message"; > connection.publish("digital/test/data", payload.getBytes(), > QoS.EXACTLY_ONCE, false); > System.out.println("Sent messages."); > > connection.disconnect(); > } > > } > > > > > > -- > View this message in context: http://activemq.2283324.n4. > nabble.com/How-does-Apache-Artemis-manage-heap-space-RAM- > tp4723220p4723460.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >