1 Reply Latest reply on Nov 19, 2009 6:03 AM by leonardo w

    Custom resource factory accessible through JNDI

    Jan Kostelansky Newbie

      I have developed resource factory which produces desired objects and is accessible through JNDI context implementing javax.naming.spi.ObjectFactory. It is possible to register such a factory in tomcat's server.xml. However our new customer requires Jboss 4.0.x.
      I have found a lot of information regarding jboss-web.xml file, but noting how to actually register factory in jboss JNDI.

      So far I know Jboss offers 3 of box (JNDIBindingServiceMgr, NamingAlias and ExternalContext) context, but non of them fill fill my needs.

      I could have managed to successfully create JNDI reference through org.jboss.naming.JNDIBindingServiceMgr but this is limited to Java Beans or text values. What I need is to hook implementation javax.naming.spi.ObjectFactory interface to jboss JNDI.


      <web-app version="2.4">
       <description>test web application which tests custom jndi context</description>
       Object factory for test resource manager.

      <?xml version="1.0" encoding="UTF-8"?>

      Thank you in advance, Jan