• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Spring 5 alternative to @SpringBeanAutowiringInterceptor

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have been upgrading from Spring 4.3.16.RELEASE to Spring 5.0.0.RELEASE and I realize that @SpringBeanAutowiringInterceptoris no longer available in Spring 5 as the package org.springframework.ejb.interceptor has been removed.
We are using it extensively in our Stateless EJBImpl classes



What is the alternative solution to this approach?
I have gone through https://jira.spring.io/browse/SPR-16821 but unsure how to use a CDI-Spring bridge.
(Please note that I have gone through several sites to understand its usage but in vain)
Could someone please guide me on this?

Thanks,
Divya R
 
Ranch Hand
Posts: 128
1
jQuery Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you'd like to stay with that architecture for some more time, consider using a custom interceptor (based on SpringBeanAutowiringInterceptor source code if you like) managing a local ApplicationContext, possibly in interaction with an EJB 3.1 @Singleton, or a CDI-Spring bridge instead.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What did you do to solve this issue?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!