Announcement Announcement Module
Collapse
No announcement yet.
Inject Dependencies to a Stateless Session Bean. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    http://www.springframework.org/docs/...implementation

    Comment


    • #3
      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.

      Comment

      Working...
      X