I do store it into JNDI. The JDO object is thread safe. It is the Database object that each thread then uses.
That has been a pretty good approach. And as for the path to the database.xml file, use a URL... ******************************************** Steve Ebersole IT Integration Engineer Vignette Corporation 512.741.4195 Visit http://www.vignette.com ******************************************** -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 5:16 PM To: [EMAIL PROTECTED] Subject: Re: [castor-dev] Can't find database.xml in weblogic 6.1 startup class I'd like to see the servlet .. With the new j2ee using the getClass.getResource method just isn't practical. Classes may be loaded by the ejb module the web application module or through the system classpath. Storing the JDO in JNDI may be more practical but wouldn't that require having a pool of JDO's to get decent performance ?? Have you used that approach. Is a single INSTANCE actually be shared by multiple components If JNDI isn't used then an absolute path has to be used to load the database.xml. Thanks Kevin "Verhagen, Tjeerd" To: [EMAIL PROTECTED] <VerhagenT@lo cc: gica.com> Subject: Re: [castor-dev] Can't find database.xml in weblogic 6.1 startup class 04/18/2002 01:40 PM Please respond to castor-dev There seems to be a lot of questions around they loading of the runtime configuration file(s) ('mapping.xml' / 'database.xml'). I've written a servlet that is simular to the one used for initializing of Log4J. See: http://jakarta.apache.org/log4j/docs/manual.html part 'Initialization servlet' Through this servlet it's possible to set the path to the '*.xml' files through your web-containers 'WEB-INF/web.xml' configuration file. Let me now if it is useful to post here. Tjeerd PS: Sorry I hat to do a lot of work today, this Castor init servlet still needs to be tested. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] > Sent: donderdag 18 april 2002 19:29 > To: [EMAIL PROTECTED] > Subject: [castor-dev] Can't find database.xml in weblogic 6.1 startup > class > > > Has anybody written a startup class in weblogic 6.1 which uses caster. > All dependent classes need to go in in the serverclasses > directory - which > means that the database and mapping xml files need to go in there. > > This however causes big problems. The ejb's and the servlets > will not be > able to load classes if the xml files are in the system classpath. > > Anybody run into this and have a solution > > Thanks > Kevin > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev > This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
