1 2 Previous Next 15 Replies Latest reply on Nov 3, 2015 3:39 PM by Brian Fitzpatrick

    JBDS creates switchyard.xml file invalid

    nicolas duminil Master

      Hello,

       

      Using JBDS 8.1.0.GA with switchyard projects, I have the following error message in the Problems tab:

       

      The referenced Java interface for service "OrderRepositoryReference" specifies more than one operation and the binding "order-jpa-binding" does not specify which to use in the operation selector.

       

      Here is the significative part of the switchyard.xml file:

       

      .......................................

         <sca:reference name="OrderRepositoryReference">

           <sca:interface.java interface="fr.simplex_software.soa.order_service.OrderRepository"/>

         </sca:reference>

      .........................................

         <sca:reference name="OrderRepositoryReference" multiplicity="0..1" promote="OrderComponent/OrderRepositoryReference">

           <sca:interface.java interface="fr.simplex_software.soa.order_service.OrderRepository"/>

      ..............................................

       

      and the OrderRepository interface is as follows:

       

       

      public interface OrderRepository

        public void persistOrder (PurchaseOrderEntity purchaseOrder);

      }

       

      so it doesn't specify more then one operation. Anyway, the build works outside JBDS.

       

      What might be the problem here ?

       

      Many thanks in advance,

       

      Nicolas

       

       

        1 2 Previous Next