1 Reply Latest reply on Mar 9, 2011 3:45 AM by Prav Ford

    How to add Custom Resource Factory

    Saurabh Arora Newbie

      I would like to register a POJO with JNDI Context inside JBoss.

       

       

      From the following tomcat page, I figured out how to register a custom resource factory for my service in JNDI:

       

      http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html#Adding_Custom_Resource_Factories

       

       

      This required me to add the following to  $CATALINA_HOME/conf/server.xml :

       

       

      <Context ...>

        ...

        <Resource name="bean/MyBeanFactory" auth="Container"

                  type="com.mycompany.MyBean"

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

                  bar="23"/>

        ...

      </Context>

       

      Anyone know how I can do the same with JBoss?