title: The type ManagedBean is deprecated
body: <p>I just created a new maven project and Added a index controller. Then I used managedbean annotation. But I get this message <code>The type ManagedBean is deprecated</code>. So I tried for alternatives but I could not find any solutions. All the articles uses <code>@ManageBean</code>. So I think am missing something here. </p>
  
  <p>My pom.xml file</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;asf.asdflksdfklj&lt;/groupId&gt;
    &lt;artifactId&gt;Demo-App&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;packaging&gt;war&lt;/packaging&gt;
    &lt;name&gt;Demo-App&lt;/name&gt;
  
    &lt;dependencies&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.primefaces&lt;/groupId&gt;
      &lt;artifactId&gt;primefaces&lt;/artifactId&gt;
      &lt;version&gt;5.3&lt;/version&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;org.glassfish&lt;/groupId&gt;
      &lt;artifactId&gt;javax.faces&lt;/artifactId&gt;
      &lt;version&gt;2.3.0-m06&lt;/version&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
      &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
      &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
      &lt;version&gt;4.0.0-b01&lt;/version&gt;
    &lt;/dependency&gt;
    &lt;/dependencies&gt;
  
  
    &lt;build&gt;
    &lt;plugins&gt;
    &lt;plugin&gt;
      &lt;groupId&gt;org.eclipse.jetty&lt;/groupId&gt;
      &lt;artifactId&gt;jetty-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;9.4.0.M0&lt;/version&gt;
    &lt;/plugin&gt;
    &lt;/plugins&gt;
    &lt;/build&gt;
  
  
  &lt;/project&gt;  
  </code></pre>
  
  <p>and IndexController</p>
  
  <pre><code>package asf.asdflksdfklj.Controller;
  
  import javax.faces.bean.ManagedBean;
  
  
  @ManagedBean
  public class IndexController {
  
      public String showHello(){
          return "hello world";
      }
  
  }
  </code></pre>
  
  <p>Is it really ManagedBean deprecated? If so what should I use to make this code work?</p>