mahammad-fathi opened a new issue, #7990: URL: https://github.com/apache/netbeans/issues/7990
### 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 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
