Results 1 to 2 of 2

Thread: DAO Support without EJB Support

  1. #1
    Join Date
    Jul 2005
    Posts
    1

    Default DAO Support without EJB Support

    Hello, I have an EJB Session and I want to use the Spring DAO support in my business methods without exntends the class "org.springframework.ejb.support.AbstractStatefulS essionBean"... Is there any way to access my Spring Beans declared in my "applicationContext.xml" inside the business methods of my EJB Session without the Spring EJB Support? Like in a Servlet, where I use the "org.springframework.web.context.ContextLoaderList ener" and get my bean reference with:

    WebApplicationContextUtils.getRequiredWebApplicati onContext(ctx).getBean("bean");

    []s

    Ary Junior

  2. #2
    Join Date
    Aug 2004
    Posts
    2,715

    Default Re: DAO Support without EJB Support

    Quote Originally Posted by aryjr
    Is there any way to access my Spring Beans declared in my "applicationContext.xml" inside the business methods of my EJB Session without the Spring EJB Support? Like in a Servlet, where I use the "org.springframework.web.context.ContextLoaderList ener" and get my bean reference with:

    WebApplicationContextUtils.getRequiredWebApplicati onContext(ctx).getBean("bean");
    No I do not think so. You would have to code the access manually as you would do in a standalone application. See the reference manual for details.

    Regards,
    Andreas

Similar Threads

  1. Replies: 7
    Last Post: Feb 1st, 2007, 01:47 AM
  2. Announcement: Spring IDE WebFlow Support Preview Release 2
    By Christian Dupuis in forum Announcements
    Replies: 2
    Last Post: Sep 15th, 2006, 11:50 AM
  3. Replies: 2
    Last Post: Sep 7th, 2005, 07:10 AM
  4. Lingo and JMS support in Spring 1.3???
    By peng xu in forum JMS
    Replies: 1
    Last Post: Jul 7th, 2005, 03:07 AM
  5. New Spring Support Forums are Live
    By Colin Sampaleanu in forum Announcements
    Replies: 17
    Last Post: May 22nd, 2005, 12:57 AM

Posting Permissions

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