Announcement Announcement Module
Collapse
No announcement yet.
access a spring bean from a servlet Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • access a spring bean from a servlet

    Hi I am new in Spring please guide me,
    I want to access spring bean(IOC) from simple servlet .

    Following are the requirements
    1. A spring bean (.xml file) which internally using hibernate to communicate with persistence layer
    2. Want to access that bean from servlet extending HttpServlet
    3. Configuration of web.xml
    4. required jar files.

    Please reply with a small example. Thanks in advance

    Regards
    Neel

  • #2
    The reference guide answers that... I suggest a read of that it explains how to use spring in such an environment... One hint WebApplicationContextUtils...

    Comment


    • #3
      Marten Deinum

      Hi Marten Deinum,
      Can you please give me a small code snipp. It will be helpful to me.

      Thanks

      Comment


      • #4
        As I stated that is all in the reference guide...

        Comment


        • #5
          Marten Deinum

          Thank you very much . I could overcome the problem.

          Thanks for your quick response.

          Comment

          Working...
          X