JBoss Community

How to add Custom Resource Factory

created by Saurabh Arora in JNDI and Naming - View the full discussion

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?

Reply to this message by going to Community

Start a new discussion in JNDI and Naming at Community