You are viewing a plain text version of this content. The canonical link for it is here.
Posted to phoenix-dev@avalon.apache.org by Andrei Ivanov <my...@surfeu.fi> on 2002/05/21 17:45:45 UTC

Using avalon components in Phoenix

Hi list
I have avalon application which consist of

1. several jars
2. a number of configuration files (*.xconf; *.xml; *.dtd) which avalon
classes load (via class loader) and use.
3 OR one war file instead of 1 and 3 (which includes both 1 and 3)

Now I need to initialize this avalon application and access it's services
from my phoenix block.

I would like to ask about better way to include this application into sar
file. So far I see the following structure:

1. jars will go into SAR-INF/lib
2. configurations (*.xconf; *.xml; *.dtd) will be placed under into
SAR-INF/classes or under SAR-INF if first variant will not work.

My primary concern is about correct location for latter. Will those configs
be found? Will they interfere with phoenix bootstrapping mechanism? Are
there other ways to integrate avalon applications into phoenix (directory
structure for sar file)?

Andrei



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Using avalon components in Phoenix

Posted by Peter Donald <pe...@apache.org>.
On Wed, 22 May 2002 01:45, Andrei Ivanov wrote:
> 1. jars will go into SAR-INF/lib
> 2. configurations (*.xconf; *.xml; *.dtd) will be placed under into
> SAR-INF/classes or under SAR-INF if first variant will not work.
>
> My primary concern is about correct location for latter. Will those configs
> be found? Will they interfere with phoenix bootstrapping mechanism? Are
> there other ways to integrate avalon applications into phoenix (directory
> structure for sar file)?

It really depends on what you want to do. Personally what I do is create a 
conf/ dir in my .sar file and then any config files (besides those used by 
phoenix) rest in there. 

Everything outside the SAR-INF directory will be extracted into your 
applications home directory (accessible via the BlockContext). So you just 
load the config files from the files relative to app directory.

If you want to use jars in writing Blocks then I would put them in SAR-INF/lib 
but if you want to manually load them (for whatever reason) or create any 
ClassLoaders etc then I would consider moving them into a dir like "lib/" or 
something.

-- 
Cheers,

Peter Donald


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>