Results 1 to 8 of 8

Thread: Publish an Event from my WebFlow.

  1. #1

    Default Publish an Event from my WebFlow.

    Hi,

    I'm in trouble with Event Publishing.

    I've got a Listener in my main ApplicationContext (Servlet Dispatcher) and some events published by this web part. All this is working fine.

    But now I need to publish an event in a webflow action. This action implements an ApplicationEventPublisherAware in order to be able to publish an event.
    No error while publishing, but my Listener doesn't wire the event.

    Do I forget something ?
    Is it possible to do so ?

    I'm working with spring-1.2.7

    Thank for any help

    Steph
    Last edited by Proner; May 18th, 2006 at 02:04 AM.

  2. #2

    Default

    Maybe this topic is WebFlow related and must be move ?

  3. #3
    Join Date
    Aug 2004
    Posts
    1,905

    Default

    I have never used the applicationContext listener infrastructure but it wouldn't suprise if listeners are only applicable for the context they are defined it...

    Try moving the listener into the same context in which the action bean is defined.

    I do remember there was a bug to do with contexts not being treated correctly in one of the earlier releases... are you using RC2.0?

    Do read that disclaimer at the top of the post; I may well be completely wrong

  4. #4

    Default

    Quote Originally Posted by yatesco
    I have never used the applicationContext listener infrastructure but it wouldn't suprise if listeners are only applicable for the context they are defined it...
    This is what first come in my mind. But aren't the different contexts link together ?

    Quote Originally Posted by yatesco
    I do remember there was a bug to do with contexts not being treated correctly in one of the earlier releases... are you using RC2.0?
    I'm using Spring 1.2.7

    Quote Originally Posted by yatesco
    Do read that disclaimer at the top of the post; I may well be completely wrong
    I do and you may also be right ;-)

  5. #5
    Join Date
    Aug 2004
    Posts
    1,905

    Default

    Quote Originally Posted by Proner
    This is what first come in my mind. But aren't the different contexts link together ?
    They so have a relationship, but generally it is a hierarchical one, and whilst you can see parent beans, listeners/postProcessBeans are not applied to child contexts.

    In other words if you define a propertyPlaceHolder in appContext, it will *not* be applied to your -servlet.xml.

    Quote Originally Posted by Proner
    I'm using Spring 1.2.7
    I meant which version of SWF

  6. #6

    Default

    Quote Originally Posted by yatesco
    They so have a relationship, but generally it is a hierarchical one, and whilst you can see parent beans, listeners/postProcessBeans are not applied to child contexts.

    In other words if you define a propertyPlaceHolder in appContext, it will *not* be applied to your -servlet.xml.
    Good exemple. I understood.


    Quote Originally Posted by yatesco
    I meant which version of SWF
    I'm always working with the pr5 version.

  7. #7

    Default

    Ok, I've just copied the bean declaration of my listener in the webflow xmlContext, as you told me and that's work fine.

    Thank you

    Steph

  8. #8
    Join Date
    Aug 2004
    Posts
    1,905

    Default

    No worries.

    Try upgrading to 1.0 RC2. Things have changed quite a lot, but it is worth it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •