3 Replies Latest reply on Jan 15, 2014 12:07 PM by Keith Babo

    Strange feature in switchtyard.xml

    Lukasz Sroka Newbie

      Hello, i have reference in my xml to some @named bean eg.

      <sca:reference name="UserManagementService"

                  multiplicity="0..1"

                  promote="RegistrationPageBean/UserManagementService">

                  <sca:interface.java

                      interface="com.asb.soa.user.management.UserManagementService" />

                  <sca:binding.sca sy:targetNamespace="urn:com.asb.soa" />

              </sca:reference>

              <sca:component name="RegistrationPageBean">

                  <bean:implementation.bean class="com.asb.atsp.page.RegistrationPageBean" />

                  <sca:reference name="UserManagementService">

                      <sca:interface.java

                          interface="com.asb.soa.user.management.UserManagementService" />

                  </sca:reference>

              </sca:component>

       

       

      And this strange part begins in my other @name bean eg. ProfileBean

      there i have put

      @Named
      @RequestScoped
      public class MyAoipProfilePageBean implements Serializable {
          private static final long serialVersionUID = 5304355490768143798L;

          @Inject
          @Reference
          private UserManagementService userManager;

      reference like above. And guess ? I works !!! without puting this @named beand into swtichyard.xml as another <sca:component>

      Does any one have observe this ? Is this bug or feature