-
1. Re: Implement an SOAP/JMS transport
wsimons Dec 4, 2014 10:53 PM (in response to slayercode2)switchyard uses camel-seda http://camel.apache.org/seda.html or
camel mqtt(activemq)quickstarts/camel-mqtt-binding at master · jboss-switchyard/quickstarts · GitHub
-
2. Re: Implement an SOAP/JMS transport
slayercode2 Dec 5, 2014 2:45 PM (in response to wsimons)Thank you for your help. I will check up your solutions.
-
3. Re: Implement an SOAP/JMS transport
wsimons Dec 5, 2014 10:53 PM (in response to slayercode2)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://activemq.apache.org/how-do-i-embed-a-broker-inside-a-connection.htmlhttps://www.safaribooksonline.com/library/view/activemq-in-action/9781933988948/kindle_split_023.html
http://stackoverflow.com/questions/14480023/activemq-and-embedded-broker
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
-
4. Re: Implement an SOAP/JMS transport
wsimons Dec 6, 2014 11:23 PM (in response to wsimons)1 of 1 people found this helpfulTutorial - SwitchYard - Project Documentation Editor
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
contract first
http://cxf.apache.org/docs/defining-contract-first-webservices-with-wsdl-generation-from-java.html
SwitchYard Application Configuration
SwitchYard Configuration and Model APIs
http://stackoverflow.com/questions/20181699/contract-first-soap-web-service-how-to-create-wsdl
http://learningviacode.blogspot.com/2013/05/contract-first-web-service-with-cxf.html
http://www.mastertheboss.com/soa-cloud/jboss-soa/switchyard-tutorial?showall=1
or code first
http://www.middlewareguru.com/mw/?p=518
SwitchYard CDI Services using JAXB annotated types | Planet JBoss Developer
Tutorial - SwitchYard - Project Documentation Editor
jboss switchyard fuse uses resteasy on the soa(restful) side
-
5. Re: Re: Implement an SOAP/JMS transport
slayercode2 Dec 8, 2014 10:27 AM (in response to wsimons)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();
broker.addConnector("tcp://localhost:61616");
broker.start();
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.".
-
6. Re: Implement an SOAP/JMS transport
wsimons Dec 8, 2014 10:48 AM (in response to slayercode2)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