title: Working with apache camel Bean in Quarkus framework
body: <p>I am trying to use apache camel with Quarkus. Previously I was using the spring-boot framework to develop camel integration. So there are lots of questions that I am still trying to figure out w.r.t. Quarkus framework.</p>
  <p><strong>Regarding: Bean</strong></p>
  <p>In spring-boot I could do something like this</p>
  <pre><code>@Configuration
  public class JABXContextConfig {
  
      @Bean
      Unmarshaller jaxbUnmarshaller() throws JAXBException {
          JAXBContext jaxbContext  = JAXBContext.newInstance(MyPOJO.class );
          Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();
          return jaxbUnmarshaller;
      }
  }
  </code></pre>
  <p>and then I could inject it into the class using DI</p>
  <pre><code>@Component
  public class MyRestServiceRoute extends RouteBuilder {
  
     private final JaxbDataFormat jaxb;
  
     @Autowired
     public MyRestServiceRoute(JaxbDataFormat jaxb) throws Exception{
        this.jaxb = jaxb;
     }
     ....
        
   }
  </code></pre>
  <p>QUESTION:</p>
  <ol>
  <li>How can I do the same in the Quarkus framework?
  P.S&gt; I tried replacing @Configuration with @ApplicationScoped and @Bean with @Dependent but it's not working.</li>
  </ol>
  <p>Thanks,</p>