I've used castor from a war file - it was not a problem.
public Database getDatabase()
{
Database db = null;
try
{
if(jdo == null)
{
jdo = new JDO();
java.net.URL dbConfig =
CSSDatabase.class.getResource(
"/database.xml" );
if(dbConfig == null)
{
throw new ServletException("Oops");
}
jdo.setConfiguration( dbConfig.toString() );
jdo.setDatabaseName( "default" );
}
db = jdo.getDatabase();
}
catch(Exception e)
{
System.out.println(""+e);
}
return db;
}
-----Original Message-----
From: Tim Holloway [mailto:[EMAIL PROTECTED]]
Sent: 17 December 2002 19:10
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Here a an interesting article on castor
Personally, I was stopped dead in the water because there was no easy
way to
use a mapping from a WAR. I admit to some personal self-interest here,
but that really DOES seem to me to be a critical need if you want Castor
to
be seen as a productive tool for webapp development. I solved my
particular
problem quickly by switching to Zeus, but there's a whole raft of webapp
problems
that Zeus isn't a good fit for that Castor would be.
Tim
On 2002-12-17 10:46 "Colwell, David" wrote:
> The testing/development was done using the latest version of Castor,
v0.9.4.1. The problems
> I mention are recognized at least by other members of this mailing
list but remain unsolved.
> I too would like to hear response to the issues raised as we plan to
continue with Castor on
> our current project. Are others successfully using Castor in an
n-tier environment with a
> complex data model? Have they experienced the same issues and what
are their solutions?
>
> Thanks,
> Dave
>
> -----Original Message-----
> From: tek1 [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 17, 2002 9:21 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [castor-dev] Here a an interesting article on castor
>
>
> what version of castor was used by the person who wrote the article?
>
> have the problems that he mentioned by solved in the most current
version
> of castor?
>
> pr-wise, it would be good if someone very experienced with castor
wrote a
> response or follow-up on the article to answer some of the questions
raised
> by the article.
>
> thank you.
>
>
> > O/R Mapping with Castor JDO in the Real World
> >
> >
http://www.spiderlogic.com/modules.php?name=News&file=article&sid=16
>
> -----------------------------------------------------------
> 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
>
--
"The cost benefit outweighs the fact that customer satisfaction levels
may dip."
Brian Huff, Datamonitor PLC
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
--
This e-mail is confidential and is intended for the named recipient only. If
you receive it in error please destroy the message and all copies. Kainos
Software Ltd. does not accept liability for damage sustained as a result of
malicious software (e.g. viruses). Kainos does not accept liability for, or
permit, the creation of contracts on its behalf by e-mail, the publication of
any defamatory statement by its employees by e-mail, or changes subsequently
made to the original message. The Company's registered office is located at
4-6 Upper Crescent, Belfast, BT7 1NT, Northern Ireland, Tel +44 28 9057 1100.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev