[jboss-user] [JNDI and Naming] - How to add Custom Resource Factory
Saurabh Arora
do-not-reply at jboss.com
Tue Mar 8 21:16:58 EST 2011
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]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110308/07d6d574/attachment.html
More information about the jboss-user
mailing list