4 Replies Latest reply on Dec 1, 2015 3:21 AM by simplex-software

    JBDS creates switchyard.xml file invalid

    simplex-software

      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