Announcement Announcement Module
Collapse
No announcement yet.
Access to ServletContext from Endpoint Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Access to ServletContext from Endpoint

    Hi

    My Spring WS 1.5.6 endpoint extends AbstractMarshallingPayloadEndpoint. I'm trying to access the ServletContext from the endpoint's invokeInternal(Object o) method, is this possible? I need to get at my servlet's initParams which were set in the web.xml's <context-param> element. Any suggestions?

    Thanks in advance,
    Barry

  • #2
    Did you ever find an answer? I have the same problem.

    John

    Comment


    • #3
      Yes, I did find out but forgot to post the answer back here!

      You just need to implement the interface 'ServletContextAware' and have it injected by Spring at runtime.

      Hope that helps.

      Comment

      Working...
      X