Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Why my ContextClosedEvent is fired three times?

  1. #11
    Join Date
    Aug 2012
    Posts
    11

    Default

    Quote Originally Posted by Marten Deinum View Post
    Read the docs I would say.. You make it so by letting it implement the ApplicationContextAware interface....
    OK Thanks a lot!!

  2. #12
    Join Date
    Aug 2012
    Posts
    11

    Default

    Quote Originally Posted by Marten Deinum View Post
    Read the docs I would say.. You make it so by letting it implement the ApplicationContextAware interface....
    Finally the problem is solved by using the code below.

    Code:
    @Autowired
    ApplicationContext appContext;
    
    if (e.getApplicationContext().equals(appContext)) {
        // do something
    }

Posting Permissions

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