In the configuration of your application, you can have things in the deployment descriptor ejb-jar.xml, for example
<javaee:env-entry> <javaee:description>JNDI logging context for this app</javaee:description> <javaee:env-entry-name>logback/context-name</javaee:env-entry-name> <javaee:env-entry-type>java.lang.String</javaee:env-entry-type> <javaee:env-entry-value>our-app-context</javaee:env-entry-value> </javaee:env-entry>
or, if you prefer it on standalone.xml server, run
<subsystem xmlns="urn:jboss:domain:naming:1.1"> <bindings> <simple name="my/jndi/key" value="MyJndiValue"/> </bindings> </subsystem>
the latter (standalone.xml) is the JBoss 7.1 function, available in EAP 6.0. In JBoss AS 7.0, you must use a dummy application in accordance with this thread .
source share