1 Reply Latest reply on Aug 7, 2013 4:09 PM by Keith Babo

    @Inject and @Reference

    Tony Everett Newbie

      In the documentation, here

       

      https://access.redhat.com/site/documentation/en-US/JBoss_Enterprise_SOA_Platform/6/html-single/Development_Guide_Volume_1_SwitchYard/index.html

       

      one finds this:

       

      27.16. Indirect Service Invocation With Annotations

      In the example below, annotations have been added to the bean called Order to manage invoation [sic]:  

       

      @Named

      @RequestScoped

      public class Order implements Serializable {

       

          @Inject

          @Reference

          private OrderService orderService;

       

       

      Do we need @Inject and @Reference?

       

      Any clarification appreciated.