geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Duggan <rdug...@ca.ibm.com>
Subject Geronimo M5 JNDI resources
Date Tue, 18 Oct 2005 15:22:09 GMT

I would like to create some JNDI resources that can be configured as part
of a configuration file.   Using Tomcat this can be achieved by configuring
the resource factory in the server.xml file (as shown below).  How is it
recommended that this be achieved with Geronimo?  I initially had two
thoughts, either this could be hosted by the embedded Tomcat and configured
using the geronimo-web.xml file it could be hosted as part of the openejb
component and configured using the openejb-jar.xml.  Can anyone share some
advise?

                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            
  <Context ...>                                                             
    ...                                                                     
    <Resource name="bean/MyBeanFactory" auth="Container"                    
              type="com.mycompany.MyBean"/>                                 
    <ResourceParams name="bean/MyBeanFactory">                              
      <parameter>                                                           
        <name>factory</name>                                                
        <value>org.apache.naming.factory.BeanFactory</value>                
      </parameter>                                                          
      <parameter>                                                           
        <name>bar</name>                                                    
        <value>23</value>                                                   
      </parameter>                                                          
    </ResourceParams>                                                       
    ...                                                                     
  </Context>                                                                
                                                                            
                                                                            
                                                                            
                                                                            
                                                                            


Thanks in Advance,


Richard K. Duggan
On Demand Development and Incubation
IBM Toronto Laboratory
External: 905-413-2396
Internal: 969-2396


Mime
View raw message