Results 1 to 3 of 3

Thread: Inject Dependencies to a Stateless Session Bean.

  1. #1
    Join Date
    Aug 2004
    Posts
    7

    Default Inject Dependencies to a Stateless Session Bean.

    Hello to all.
    I am quite new in the use of Spring and wanted to know if is possible to inject dependencies to a Stateless Session Bean. Our application has a structure so that the Web layer invokes to a SSB that are responsible to invoke to POJOS to complete a UC. These POJOS would have to be injected to the SSB. I hope to have been clear and excuse me by my english.

  2. #2
    Join Date
    Sep 2004
    Posts
    23

  3. #3
    Join Date
    Aug 2004
    Location
    San Mateo, CA
    Posts
    1,265

    Default

    You could use the autowire methods on AutowireCapableBeanFactory to configure your SLSB instance. However, a better approach is normally for the EJB to delegate to a POJO, as the Spring EJB support superclasses facilitate. By doing this, you get your business logic in a POJO that's easy to test outside a container.
    Rod Johnson - GM, SpringSource Division, VMware
    http://www.springsource.com
    Spring From the Source

Similar Threads

  1. Hibernate Long Session Per Flow?
    By akw in forum Web Flow
    Replies: 21
    Last Post: Dec 12th, 2005, 08:06 PM
  2. Spring container fails with no exception
    By naor in forum Container
    Replies: 9
    Last Post: Oct 1st, 2005, 03:39 PM
  3. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  4. could not satisfy dependencies
    By springuser in forum Container
    Replies: 4
    Last Post: Apr 26th, 2005, 01:15 PM
  5. Replies: 1
    Last Post: Apr 25th, 2005, 07:37 PM

Posting Permissions

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