<div dir="ltr">Hi,<div><br></div><div class="gmail_extra"><div class="gmail_quote">On Thu, Mar 31, 2016 at 4:38 PM, Thomas Darimont <span dir="ltr">&lt;<a href="mailto:thomas.darimont@googlemail.com" target="_blank">thomas.darimont@googlemail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>would you mind sharing your keycloak configuration with a JMS resource-adapter?</div></div></blockquote><div><br></div><div>Here are the changes I made to standalone/configuration/standalone.xml:</div><div><br></div><div>1. Added the following extension under /server/extensions:<br><br></div><div>&lt;extension module=&quot;org.wildfly.extension.messaging-activemq&quot;/&gt;</div><div><br></div><div>2. Added the following subsystem under /server/profile:</div><div><br></div><div>&lt;subsystem xmlns=&quot;urn:jboss:domain:messaging-activemq:1.0&quot;&gt;</div><div>    &lt;server name=&quot;default&quot;&gt;</div><div><div>        &lt;security enabled=&quot;false&quot; /&gt; &lt;!-- I didn&#39;t need to use security as everything was localhost --&gt;</div><div>        &lt;remote-acceptor name=&quot;netty&quot; socket-binding=&quot;messaging&quot;/&gt;</div><div>        &lt;remote-connector name=&quot;netty&quot; socket-binding=&quot;messaging&quot;/&gt;</div><div>        &lt;in-vm-acceptor name=&quot;in-vm&quot; server-id=&quot;0&quot;/&gt;</div><div>        &lt;in-vm-connector name=&quot;in-vm&quot; server-id=&quot;0&quot;/&gt;</div><div>        &lt;pooled-connection-factory name=&quot;activemq-ra&quot;</div><div>                    transaction=&quot;xa&quot; connectors=&quot;in-vm&quot;</div><div>                    entries=&quot;java:/ConnectionFactory java:/JmsXA java:jboss/DefaultJMSConnectionFactory&quot;/&gt;</div><div>        &lt;jms-topic name=&quot;KeycloakEvents&quot; entries=&quot;jms/KeycloakEvents java:jboss/exported/jms/KeycloakEvents&quot; /&gt;</div></div><div>    &lt;/server&gt;</div><div>&lt;/subsystem&gt;</div><div><br></div><div>3. Added the following socket-binding under /server/socket-binding-group:</div><div><br></div><div><div>&lt;socket-binding name=&quot;messaging&quot; port=&quot;61616&quot;/&gt;</div><div><br></div></div><div>This enabled my external process to listen to the JMS topic. </div><div><br></div><div>I attached a full example to this message. The changes have been marked with &lt;!-- keycloak-events-jms --&gt;.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Did you manage to configure a new resource-adapter via jboss-cli?</div></div></blockquote><div><br></div><div>No, I haven&#39;t used jboss-cli but modified the configuration file directly.</div><div><br></div><div>My implementation of KEYCLOAK-2302 can be found at Github: <a href="https://github.com/raehalme/keycloak/tree/KEYCLOAK-2302">https://github.com/raehalme/keycloak/tree/KEYCLOAK-2302</a>.</div><div><br></div><div>I have not sent a PR as I have yet to complete the Arquillian integration tests requested by Stian. Other work has kept me busy and I haven&#39;t had a chance to even rebase against 1.9.x.</div><div><br></div><div>Best regards,</div><div>Thomas </div></div><br>
</div></div>