RE: [Kernel22] How to develop a component?

2004-04-09 Thread Leo Sutic
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Leo Simons > > Leo Sutic wrote: > >>From: news [mailto:[EMAIL PROTECTED] On Behalf Of Leo Simons > >> > >>again, from memory, the real tough part is the barrier that's > >>in place around the reference. > > > > I'd say the hard part is when A

Re: [Kernel22] How to develop a component?

2004-04-08 Thread Leo Simons
Leo Sutic wrote: From: news [mailto:[EMAIL PROTECTED] On Behalf Of Leo Simons again, from memory, the real tough part is the barrier that's in place around the reference. I'd say the hard part is when A has significant state that isn't preserved when it dies. right! Any reason it can't be preserv

RE: [Kernel22] How to develop a component?

2004-04-08 Thread Ralph Goers
ed. Swappable - should be swapped using ALT3 Nothing declared - should be swapped using ALT2. Ralph -Original Message- From: Stefano Mazzocchi [mailto:[EMAIL PROTECTED] Sent: Thursday, April 08, 2004 12:45 PM To: [EMAIL PROTECTED] Subject: Re: [Kernel22] How to develop a component?

RE: [Kernel22] How to develop a component?

2004-04-08 Thread Leo Sutic
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Leo Simons > > again, from memory, the real tough part is the barrier that's > in place around the reference. I'd say the hard part is when A has significant state that isn't preserved when it dies. This makes it seem from client's perspective

Re: [Kernel22] How to develop a component?

2004-04-08 Thread Stefano Mazzocchi
Ralph Goers wrote: I think you have captured this pretty well. Some thoughts: ALT1 - IMO the disadvantages are worse than they appear. Yes, distributed apps and DB connections exhibit this behavior, but when you are talking about ALL the cocoon components having this behavior the code will tur

Re: [Kernel22] How to develop a component?

2004-04-08 Thread Leo Simons
Leo Sutic wrote: No, it doesn't. (Tell it to the person you quoted, though.) isn't this a group discussion? :-D. Point taken though. ALT1: Wires are severed immediately, the component is reloaded. can only do that on a coarse component level, otherwise its unmanageable. ALT2: Wires are left intac

RE: [Kernel22] How to develop a component?

2004-04-08 Thread Leo Sutic
> -Original Message- > From: Ralph Goers [mailto:[EMAIL PROTECTED] > Sent: den 8 april 2004 19:52 > To: '[EMAIL PROTECTED]' > Subject: RE: [Kernel22] How to develop a component? > > > I think you have captured this pretty well. Some thoughts: >

RE: [Kernel22] How to develop a component?

2004-04-08 Thread Ralph Goers
TED] Sent: Thursday, April 08, 2004 10:29 AM To: [EMAIL PROTECTED] Subject: RE: [Kernel22] How to develop a component? SCENARIO: Client uses component. Component is to be hot-swapped. What does client percieve when component is swapped? I.e. from the client's point of view, what happens? An

RE: [Kernel22] How to develop a component?

2004-04-08 Thread Leo Sutic
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Leo Simons > > Leo Sutic wrote: > > This is contrary to Avalon semantics, where a component reference, > > once obtained, remains valid until it is released. > > right. It's contrary to java semantics, even. Not really. It is more like the s

Re: [Kernel22] How to develop a component?

2004-04-08 Thread Leo Simons
Leo Sutic wrote: From: news [mailto:[EMAIL PROTECTED] On Behalf Of Leo Simons >> write a failing testcase that doens't require me to understand every little detail of cocoon internals and I could try. Easy. made that into an actual testcase :-D: public abstract class ReloadingProxyTestCase exte

RE: [Kernel22] How to develop a component?

2004-04-08 Thread Ralph Goers
PROTECTED] Sent: Thursday, April 08, 2004 7:38 AM To: [EMAIL PROTECTED] Subject: RE: [Kernel22] How to develop a component? Believe me, I'm really just curious. Would the new code be the same or just similar? Of course the lookup is different as a different method is used. From what I unde

RE: [Kernel22] How to develop a component?

2004-04-08 Thread Leo Sutic
> > From: Carsten Ziegeler [mailto:[EMAIL PROTECTED] > > > > So, if I understand you correctly, the only difference is > that I can > > get an exception that I wasn't prepared to get when using Avalon. > > Yep, that's pretty much it. One more thing - since all components are proxied now, you'

RE: [Kernel22] How to develop a component?

2004-04-08 Thread Carsten Ziegeler
Leo Sutic wrote: > > > From: Carsten Ziegeler [mailto:[EMAIL PROTECTED] > > > > So, if I understand you correctly, the only difference is > that I can > > get an exception that I wasn't prepared to get when using Avalon. > > Yep, that's pretty much it. > > > If that's try then I don't see any

RE: [Kernel22] How to develop a component?

2004-04-08 Thread Leo Sutic
> From: Carsten Ziegeler [mailto:[EMAIL PROTECTED] > > So, if I understand you correctly, the only difference is that I > can get an exception that I wasn't prepared to get when using > Avalon. Yep, that's pretty much it. > If that's try then I don't see any reason why this > wouldn't work wit

RE: [Kernel22] How to develop a component?

2004-04-08 Thread Carsten Ziegeler
Leo Sutic wrote: > > > -Original Message- > > From: Carsten Ziegeler [mailto:[EMAIL PROTECTED] > > Sent: den 8 april 2004 16:24 > > To: [EMAIL PROTECTED] > > Subject: RE: [Kernel22] How to develop a component? > > > > > > > &

RE: [Kernel22] How to develop a component?

2004-04-08 Thread Leo Sutic
> -Original Message- > From: Carsten Ziegeler [mailto:[EMAIL PROTECTED] > Sent: den 8 april 2004 16:24 > To: [EMAIL PROTECTED] > Subject: RE: [Kernel22] How to develop a component? > > > > > > > From: Carsten Ziegeler [mailto:[EMAIL PROTECTED] &

Re: [Kernel22] How to develop a component?

2004-04-08 Thread Sylvain Wallez
Leo Sutic wrote: From: news [mailto:[EMAIL PROTECTED] On Behalf Of Leo Simons Stefano Mazzocchi wrote: If you have two blocks in the avalon sandbox, you could share them between them, but there is no (easy? elegant?) way you can pass them arond *OUTSIDE* the sandbox and stil

RE: [Kernel22] How to develop a component?

2004-04-08 Thread Carsten Ziegeler
> > > From: Carsten Ziegeler [mailto:[EMAIL PROTECTED] > > > > How does the working code look like? > > The working code of what? > > The adapter / sandbox / compatibility layer? > The working code with some cocoon interfaces. I guess the component interface for the stateful component is the s

RE: [Kernel22] How to develop a component?

2004-04-08 Thread Leo Sutic
> From: Carsten Ziegeler [mailto:[EMAIL PROTECTED] > > How does the working code look like? The working code of what? The adapter / sandbox / compatibility layer? /LS

RE: [Kernel22] How to develop a component?

2004-04-08 Thread Carsten Ziegeler
Leo Sutic wrote: > > interface StatefulComponent { > public void login (); // never throws any exception, ever. > public void doOperation (); // never throws any exception, ever. > public void logout (); // never throws any exception, ever. > } > > Client.java: > > StatefulCompon

RE: [Kernel22] How to develop a component?

2004-04-08 Thread Leo Sutic
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Leo Simons > > Stefano Mazzocchi wrote: > > If you have two blocks in the avalon sandbox, you could share them > > between them, but there is no (easy? elegant?) way you can > pass them > > arond *OUTSIDE* the sandbox and still allow blocks t

Re: [Kernel22] How to develop a component?

2004-04-08 Thread Leo Simons
Stefano Mazzocchi wrote: If you have two blocks in the avalon sandbox, you could share them between them, but there is no (easy? elegant?) way you can pass them arond *OUTSIDE* the sandbox and still allow blocks to be hotswappable and runtime polymorphic. [I would gladly be proven wrong here!]

RE: [Kernel22] How to develop a component?

2004-04-08 Thread Carsten Ziegeler
Stefano Mazzocchi wrote: > > I want to create a migration path away from avalon. > > I propose to have a sandbox so that people know that somehow > they should be thinking about migration. It's sort of a > framework deprecation signal. > > The idea is that we'll start with a sandbox, then peop

RE: [Kernel22] How to develop a component?

2004-04-08 Thread Carsten Ziegeler
Stefano Mazzocchi wrote: > > Bertrand Delacretaz wrote: > > > Le 7 avr. 04, à 11:33, Carsten Ziegeler a écrit : > > > >> ...Exactly my point :) But the current idea of blocks is to only > >> retain this possibility inside a sandbox which means it > can't be used "inside" > >> blocks. So if I d

RE: [Kernel22] How to develop a component?

2004-04-08 Thread Leo Sutic
> From: Stefano Mazzocchi [mailto:[EMAIL PROTECTED] > > If you have two blocks in the avalon sandbox, you could share them > between them, but there is no (easy? elegant?) way you can pass them > arond *OUTSIDE* the sandbox and still allow blocks to be hotswappable > and runtime polymorphic.

Re: [Kernel22] How to develop a component?

2004-04-08 Thread Stefano Mazzocchi
Nicola Ken Barozzi wrote: Leo Simons wrote: ... avalon-framework very rarely doesn't get built by gump. It's the ECM dependency that's causing the ripples, and the big set of dependencies ECM has itself. Since it seems ECM is being put into the freezer anyway, just be pragmatic and make the gu

Re: [Kernel22] How to develop a component?

2004-04-08 Thread Stefano Mazzocchi
Steven Noels wrote: On 07 Apr 2004, at 11:09, Nicola Ken Barozzi wrote: The issue is not so technical as it's of indipendence from something that, in the good and the bad, has not helped Cocoon be built by Gump for ages now. As much as I like "Gumpinal Correctness" for the sanity of us Cocoon

Re: [Kernel22] How to develop a component?

2004-04-08 Thread Stefano Mazzocchi
Carsten Ziegeler wrote: Nicola Ken Barozzi wrote: The issue is not so technical as it's of indipendence from something that, in the good and the bad, has not helped Cocoon be built by Gump for ages now. As I said, we would only have a reference to avalon framework version x.y.z - a fixed versi

Re: [Kernel22] How to develop a component?

2004-04-08 Thread Stefano Mazzocchi
Bertrand Delacretaz wrote: Le 7 avr. 04, à 11:33, Carsten Ziegeler a écrit : ...Exactly my point :) But the current idea of blocks is to only retain this possibility inside a sandbox which means it can't be used "inside" blocks. So if I develop my app as a block, I can't use these components insi

Re: [Kernel22] How to develop a component?

2004-04-08 Thread Steven Noels
On 08 Apr 2004, at 14:50, Stefano Mazzocchi wrote: At the same time, to put it rather explicitly: I don't want anything in org.apache.avalon.* to be a core dependency of org.apache.cocoon.* anymore because I don't trust avalon anymore: avalon is quicksand and you can't expect it to be there tom

Re: [Kernel22] How to develop a component?

2004-04-08 Thread Stefano Mazzocchi
I want to create a migration path away from avalon. I propose to have a sandbox so that people know that somehow they should be thinking about migration. It's sort of a framework deprecation signal. The idea is that we'll start with a sandbox, then people realize that blocks give them better fu

Re: [Kernel22] How to develop a component?

2004-04-08 Thread Stefano Mazzocchi
Reinhard Pötz wrote: So, like we already said before, it is *totally* possible to have a block load avalon components thru an avalon sandbox (sort of a avalon->cocoon adapter). This allows you to reuse your avalon stuff "AS IS". But this also means that your block cannot expose those component

Re: [Kernel22] How to develop a component?

2004-04-08 Thread Vadim Gritsenko
Sylvain Wallez wrote: Steven Noels wrote: On 07 Apr 2004, at 16:05, Nicola Ken Barozzi wrote: Steven Noels wrote: On 07 Apr 2004, at 11:09, Nicola Ken Barozzi wrote: The issue is not so technical as it's of indipendence from something that, in the good and the bad, has not helped Cocoon be b

Re: [Kernel22] How to develop a component?

2004-04-08 Thread Sylvain Wallez
Steven Noels wrote: On 07 Apr 2004, at 16:05, Nicola Ken Barozzi wrote: Steven Noels wrote: On 07 Apr 2004, at 11:09, Nicola Ken Barozzi wrote: The issue is not so technical as it's of indipendence from something that, in the good and the bad, has not helped Cocoon be built by Gump for ages n

Re: [Kernel22] How to develop a component?

2004-04-07 Thread Steven Noels
On 07 Apr 2004, at 16:05, Nicola Ken Barozzi wrote: Steven Noels wrote: On 07 Apr 2004, at 11:09, Nicola Ken Barozzi wrote: The issue is not so technical as it's of indipendence from something that, in the good and the bad, has not helped Cocoon be built by Gump for ages now. As much as I like

Re: [Kernel22] How to develop a component?

2004-04-07 Thread Carsten Ziegeler
Nicola Ken Barozzi wrote: > Leo Simons wrote: > ... > > avalon-framework very rarely doesn't get built by gump. It's the ECM > > dependency that's causing the ripples, and the big set of dependencies > > ECM has itself. > > > > Since it seems ECM is being put into the freezer anyway, just be > > pr

Re: [Kernel22] How to develop a component?

2004-04-07 Thread Nicola Ken Barozzi
Leo Simons wrote: ... avalon-framework very rarely doesn't get built by gump. It's the ECM dependency that's causing the ripples, and the big set of dependencies ECM has itself. Since it seems ECM is being put into the freezer anyway, just be pragmatic and make the gump build of cocoon depend o

Re: [Kernel22] How to develop a component?

2004-04-07 Thread Nicola Ken Barozzi
Steven Noels wrote: On 07 Apr 2004, at 11:09, Nicola Ken Barozzi wrote: The issue is not so technical as it's of indipendence from something that, in the good and the bad, has not helped Cocoon be built by Gump for ages now. As much as I like "Gumpinal Correctness" for the sanity of us Cocoon

Re: [Kernel22] How to develop a component?

2004-04-07 Thread Leo Simons
Hi guys! Nicola Ken Barozzi wrote: And the dependency is very minimal. It's just a dependency against the avalon framework api version 4.1.5 - a released version. There is no need in following the development of Avalon. The issue is not so technical as it's of indipendence from something that, i

Re: [Kernel22] How to develop a component?

2004-04-07 Thread Steven Noels
On 07 Apr 2004, at 11:09, Nicola Ken Barozzi wrote: The issue is not so technical as it's of indipendence from something that, in the good and the bad, has not helped Cocoon be built by Gump for ages now. As much as I like "Gumpinal Correctness" for the sanity of us Cocoon committers, I'm not s

RE: [Kernel22] How to develop a component?

2004-04-07 Thread Carsten Ziegeler
Nicola Ken Barozzi wrote: > The issue is not so technical as it's of indipendence from > something that, in the good and the bad, has not helped > Cocoon be built by Gump for ages now. > As I said, we would only have a reference to avalon framework version x.y.z - a fixed version so there should

RE: [Kernel22] How to develop a component?

2004-04-07 Thread Leo Sutic
> From: Stefano Mazzocchi [mailto:[EMAIL PROTECTED] > > So, like we already said before, it is *totally* possible to have a > block load avalon components thru an avalon sandbox (sort of a > avalon->cocoon adapter). This allows you to reuse your avalon > stuff "AS IS". But this also means tha

RE: [Kernel22] How to develop a component?

2004-04-07 Thread Carsten Ziegeler
Bertrand Delacretaz wrote: > > I thought the idea was to provide an ECM-like sandbox > *inside* a block (reading Stefano's last message on this > thread), in which case you can use your Avalon components > inside a Cocoon block, but they cannot be made available to > other blocks. > > But I

Re: [Kernel22] How to develop a component?

2004-04-07 Thread Bertrand Delacretaz
Le 7 avr. 04, à 11:33, Carsten Ziegeler a écrit : ...Exactly my point :) But the current idea of blocks is to only retain this possibility inside a sandbox which means it can't be used "inside" blocks. So if I develop my app as a block, I can't use these components inside my app!... I thought the

RE: [Kernel22] How to develop a component?

2004-04-07 Thread Carsten Ziegeler
Nicola Ken Barozzi wrote: > > Carsten Ziegeler wrote: > ... > > To be honest, I still don't buy the classloader problem theory. I'm > > just saying that we should try to support interfaces like > Configurable etc. > > For Cocoon blocks or for other components? > For all components :) A block m

Re: [Kernel22] How to develop a component?

2004-04-07 Thread Nicola Ken Barozzi
Carsten Ziegeler wrote: ... To be honest, I still don't buy the classloader problem theory. I'm just saying that we should try to support interfaces like Configurable etc. For Cocoon blocks or for other components? ... And the dependency is very minimal. It's just a dependency against the avalon

RE: [Kernel22] How to develop a component?

2004-04-06 Thread Carsten Ziegeler
"Stefano Mazzocchi" <[EMAIL PROTECTED]> wrote: > > I don't buy this. > > The "component portability" argument is moot, it's a myth, you can't > even move components from one container to another in avalon and ECM > is deprecated, now even fortress is deprecated. > Sorry, but that's not 100% true.

Re: [Kernel22] How to develop a component?

2004-04-06 Thread Carsten Ziegeler
"Bruno Dumon" <[EMAIL PROTECTED]> wrote: > > Haven't thought deeply about this, but just some thoughts (without > choosing either way for now): > > - for Cocoon-specific components (e.g. sitemap components) it doesn't > matter that much, except for the porting effort, both for us and for > users wh

Re: [Kernel22] How to develop a component?

2004-04-06 Thread Reinhard Pötz
Stefano Mazzocchi wrote: Sylvain Wallez wrote: Nicola Ken Barozzi wrote: Carsten Ziegeler wrote: ... I strongly suggest that we start with org.apache.cocoon.* to avoid these problems down the road (including, yes, gump problems) Yes, I understand of course all these problems, but I'm really

Re: [Kernel22] How to develop a component?

2004-04-06 Thread Stefano Mazzocchi
Sylvain Wallez wrote: Nicola Ken Barozzi wrote: Carsten Ziegeler wrote: ... I strongly suggest that we start with org.apache.cocoon.* to avoid these problems down the road (including, yes, gump problems) Yes, I understand of course all these problems, but I'm really afraid of changing all the

Re: [Kernel22] How to develop a component?

2004-04-06 Thread Sylvain Wallez
Nicola Ken Barozzi wrote: Carsten Ziegeler wrote: ... I strongly suggest that we start with org.apache.cocoon.* to avoid these problems down the road (including, yes, gump problems) Yes, I understand of course all these problems, but I'm really afraid of changing all the components now from Ava

RE: [Kernel22] How to develop a component?

2004-04-06 Thread Leo Sutic
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Nicola Ken Barozzi > > > So what do others think? > > Cocoon components will never work putside of Cocoon. But will non-Cocoon components work inside of Cocoon? If so, with how much work in adapting? Or can a general adapter be written that

Re: [Kernel22] How to develop a component?

2004-04-06 Thread Nicola Ken Barozzi
Carsten Ziegeler wrote: ... I strongly suggest that we start with org.apache.cocoon.* to avoid these problems down the road (including, yes, gump problems) Yes, I understand of course all these problems, but I'm really afraid of changing all the components now from Avalon interfaces to Cocoon inte

Re: [Kernel22] How to develop a component?

2004-04-06 Thread Stefano Mazzocchi
Carsten Ziegeler wrote: Stefano Mazzocchi wrote: :) Sounds good to me. Now what do you think of using the things from Avalon that are good (for us)? Now, I think, some of the interfaces (for logging, contextualization, initialization) are good and we could directly use them instead of bui

Re: [Kernel22] How to develop a component?

2004-04-06 Thread Geoff Howard
Carsten Ziegeler wrote: Stefano Mazzocchi wrote: :) Sounds good to me. Now what do you think of using the things from Avalon that are good (for us)? Now, I think, some of the interfaces (for logging, contextualization, initialization) are good and we could directly use them instead of bu

RE: [Kernel22] How to develop a component?

2004-04-06 Thread Bruno Dumon
On Tue, 2004-04-06 at 16:20, Carsten Ziegeler wrote: > Stefano Mazzocchi wrote: > > > > > > :) Sounds good to me. Now what do you think of using the > > things from > > > Avalon that are good (for us)? Now, I think, some of the interfaces > > > (for logging, contextualization, initialization)

RE: [Kernel22] How to develop a component?

2004-04-06 Thread Carsten Ziegeler
Stefano Mazzocchi wrote: > > > > :) Sounds good to me. Now what do you think of using the > things from > > Avalon that are good (for us)? Now, I think, some of the interfaces > > (for logging, contextualization, initialization) are good > and we could > > directly use them instead of build

Re: [Kernel22] How to develop a component?

2004-04-06 Thread Stefano Mazzocchi
Carsten Ziegeler wrote: Stefano Mazzocchi wrote: Carsten Ziegeler wrote: I'm trying to figure out what the current kernel already provides and what not. Let's forget all the xml (descriptors etc) for a moment. Imagine I want to write a block, that provides - let's say a special file gen

RE: [Kernel22] How to develop a component?

2004-04-06 Thread Carsten Ziegeler
Stefano Mazzocchi wrote: > > Carsten Ziegeler wrote: > > > I'm trying to figure out what the current kernel already > provides and > > what not. > > > > Let's forget all the xml (descriptors etc) for a moment. Imagine I > > want to write a block, that provides - let's say a special file >

Re: [Kernel22] How to develop a component?

2004-04-05 Thread Nicola Ken Barozzi
Stefano Mazzocchi wrote: ... I think it's a good time for cleaning up what avalon did wrong, simplify as much as we can and tune it for our needs. But I'm wide open to suggestions, as long as we move away from avalon. A bit OT... I can't stand Cocoon not be able to build properly in Gump, and IM

Re: [Kernel22] How to develop a component?

2004-04-05 Thread Stefano Mazzocchi
Carsten Ziegeler wrote: I'm trying to figure out what the current kernel already provides and what not. Let's forget all the xml (descriptors etc) for a moment. Imagine I want to write a block, that provides - let's say a special file generator - that can be used in other blocks (in my app bl

Re: [Kernel22] How to develop a component?

2004-04-05 Thread Stefano Mazzocchi
Carsten Ziegeler wrote: Gianugo Rabellino wrote: Carsten Ziegeler wrote: I'm trying to figure out what the current kernel already provides and what not. Let's forget all the xml (descriptors etc) for a moment. Imagine I want to write a block, that provides - let's say a special file genera

RE: [Kernel22] How to develop a component?

2004-04-05 Thread Carsten Ziegeler
Gianugo Rabellino wrote: > > Carsten Ziegeler wrote: > > I'm trying to figure out what the current kernel already > provides and > > what not. > > > > Let's forget all the xml (descriptors etc) for a moment. Imagine I > > want to write a block, that provides - let's say a special file > > gen

Re: [Kernel22] How to develop a component?

2004-04-05 Thread Gianugo Rabellino
Carsten Ziegeler wrote: I'm trying to figure out what the current kernel already provides and what not. Let's forget all the xml (descriptors etc) for a moment. Imagine I want to write a block, that provides - let's say a special file generator - that can be used in other blocks (in my app blo