Hi Romain,

Thanks for the reply. I was able to enable MQTT with code instead of
configuration. In my WAR I added a ServletContextListener (@WebListener) and
in the contextInitialized() I added these 3 lines:

/
brokerService = new BrokerService();
brokerService.addConnector("mqtt://0.0.0.0:1883");
brokerService.start()/

In the contextDestroyed():
/brokerService.stop();/

This added the required connector and is sufficient for the POC I am working
on . I will work on fixing my configuration later if required. I will create
a new thread for that if I cannot get it working. 

Abhishek



--
View this message in context: 
http://tomee-openejb.979440.n4.nabble.com/How-to-enable-MQTT-in-TomEE-tp4666817p4680522.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to