0 Replies Latest reply on Jul 10, 2012 9:41 AM by Marius Grama

    Register custom JNDI resource in JBoss AS 7 standalone.xml

    Marius Grama Newbie

      Can anyone point me to some documentation or provide me a concrete example on how i could register a custom resource in JNDI via standalone.xml file.


      I've already found this discussion:



      , but it is still not clear for me how to register my custom resource.


      In Tomcat/conf/context.xml file I've defined my custom JNDI resource in this manner:


      <Resource name="blah/bean/WSConfigBean" auth="Container"




                                    requestHeaderUser="myuser" requestHeaderPlainPassword="mypwd" />



      Could somebody tell me how could i do this in the urn:jboss:domain:naming:1.1 subsystem from standalone.xml file in JBoss AS 7.1.x?