jakarta.annotation.ManagedBean
is not deprecated, whereas jakarta.faces.bean.ManagedBean
is deprecated. The first annotation is part of Jakarta Managed Beans and the second annotation is part of Jakarta Server Faces.
See Javadoc [1] and [2].
[1]
https://jakarta.ee/specifications/platform/9/apidocs/jakarta/annotation/ManagedBean.html
[2]
https://jakarta.ee/specifications/platform/9/apidocs/jakarta/faces/bean/ManagedBean.html
Thanks
Hussain
[External]
I believe the following code in the jakarta jersey reference examples has been deprecated and should not be part of jakarta.
If that is the case You may to wish to look into it.
I have identified the files in question using the *.nix scripting language (A flexible therefore a powerful tool).
import jakarta.annotation.ManagedBean;
$ grep -RiIl '@ManagedBean'
managed-beans-webapp/src/main/java/org/glassfish/jersey/examples/managedbeans/resources/ManagedBeanSingletonResource.java
managed-beans-webapp/src/main/java/org/glassfish/jersey/examples/managedbeans/resources/ManagedBeanExceptionMapper.java
managed-beans-webapp/src/main/java/org/glassfish/jersey/examples/managedbeans/resources/ManagedBeanPerRequestResource.java
managed-beans-webapp/README.MD
helloworld-weld/src/main/java/org/glassfish/jersey/examples/helloworld/App.java
cdi-webapp/src/main/java/org/glassfish/jersey/examples/cdi/resources/MySingletonResource.java
cdi-webapp/src/main/java/org/glassfish/jersey/examples/cdi/resources/MyOtherResource.java
cdi-webapp/src/main/java/org/glassfish/jersey/examples/cdi/resources/HelloWorldResource.java
cdi-webapp/src/main/java/org/glassfish/jersey/examples/cdi/resources/EchoParamFieldResource.java
cdi-webapp/src/main/java/org/glassfish/jersey/examples/cdi/resources/EchoParamResource.java
cdi-webapp/src/main/java/org/glassfish/jersey/examples/cdi/resources/EchoParamConstructorResource.java
Quick grep explanation:
-R - recursive search
-i - case-insensitive
-I - skip binary files
-l - print a simple list as output.
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original
message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law,
this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.
_______________________________________________