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

    Register custom JNDI resource in JBoss AS 7 standalone.xml

    mariusneo

      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:

      https://community.jboss.org/message/644991

       

      , 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"

                  type="blah.infrastructure.webapplication.server.webservices.PojoBean"

                  factory="org.apache.naming.factory.BeanFactory"

                  endpoint="http://localhost:8080/mywebservices"

                                    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?