1 Reply Latest reply on Oct 18, 2011 8:13 PM by Freeman(Yue) Fang

    CXF + ActiveMQ Queues + Failover?

    jamie archibald Apprentice

      I'd like to generate a CXF client that uses ActiveMQ for sending messages to a Web Service that uses a WSDL first approach for generating the POJO service. I'd like the client and service to exchange messages via ActiveMQ Queues but also support failover as I might have multiple services deployed across the network. Ideally I want the transport layer to be abstracted from the developer such that I don't have to manually write the camel routes to route the soap requests from CXF camel component to my service bean.

       

      Is this possible?

       

      Heres a sample code snippet of what I'm thinking.

       

       

       

      public class MyMessage implements Serializable {

         // ...

      }

       

       

      public interface MyService {

       

         public void sendMessage(MyMessage msg);

      }

       

      @WebService

      public MyServiceImpl implements MyService {

       

          public void sendMessage(MyMessage msg) {

             // process message

          }

      }

       

      // CXF generated client

      public MyClient implements MyService {

        // ...

      }