Thank you for your help. I will check up your solutions.
your goal should be to set up a broker(activemq for example and than run a non durable topic and then this in
an embedded broker(tcp)
http://timbish.blogspot.com/2014/08/coming-in-activemq-v511-in-memory.htmlIt works like this the controller(a servlet calls the broker(a broker is a web service)
which calls producer and consumer
or asych publisher and subscriber
1 of 1 people found this helpful
here is tutorial for a basic soap service switchyard uses
jboss wildfly uses apache cxf web service
Remember you have two ways you can design a web service
or code first
jboss switchyard fuse uses resteasy on the soa(restful) side
Thank you for all the explanations. It was very interesting and helpful. I took my time to read and understand your comments before answering.
I succeed to integrate ActiveMQ in Switchyard as an external messaging broker [Integration of JBoss AS 7 with ActiveMQ] and It works perfectly.
I think the difference between an internal and external messaging broker is that the former does not need to be started explicitly by the developer, as follows:
BrokerService broker = new BrokerService();
However, i plan to use HornetQ instead of ActiveMQ because it is more well integrated in JBoss server and Switchyard.
Is Switchyard uses CXF to implement JAX-WS (SOAP services) and uses resteasy to implement JAX-RS (RESTful services)?
Thomas Erl discusses in his book the contract first and code first approaches to develop a web service [http://servicetechbooks.com/psd]. He concludes that setting up the contract before implementing the components of the services is the best choice. He said:
- "Unlike the popular process of deriving Web service contracts from existing components, SOA advocates a specific approach that encourages us to postpone development until after a custom designed, standardized contract is in place.".
- "The traditional (non-standardized) means by which Web service contracts are generated results in services that continue to express the proprietary nature of what they encapsulate. Creating the Web service contract prior to development allows for standards to be applied so that the federated endpoints established by Web services are consistent and aligned. This “contract first” approach lies at the heart of service-oriented design and has inspired separate design processes for services based on different service models.".
That is correct switchyard jboss web service(soap) uses apache cxf.
switchyard uses resteasy for their soa(rest) service
as far as using activemq or hornetmq it is a matter of choice I am glad you
decided on hornetq
I know jboss fuse uses activemq
I personally would like to use microservices(osgi, switchyard activemq) modules
so I am waiting for camel to get updated for activemq
thank you for your kind comments