Howdy, It might be that the fallback behavior is to use a public no-args constructor, ala JavaBeans.
Yoav Shapira --- Renato Romano <[EMAIL PROTECTED]> wrote: > In the tomcat documentation it is said that to configure a new JNDI > resource you should put a Resource entry in the Context portion of my > app, and a following ResourceParams, indicating the java class name of > the factory (the class that must implement ObjectFactory). This seems > quite correct: in order to build an object, I need a Factory!! But I > noticed it works fine even if the ResourceParams is not present ?? The > conclusion is: I'm surely missing something !! How can Tomcat know how > to build my object if I don't give the name of the factory class ??? > > > <Context path="/dg3s" docBase="dg3s" reloadable="true"> > <Resource name="myJndiName" type="com.blabla.MyType"/> > <!-- The following is not useful ?!!!! > <ResourceParams name="myJndiName"> > <parameter> > <name>factory</name> > <value>com.blabla.MyTypeFactory</value> > </parameter> > </ResourceParams> > --> > </Context> > > Any Help Appreciated!! > Renato > > ____________________________________ > Renato Romano > Sistemi e Telematica S.p.A. > Calata Grazie - Vial Al Molo Giano > 16127 - GENOVA > > e-mail: [EMAIL PROTECTED] > Tel.: 010 2712603 > _____________________________________ > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ===== Yoav Shapira [EMAIL PROTECTED] __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]