Skip to content

Instantly share code, notes, and snippets.

@dmlloyd
Created July 9, 2015 15:28
Show Gist options
  • Select an option

  • Save dmlloyd/7e48990a88cb3218fbed to your computer and use it in GitHub Desktop.

Select an option

Save dmlloyd/7e48990a88cb3218fbed to your computer and use it in GitHub Desktop.
Example configuration file, fiddle as needed
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2015, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<configuration>
<authentication-client xmlns="urn:jboss:elytron:1.0">
<key-stores>
<key-store name="keystore" type="jceks">
<resource name="keystore.ks"/>
</key-store>
</key-stores>
<rules>
<rule>
<match-protocol name="remote+http"/>
<match-host name="localhost"/>
<match-port number="8080"/>
<set-user-name name="user"/>
<key-store-credential key-store-name="keystore" alias="user"/>
</rule>
</rules>
</authentication-client>
<jboss-ejb-client xmlns="urn:jboss:ejb-client:3.0">
<discovery>
<static-ejb-discovery app-name="my-app" module-name="my-module" bean-name="MyEJB" uri="remote+http://localhost:8080"/>
<static-node-discovery node-name="node" uri="remote+http://localhost:8080"/>
</discovery>
</jboss-ejb-client>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment