I'm migrating the EJB annotations of my application to CDI and I have some questions:
- What is the scope equivalent to
@Stateless
of EJB in CDI? - Would
@ResquestScoped
do equivalent behavior? - I have tested using
@Stateless
injecting with CDI using@Inject
, is this correct?
I'm migrating a service class that only receives the requests from my managedBean and passes the information to the persistence class and does not need to keep its scope alive.