Hi Lars, >The cxf page that you provided the link to seems a bit "old". In mentions >fairly old Jboss versions and the mentioned cxf samples (samples/integrate >...) does >not exist in the current cxf releases.
That's true. This way requires some experiments and tests. JBoss should be JCA 1.6 conformed anyway, so basically this approach should work. Documentation update, samples and patches are welcome. >My primary concern is how to implement an EJB that is consuming an "external" >WS , the WS is available via JMS. It should be possible to achieve this in JBoss just by using normal WS Client technic in your EJB. WSDL should contain appropriate JMS endpoint: @WebServiceRef(wsdlLocation="http://localhost:8080/helloservice/hello?wsdl") static HelloService service; ... Hello port = service.getHelloPort(); String response = port.sayHello(name); I didn't test it, but as far as JBoss uses CXF as WS frontend, perhaps it just works out of the box. Regards, Andrei. -----Original Message----- From: Lars-Erik Helander [mailto:[email protected]] Sent: Freitag, 12. Oktober 2012 16:23 To: Andrei Shakirin Cc: [email protected] Subject: Re: WS JMS consumer in JEE container A clarification to my previous post: My primary concern is how to implement an EJB that is consuming an "external" WS , the WS is available via JMS. In som cases the EJB shall expose an interface that is logically identical to the external WS interface, and if there is some "shortcut" to implement such an EJB, then I am interested in learning how to do that. However my primary interest is how to CONSUME a WS from an EJB. Thanks Lars Skickat från min iPhone 12 okt 2012 kl. 10:22 skrev Andrei Shakirin <[email protected]>: > Hi Lars, > > As far as JBoss natively uses CXF as WS frontend, it should be quite easy via > JBossWS integration. > You can see details in > - https://docs.jboss.org/author/display/JBWS/SOAP+over+JMS > - https://community.jboss.org/wiki/JBossWS-CXFJMSTransportTutorial > > In this case you can expose web service as web application deployed in war > archive. Service will provide SOAP over JMS endpoint. > In the same way you can integrate web client invoking SOAP over JMS service > in your EJB. > > This is the most straightforward way for JBoss. > > Alternatively you can interpret CXF as external messaging system and > integrate SOAP over JMS service via JCA (Resource Adapter). > in http://cxf.apache.org/docs/using-cxf-jca-rar-in-application-server.html. > In this case your implement your service logic in message bean. > CXF provides resource adapters for number of application servers: JBoss, > WebLogic, WebSphere, Geronimo. > > Regards, > Andrei. > > -----Original Message----- > From: helander [mailto:[email protected]] > Sent: Donnerstag, 11. Oktober 2012 20:53 > To: [email protected] > Subject: RE: WS JMS consumer in JEE container > > Hi Andrei, > > thank you very much for your feedback. I will study the link you provided. > > I am primarily using JBoss but I would like to find solutions that work with > other servers as well. > Do you know if JBoss supports anything out-of-the-box? > > Thanks > > Lars > > > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/WS-JMS-consumer-in-JEE-container-tp571 > 5962p5716418.html Sent from the cxf-user mailing list archive at > Nabble.com.
