NetBeans 23: Issue with JSF Pages from Entity Classes
- Integration Problems with template for 'JSF Pages From Entity Beans' controller class
#7990
Labels
Description
When using the "JSF Pages from Entity Classes" feature in NetBeans 23 with WildFly 24 as the application server, the generated code fails to integrate correctly.
When build code for Application server session bean to generate code like @PersistenceContext private EntityManager em; Instead, it produces the following code @resource private UserTransaction utx = null; Specifically, the annotations and dependencies for resources like
@Resource
and@EJB
are not correct properly set, which causes runtime issues.Use case/motivation
The generated code should configure the correct CDI bean management according to the application server and correctly configure all required annotations, @PersistenceContext private EntityManager em;
@EJB
for session beans, For Session Beans, it does not allow integrated transaction management in WildFly 24.Related issues
No response
Are you willing to submit a pull request?
No
The text was updated successfully, but these errors were encountered: