This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Generating a new test for JAX-RS resource in Java EE 7 project. Generated code looks like: System.out.println("edit"); Object id = null; EJBContainer container = javax.ejb.embeddable.EJBContainer.createEJBContainer(); MovieFacadeREST instance = (MovieFacadeREST)container.getContext().lookup("java:global/classes/MovieFacadeREST"); instance.edit(id); container.close(); EJBContainer is deprecated in Java EE 7 and the code should be updated accordingly. For example, this code will fail in WildFly.
Honzo, could you please have a look at this issue? Thanks.
> EJBContainer is deprecated in Java EE 7 and the code should be updated > accordingly. For example, this code will fail in WildFly. Could you, please, provide more details? I am not an expert in this area and I don't seen any deprecation warning in JavaDoc: https://docs.oracle.com/javaee/7/api/javax/ejb/embeddable/EJBContainer.html