Results 1 to 2 of 2

Thread: Injecting Spring bean into a non-spring bean

  1. #1
    Join Date
    Nov 2009
    Posts
    5

    Default Injecting Spring bean into a non-spring bean

    Hey,

    In my servlet i have created a spring bean MySpringBean and application context is loading on servlet load.

    Now i wish to use MySpringBean in a class that doesnt't have a spring bean.
    How can i get an instance of MySpringBean? or better yet how can i inject it to the class?

    thanks.

  2. #2
    Join Date
    Nov 2007
    Posts
    420

Posting Permissions

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