Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: scxml dialog problem - if session is invalid, state machine hangs and n: msg#00241

apache.shale.user

Subject: Re: scxml dialog problem - if session is invalid, state machine hangs and navigation is broken

On 10/27/06, Rahul Akolkar <rahul.akolkar@xxxxxxxxx> wrote:

On 10/27/06, Torsten Krah <tkrah@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Hm ignore this - its working now, don't know why, but testet in dozen
> times without success, minutes after writing the mail it does :-|, maybe
> i found out why, only cleared out my cookies, i dont believe that this
> could be reason.
>
<snip/>

Hmm.

If I were invalidating the session while a dialog was active (never
tried that), I'd probably manually stop() the dialog and clean up
(IIRC, the context gets placed in the request scope after the restore
view phase) so the Shale dialog navigation handler delegates to the
original as desired (which, it seems, is already working for you).


I suspect this is a use case we'll want to document (for both the basic and
the SCXML implementations). The dialog manager maintains all its per-user
state information in the HTTP session, so when you invalidate that it all
goes away -- the next request will have a problem because it will specify a
dialog identifier that no longer exists.

Manually stopping any dialogs that are currently in progress seems like the
right approach for a "logout" scenario.

-Rahul


Craig


Torsten
>
> Am Freitag, den 27.10.2006, 10:37 +0200 schrieb Torsten Krah:
> > I've got a logout link on my pages which does invalidate the session
and
> > return "logout".
> > If i use plain jsp it works.
> >
> > Now i've got a dialog.
> >
> > If i use a "plain" logout outcome from a commandLink, the navigation
> > rule does what it should, the dialog state engine reaches it defined
> > logout end state and navigates to the end state.
> > But when using the logout from my backend action method which
> > invalidates the session and the return "logout", no navigation happens
> > and the state machine does not reach its defined logout end state.
> > Not reaching the end state should not matter, because the session is
> > lost, so i think we don't need to care about, but the navigation
outcome
> > should be handled and executed, shouldn't it?
> >
> > How to overcome this, i guess without the session the dialog data is
> > gone, but in this case it would be nice if the outcome gets handled
from
> > the faces navigation handler which works if no dialog is present.
> >
> > Hints, thoughts?
> >
> > Torsten
> >
> >
>
>

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
user-groups.jax...    php.zend.framew...    os.solaris.open...    web.quixote.use...    java.openjdk.ho...    ietf.secmech/20...    gnu.glpk/2004-0...    recreation.cars...    network.smokepi...    linux.drivers.i...    cms.opencms.dev...    fonts.gfontview...    text.xml.soap.u...    voip.nist-sip/2...    debian.ports.hp...    xfree86.interna...    science.biology...    qnx.openqnx.dev...    mail.sylpheed.c...    busybox/bios/20...    emulators.kvm.s...    hardware.openco...    apple.fink.begi...    kde.german/2006...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation