Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Service CDI Stereotype to Replace EJB @Stateless #1014

Open
m-reza-rahman opened this issue Jan 3, 2025 · 1 comment
Open

@Service CDI Stereotype to Replace EJB @Stateless #1014

m-reza-rahman opened this issue Jan 3, 2025 · 1 comment
Labels
EE12 Issues being targetd for Jakarta EE 12

Comments

@m-reza-rahman
Copy link

When possible, a built-in CDI stereotype should be added to replace EJB @stateless. Here is an outline of such a stereotype:

@ApplicationScoped
@Transactional
@Lock(READ_WRITE)
@MaxConcurrency(10)
@Monitored // Vendors should be able to add their own sensible functionality
@Stereotype
@Target(TYPE)
@Retention(RUNTIME)
public @interface Service {}
@arjantijms
Copy link
Contributor

We experimented with almost exactly this in Piranha.

See https://omnifish.ee/ejb-support-in-piranha-via-cdi/

@ivargrimstad ivargrimstad added the EE12 Issues being targetd for Jakarta EE 12 label Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EE12 Issues being targetd for Jakarta EE 12
Projects
None yet
Development

No branches or pull requests

3 participants