You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Carsten Ziegeler <cz...@apache.org> on 2006/06/29 08:36:28 UTC

Re: svn commit: r417871 - /cocoon/trunk/blocks/cocoon-auth/cocoon-auth-impl/pom.xml

jheymans@apache.org schrieb:
> Author: jheymans
> Date: Wed Jun 28 13:54:51 2006
> New Revision: 417871
> 
> URL: http://svn.apache.org/viewvc?rev=417871&view=rev
> Log:
> servlet api is passed on transitively from core
> 
It *should* be passed on transitively, but interestingly in some cases
it is not! (One of the unpredictable things of maven) While it is passed
on on my laptop (W2K) it is not on my home computer (WXP) - both using
the same JDK and the same m2 version (2.0.4). So that's why I had to add
it to the auth pom.

I'll try this out next week again when I have access to my home computer
to see if it now works...

Carsten
-- 
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/

Re: SessionReplication

Posted by Giacomo Pati <gi...@apache.org>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 30 Jun 2006, Matthew Langham wrote:

> Date: Fri, 30 Jun 2006 11:47:30 +0200
> From: Matthew Langham <ml...@s-und-n.de>
> Reply-To: dev@cocoon.apache.org
> To: dev@cocoon.apache.org, users@cocoon.apache.org
> Subject: SessionReplication
> 
> Hi,
>
> Can someone tell me if the current state of Session Replication in Cocoon is
> still as described in:
> http://wiki.apache.org/cocoon/FlowscriptAndSessionReplication ?
>
> If so -
>
> 1. Is this any different in 2.2?

I don't think so.

> 2. Has anyone looked at how long it would take to fix this?
> 3. If I don't use Flowscript in my application - does SessionReplication
> work?

It depends as always ;-) what your application glues to the 
ServletSession.

> I would also be really interested in the arguments you use against a
> customer saying "Cocoon is crap because it can't replicate sessions". Yes
> really.

"Session replication is crap because you don't really know what is 
happening when it does bad. It is crap also because you spent a lot of 
money to maintain and control it, get increased complexity which tends 
to fail earlier and this just for a 0.5% increase of availability for 
your users (not the system per se as with sticky sessions you gain the 
same system availability rates).

HTH ;-)

Ciao

Giacomo

- -- 
Giacomo Pati
Otego AG, Switzerland - http://www.otego.com
Orixo, the XML business alliance - http://www.orixo.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFEpRwSLNdJvZjjVZARAofBAJ9oqj5qlRmQs9jaoJoQPbWHzyP29gCfePR/
9l9ik+Oa569yU4X+ViJs94g=
=PwE3
-----END PGP SIGNATURE-----

Re: SessionReplication

Posted by Torsten Curdt <tc...@apache.org>.
> > Currently the best bet is using Apples as controller and put only Serializable
> > objects into the session.
>
> Just to clarify/expand, apples are stateful too and are managed by the
> same continuationsmanager as flowscript continuations. It is possible to
> have stateless apples, but that's just so that stateless interactions
> could be written similarly to the stateful interactions.

If you enhance the continuations machinery javaflow also becomes
another option (as carefully written javaflow can be serialized)
...but I am with Giacomo on this ...I would really question whether
session replication is the right way to go ...even if you'd implement
these changes to the continuation management (which is probably not
that much work)

cheers
--
Torsten

Re: SessionReplication

Posted by Bruno Dumon <br...@outerthought.org>.
On Fri, 2006-06-30 at 12:05 +0200, Reinhard Poetz wrote:
> Matthew Langham wrote:
> > Hi,
> > 
> > Can someone tell me if the current state of Session Replication in Cocoon is
> > still as described in:
> > http://wiki.apache.org/cocoon/FlowscriptAndSessionReplication ?
> > 
> > If so -
> > 
> > 1. Is this any different in 2.2?
> 
> no
> 
> > 2. Has anyone looked at how long it would take to fix this?
> > 3. If I don't use Flowscript in my application - does SessionReplication
> > work?
> 
> Currently the best bet is using Apples as controller and put only Serializable 
> objects into the session.

Just to clarify/expand, apples are stateful too and are managed by the
same continuationsmanager as flowscript continuations. It is possible to
have stateless apples, but that's just so that stateless interactions
could be written similarly to the stateful interactions.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


Re: SessionReplication

Posted by Reinhard Poetz <re...@apache.org>.
Matthew Langham wrote:
> Hi,
> 
> Can someone tell me if the current state of Session Replication in Cocoon is
> still as described in:
> http://wiki.apache.org/cocoon/FlowscriptAndSessionReplication ?
> 
> If so -
> 
> 1. Is this any different in 2.2?

no

> 2. Has anyone looked at how long it would take to fix this?
> 3. If I don't use Flowscript in my application - does SessionReplication
> work?

Currently the best bet is using Apples as controller and put only Serializable 
objects into the session. If you also want to use cForms you will probably need 
to work on making the Form object supporting the Serializable interface but this 
shouldn't be too difficult.

> 
> I would also be really interested in the arguments you use against a
> customer saying "Cocoon is crap because it can't replicate sessions". Yes
> really.

In one of my project we don't use HTTPSessions at all but have a session service 
that needs to be explicitly called. The system behind the session service is the 
only stateful unit in our architecture.
This leads to more work during development but you can scale/load-balance your 
presentation layer without having to think about complicated replication stuff 
or sticky cookies at all.

-- 
Reinhard Pötz           Independent Consultant, Trainer & (IT)-Coach 

{Software Engineering, Open Source, Web Applications, Apache Cocoon}

                                        web(log): http://www.poetz.cc
--------------------------------------------------------------------

	

	
		
___________________________________________________________ 
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de

Re: SessionReplication

Posted by Giacomo Pati <gi...@apache.org>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 30 Jun 2006, Matthew Langham wrote:

> Date: Fri, 30 Jun 2006 11:47:30 +0200
> From: Matthew Langham <ml...@s-und-n.de>
> Reply-To: dev@cocoon.apache.org
> To: dev@cocoon.apache.org, users@cocoon.apache.org
> Subject: SessionReplication
> 
> Hi,
>
> Can someone tell me if the current state of Session Replication in Cocoon is
> still as described in:
> http://wiki.apache.org/cocoon/FlowscriptAndSessionReplication ?
>
> If so -
>
> 1. Is this any different in 2.2?

I don't think so.

> 2. Has anyone looked at how long it would take to fix this?
> 3. If I don't use Flowscript in my application - does SessionReplication
> work?

It depends as always ;-) what your application glues to the 
ServletSession.

> I would also be really interested in the arguments you use against a
> customer saying "Cocoon is crap because it can't replicate sessions". Yes
> really.

"Session replication is crap because you don't really know what is 
happening when it does bad. It is crap also because you spent a lot of 
money to maintain and control it, get increased complexity which tends 
to fail earlier and this just for a 0.5% increase of availability for 
your users (not the system per se as with sticky sessions you gain the 
same system availability rates).

HTH ;-)

Ciao

Giacomo

- -- 
Giacomo Pati
Otego AG, Switzerland - http://www.otego.com
Orixo, the XML business alliance - http://www.orixo.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFEpRwSLNdJvZjjVZARAofBAJ9oqj5qlRmQs9jaoJoQPbWHzyP29gCfePR/
9l9ik+Oa569yU4X+ViJs94g=
=PwE3
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


SessionReplication

Posted by Matthew Langham <ml...@s-und-n.de>.
Hi,

Can someone tell me if the current state of Session Replication in Cocoon is
still as described in:
http://wiki.apache.org/cocoon/FlowscriptAndSessionReplication ?

If so -

1. Is this any different in 2.2?
2. Has anyone looked at how long it would take to fix this?
3. If I don't use Flowscript in my application - does SessionReplication
work?

I would also be really interested in the arguments you use against a
customer saying "Cocoon is crap because it can't replicate sessions". Yes
really.

Thanks!

Matthew 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


SessionReplication

Posted by Matthew Langham <ml...@s-und-n.de>.
Hi,

Can someone tell me if the current state of Session Replication in Cocoon is
still as described in:
http://wiki.apache.org/cocoon/FlowscriptAndSessionReplication ?

If so -

1. Is this any different in 2.2?
2. Has anyone looked at how long it would take to fix this?
3. If I don't use Flowscript in my application - does SessionReplication
work?

I would also be really interested in the arguments you use against a
customer saying "Cocoon is crap because it can't replicate sessions". Yes
really.

Thanks!

Matthew 


Re: svn commit: r417871 - /cocoon/trunk/blocks/cocoon-auth/cocoon-auth-impl/pom.xml

Posted by Carsten Ziegeler <cz...@apache.org>.
Jorg Heymans wrote
> 
> On a related note, auth-impl has a dependency on cocoon-portal-impl. Is
> this temporary? (just curious)
> 
Yes, it should be temporary. The auth block provides some support for
the portal, so currently it has to depend on the it. I want to move the
code to a portal-auth module or something like that in the near future.

Carsten

-- 
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/

Re: svn commit: r417871 - /cocoon/trunk/blocks/cocoon-auth/cocoon-auth-impl/pom.xml

Posted by Jorg Heymans <jh...@domek.be>.
Carsten Ziegeler wrote:

> It *should* be passed on transitively, but interestingly in some cases
> it is not! (One of the unpredictable things of maven) While it is passed
> on on my laptop (W2K) it is not on my home computer (WXP) - both using
> the same JDK and the same m2 version (2.0.4). So that's why I had to add
> it to the auth pom.
>
> I'll try this out next week again when I have access to my home computer
> to see if it now works...
>

yep that would be great. I thought you had forgotten to remove it or
something, if it doesn't work for you just add it again.

On a related note, auth-impl has a dependency on cocoon-portal-impl. Is
this temporary? (just curious)


Regards
Jorg


Re: svn commit: r417871 - /cocoon/trunk/blocks/cocoon-auth/cocoon-auth-impl/pom.xml

Posted by Jorg Heymans <jh...@domek.be>.
Carsten Ziegeler wrote:

> It *should* be passed on transitively, but interestingly in some cases
> it is not! (One of the unpredictable things of maven) While it is passed
> on on my laptop (W2K) it is not on my home computer (WXP) - both using
> the same JDK and the same m2 version (2.0.4). So that's why I had to add
> it to the auth pom.
> 

Right i figured this one out. There is no dark magic involved after all:

1. MNG-1797 states that if you exclude a lib from a dependency then that
lib will not get passed on transitively to artifacts dependending on the
pom you've just added the exclusion to (it's hard to explain, just read
the ticket and you'll see what i mean)


2. In r418215 Reinhard did some pom cleanup on the core :

r418215 | reinhard | 2006-06-30 11:37:05 +0200 (Fri, 30 Jun 2006) | 1 line

clean up dependencies: set OSGi deps to 'provided'; set Ant&cli deps to
'provided' (cli support should be moved to a separate module; add more
excludes to remove transitive dependencies on junit, xmlunit, excalibur
unit testing fw, ant-optional, servlet api)

---

Normally this pom refactoring would have been 100% OK. However our
current servlet-api dependency is marked as <scope>provided</scope>,
which means it is not passed on transitively. So in fact our modules
have been using the servlet-api from one of our dependencies
(commons-jxpath) all along. Now when Reinhard excluded servlet-api from
jxpath the problem surfaced.

We should therefore add servlet-api directly to any modules that require
it, with scope provided.


HTH
Jorg