You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Jan Stary <js...@artax.karlin.mff.cuni.cz> on 2001/12/20 11:40:53 UTC

Avalon example

Hello,

I installed Tomcat hapilly and fed it with Avalon jars. I read the `developing
with apache avalon' paper, and it looks just like what I want to have. Anyway, I
couldn't make a working (though minimal) example of it.

Is there some place where I could download such a thing? A minimal but working
example of Avalon-powered page with few components, running above Tomcat? I
found nothing like that on jakarta.apache.org

Thanks a lot

Jan


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


Re: Avalon example

Posted by Berin Loritsch <bl...@apache.org>.
Pavel Kolesnikov wrote:

> On Thu, 20 Dec 2001, Ulrich Mayring wrote:
> 
> 
>>Jan Stary wrote:
>>
>>>Is there some place where I could download such a thing? A minimal but working
>>>example of Avalon-powered page with few components, running above Tomcat? I
>>>found nothing like that on jakarta.apache.org
>>>
>>"Page" suggests you mean a web application. This is not possible with
>>Avalon out-of-the-box, but there are certainly many ways to realize a
>>web application. There are several working examples in cornerstone (e.g.
>>an FTP Server), did you download that?
>>
> 
> I have similar beginner's question about Avalon.
> 
> When I looked at Jakarta project, Avalon and Excalibur seemed be
> a nice framework for creating small server side Java applications
> - component management konfigurable by nice XML config file,
> features like connection pooling - it's exactly what I was looking
> for.


We're glad to hear it.  But you don't have to limit Avalon to the
server side....


> 
> I supposed it's possible to build something simple on Avalon
> only, because Phoenix seemed to be too heavy beast for simple
> tasks. (BTW cocoon is build on Avalon only, not Phoenix, doesn't
> it?)


You are correct.  Cocoon is Avalon only, and Phoenix is a kernel.
Phoenix/Cornerstone are used for creating servers.  Keep in mind
that while Cocoon's architecture is very simple and plugable, it
is far from a simple example.

If you want to create a Servlet, the Servlet becomes your parent
Container where all the initialization occurs.

 From there on in, you can use the ComponentManager to get the references
of all the Components you need for any specific task.



> Do you think I'm wrong and I should look at Phoenix instead of
> Avalon and Excalibur only?


It depends on what you are doing.  Avalon Framework, Excalibur, and
LogKit are flexible enough to use in any environment.  Once you start
diving into Phoenix/Cornerstone you are diving into the world of
creating servers.  There are places for special purpose servers,
and I wrote one from scratch (before I knew about Avalon).  It was
simple, and lacked a great number of features--all of which could be
filled in by Phoenix.




-- 

"They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety."
                 - Benjamin Franklin


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


Re: Avalon example

Posted by Pavel Kolesnikov <k...@les.cz>.
On Thu, 20 Dec 2001, Ulrich Mayring wrote:

> Jan Stary wrote:
> >
> > Is there some place where I could download such a thing? A minimal but working
> > example of Avalon-powered page with few components, running above Tomcat? I
> > found nothing like that on jakarta.apache.org
>
> "Page" suggests you mean a web application. This is not possible with
> Avalon out-of-the-box, but there are certainly many ways to realize a
> web application. There are several working examples in cornerstone (e.g.
> an FTP Server), did you download that?

I have similar beginner's question about Avalon.

When I looked at Jakarta project, Avalon and Excalibur seemed be
a nice framework for creating small server side Java applications
- component management konfigurable by nice XML config file,
features like connection pooling - it's exactly what I was looking
for.

I supposed it's possible to build something simple on Avalon
only, because Phoenix seemed to be too heavy beast for simple
tasks. (BTW cocoon is build on Avalon only, not Phoenix, doesn't
it?)

Do you think I'm wrong and I should look at Phoenix instead of
Avalon and Excalibur only?

Thanks

Pavel




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


Re: Avalon example

Posted by Ulrich Mayring <ul...@denic.de>.
Jan Stary wrote:
> 
> Is there some place where I could download such a thing? A minimal but working
> example of Avalon-powered page with few components, running above Tomcat? I
> found nothing like that on jakarta.apache.org

"Page" suggests you mean a web application. This is not possible with
Avalon out-of-the-box, but there are certainly many ways to realize a
web application. There are several working examples in cornerstone (e.g.
an FTP Server), did you download that?

Ulrich

-- 
Ulrich Mayring
DENIC eG, Systementwicklung

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


Re: Avalon example

Posted by Peter Donald <pe...@apache.org>.
On Thu, 20 Dec 2001 21:40, Jan Stary wrote:
> I installed Tomcat hapilly and fed it with Avalon jars. I read the
> `developing with apache avalon' paper, and it looks just like what I want
> to have. Anyway, I couldn't make a working (though minimal) example of it.
>
> Is there some place where I could download such a thing? A minimal but
> working example of Avalon-powered page with few components, running above
> Tomcat? I found nothing like that on jakarta.apache.org

Theres no "ready made" example of cornerstone though there was one submitted 
a few weeks ago. It really depends on which bits of Avalon you want to use. I 
suspect the best thing to do is have a look at the ExcaliburComponentManager 
because it is relatively easy to get started with. However I have never used 
it so it is best to ask someone else about specifics :)

-- 
Cheers,

Pete

--------------------------------------------
Sorry, I forgot to take my medication today.
--------------------------------------------

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