Saurabh Arora [http://community.jboss.org/people/sarora] created the discussion

"How to add Custom Resource Factory"

To view the discussion, visit: http://community.jboss.org/message/591979#591979

--------------------------------------------------------------
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
 
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
[http://community.jboss.org/message/591979#591979]

Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to