Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Bean property will not set

 
Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
  • Report post to moderator
web.xml

myServlet-servlet.xml

MyHttpSessionEventPublisher.java snippet


In setFacadeLookup it prints 'Mo it is not null' but when I try to access it in sessionCreated method it says 'Yes it is null'. Why? Cross Post
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
They resolved this on the Spring forum. Basically you now have two different instances. One in the App Context and one as a listener. the one in the app context is the only Spring Bean that will have something injected. The servlet listener is not managed and will not get injected because Spring has no clue about it being in existence.

Mark
 
Why is the word "abbreviation" so long? And this ad is so short?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic