I did some tries but I could not find correct version of artemis-openwire-protocol...jar with which Wildfly 10 could start acceptor with openwire protocol.
Maybe you'll have better luck. Those are my notes:
mkdir -p ./modules/system/layers/base/org/apache/activemq/artemis/protocol/openwire/main
# Compile Artemis and copy correct jar from artemis-protocols/artemis-openwire-protocol/target/ to new module
cp <artemis_project>/artemis-openwire-protocol-1.x.x...jar .
vi module.xml # add there following - change name of the jar per your version
<?xml version="1.0" encoding="UTF-8"?> <module xmlns="urn:jboss:module:1.3" name="org.apache.activemq.artemis.protocol.openwire"> <resources> <resource-root path="artemis-openwire-protocol-1.x.x...jar"/> </resources> <dependencies> <module name="javax.jms.api"/> <!-- required to load ActiveMQ protocol SPI --> <module name="org.apache.activemq.artemis"/> </dependencies> </module>
Modify module.xml for org.apache.activemq.artemis module and there as dependency org.apache.activemq.artemis.protocol.openwire:
<module name="org.apache.activemq.artemis.protocol.openwire" services="import" optional="true"/>
Create new socket binding and acceptor in standalone-full-ha.xml with openwire using CLI:
#add socket binding for openwire acceptor on 61616
Cross your fingers and start!
Thanks for the reply Miroslav. I guess it looks like at the current time this support isn't fully baked yet, so we'll likely stick with our stand-alone ActiveMQ server for the time being, and give the OpenWire support a chance to mature.
Couple of points...
- Wildfly uses ActiveMQ Artemis pretty much exclusively as a JMS provider so connectors for other protocols (e.g. REST, STOMP, OpenWire, AMQP, etc.) are not provided by default. Therefore, don't let the fact that OpenWire isn't configured by default necessarily make you think it's not fully baked.
- That said, OpenWire support is not fully baked in ActiveMQ Artemis 1.2. There's good support for basic stuff, but not a lot beyond that. A lot of work has been done for 1.3 which should provide better performance and coverage when it is released (and when Wildfly integrates it).
Thanks for the clarification Justin.