• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Using Spring beans in EJB

 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi.
Is it possible to use Spring beans (like Spring DAO, Spring transaction interceptor and other stuffs) in EJB ?
I feel I can't to do so because in order to inject these Spring beans in the EJBs, Spring should be also be able to control the creation of EJB so it will be able to inject these dependencies, which I suppose it is impossible to do so because EJBs should be under the control of the container.
Please correct me if I'm wrong.
 
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi John,


Actually it is possible. See the Glue code and the evil singleton chapter at the bottom of the page:

http://www.springframework.org/docs/reference/beans.html

Regards.
reply
    Bookmark Topic Watch Topic
  • New Topic