Hi Dan,

We're using castor with a model 2+ like presentation layer (essentially an
extension to struts) within Weblogic 5.1.

For read-only data we use straight castor to talk to the database
(datasource actually).  For read-write data (transactional data) we use
coarse grained entity beans (BMP) that use castor for persistence.

As far as the location of the mapping and database configuration files go.
We started with a lazy configuration approach where the servlet would check
for a JDO in JNDI upon initialization and create one if it didn't exist.
Since then we've moved to having a a separate jar file with a startup class
for creating a JDO and registering it within JNDI.

Let me know if u want more details.

thanks.

-shehryar

-----Original Message-----
From: Dan Zainea [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 25, 2001 1:39 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] Deployment of J2EE application using Castor


I am developing a J2EE application using Castor and Struts on Tomcat 4.0. So
far, Castor has proven to be a very helpful tool, I used it to generate the
value objects and for persistence logic and I am very happy with the
development model and the fact that it saves me a lot of development time.

I have a question on deployment though, I am not sure where to put the
mapping.xml and database.xml files, I assume in web-inf/ directory, can
anyone confirm?

Also, I am looking for tips on architecture, my current architecture uses
Castor JDO in the data access objects (DAO) classes, but I am interested to
see how people with more experience with Castor JDO have used for J2EE
applications (EJB/non-EJB scenarios).

Thanks in advance,

Dan.

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

-----------------------------------------------------------
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

Reply via email to