<div dir="ltr">It would probably be a good idea although I think this JMS publishing is such a basic feature that it should be part of the core package.<div><br></div><div>If you have a chance to help me get started with the Arquillian part, I&#39;m happy to send the PR. I should have time to work on this again within the next week or so.</div><div><br></div><div>Best regards,</div><div>Thomas</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 4, 2016 at 12:26 PM, Stian Thorgersen <span dir="ltr">&lt;<a href="mailto:sthorger@redhat.com" target="_blank">sthorger@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I wonder if we should have a Keycloak extensions repository where we could place things like this rather than adding directly to master.</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On 31 March 2016 at 20:18, Thomas Raehalme <span dir="ltr">&lt;<a href="mailto:thomas.raehalme@aitiofinland.com" target="_blank">thomas.raehalme@aitiofinland.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi,<div><br></div><div class="gmail_extra"><div class="gmail_quote"><span>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></span><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><span><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></span><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" target="_blank">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>
<br></div></div><span class="">_______________________________________________<br>
keycloak-dev mailing list<br>
<a href="mailto:keycloak-dev@lists.jboss.org" target="_blank">keycloak-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a><br></span></blockquote></div><br></div>
</blockquote></div><br><br>
</div></div>