You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Roman Seidl <rs...@pvl.at> on 2000/02/16 17:02:15 UTC
session status and cocoon
Hello cocoon-users,
i now looked at the source and there seems to be no interface
similar to the servlet session tracking tools.
maybe it should be considered to include something similar into the
cocoon framework.
i consider using cocoon for a messaging application - so i need some
kind of a session tracking - as i don't want the whole thing to be
stateless (would be rather slow and complicated to do)
mfg
Roman Seidl
--------------------------------------------------------------------
Roman Seidl Design & Developement
--------------------------------------------------------------------
Public Voice Lab Operngasse 24, A-1040 Vienna
Tel.: +43-1-585 22 80/23 Fax: +43-1-585 22 80/99
e-mail: rse@pvl.at web: www.pvl.at
--------------------------------------------------------------------
Re[4]: session status and cocoon
Posted by Roman Seidl <rs...@pvl.at>.
Hello Mike,
Wednesday, February 16, 2000, 6:12:32 PM, you wrote:
ME> Roman Seidl wrote:
ME> the HttpServletRequest *is* how you create the session. Just call it like
ME> you normally would in a servlet.
ME> HttpSession session = request.getSession(true);
oh ok i didn think of that actually sorry
well then everythings just fine
the only thing im still thinking about is how to use some simmilar mechanism
in a producer - as i dont want to put big amounts of buissness logic
into a servlet - id rather like to hide the buisness logic in a
producer because then id have some kind of universal xml interface not
bound to use servlet technology
i think ill have to implement a persistent session object for a
producer myself - maybe there's someone else who would like this idea?
anyway if i have an overall design idea im gonna publish it.
mfg
Roman Seidl
--------------------------------------------------------------------
Roman Seidl Design & Developement
--------------------------------------------------------------------
Public Voice Lab Operngasse 24, A-1040 Vienna
Tel.: +43-1-585 22 80/23 Fax: +43-1-585 22 80/99
e-mail: rse@pvl.at web: www.pvl.at
--------------------------------------------------------------------
Re: Re[2]: session status and cocoon
Posted by Mike Engelhart <me...@earthtrip.com>.
Roman Seidl wrote:
> i dont want to use xsp so how should i use it from a custom producer?
> in a producer i only get a request and return a dom tree - where
> should i create a session?
>
the HttpServletRequest *is* how you create the session. Just call it like
you normally would in a servlet.
HttpSession session = request.getSession(true);
Mike
Re[2]: session status and cocoon
Posted by Roman Seidl <rs...@pvl.at>.
Hello Mike,
Wednesday, February 16, 2000, 5:48:29 PM, you wrote:
ME> Sessions are available in Cocoon. Look at the XSP documentation and also
ME> they're available from custom Producer's
i dont want to use xsp so how should i use it from a custom producer?
in a producer i only get a request and return a dom tree - where
should i create a session?
mfg
Roman Seidl
--------------------------------------------------------------------
Roman Seidl Design & Developement
--------------------------------------------------------------------
Public Voice Lab Operngasse 24, A-1040 Vienna
Tel.: +43-1-585 22 80/23 Fax: +43-1-585 22 80/99
e-mail: rse@pvl.at web: www.pvl.at
--------------------------------------------------------------------
Re: session status and cocoon
Posted by Mike Engelhart <me...@earthtrip.com>.
Roman Seidl wrote:
> Hello cocoon-users,
>
> i now looked at the source and there seems to be no interface
> similar to the servlet session tracking tools.
>
> maybe it should be considered to include something similar into the
> cocoon framework.
>
> i consider using cocoon for a messaging application - so i need some
> kind of a session tracking - as i don't want the whole thing to be
> stateless (would be rather slow and complicated to do)
>
> mfg
> Roman Seidl
Sessions are available in Cocoon. Look at the XSP documentation and also
they're available from custom Producer's
Mike