On Thu, Oct 1, 2009 at 10:44 AM, Pitaev, Anna <anna.pit...@logica.com> wrote: > Dear all, > > > > Could you help us to answer of the following questions about the Tuscany > JMS: > > > > 1. Using Tuscany is it possible to send binary messages using the JMS > integration. > > We would like to transmit protocol buffers over JMS for example this > requires us > > to marshal and de-marshal the binary payload. Is this possible > > to achieve using the JMS integration in Tuscany and would the approach be? >
Yes thats possible, there's some doc about it at http://tuscany.apache.org/sca-java-bindingjms.html, specifically the bit on wireFormat.jmsObject/>. The old OSOA specs did not define a way to do this so Tuscany originally used a Tuscany specific attribute "messageProcessor" which is still supported in 1.x, later the OASIS specs did define a way to use this using the <wireformat> SCDL extension and Tuscany implemented that in the 1.x code but having it in the Tuscany SCDL namespace. I'm just bring up the JMS binding in the 2.x code now and it will be using the OASIS specs and namespaces. > 2. I am assuming the current JMS implementation has a message protocol > defined containing the information > > needed to invoke the correct service operation, is this standard in > SCA i.e. is this vendor neutral? > Yes the SCA JMS binding spec defines the format of the JMS messages so in theory different SCA implementations using the JMS binding could interoperate. There's been no interop testing and the OASIS JMS binding conformance tests aren't done yet though so you would really need to test this before relying on it right now though! > 3. Is it possible to integrate Apache MINA framework to the Tuscany > SCA application, again this would be to send and receive protocol buffers, > > if it is what is the general approach, and has anyone tried it? > I don't know of anyone using Mina and Tuscany yet, though it does sound worthwhile. I guess the obvious way to do it would be to create a new binding extension to support <binding.mina>. I'd start but copying one of the existing Tuscany bindings (perhaps the RMI or JSONP binding as they're quite simple) and then changing to use Mina. If you'd like to try to work on that here at Tuscany I'm sure you'd get lots of help. ...ant