For the cross-language communication over TCP, you might consider to add SCA bindings based on protocols (in addition to CORBA) such as:

Google Protocol Buffers: http://code.google.com/apis/protocolbuffers/
Apache Thrift: http://incubator.apache.org/thrift/

IMO, such bindings will be valuable to the wider community and you don't have to reinvent stuff to do RPC over TCP.

Thanks,
Raymond
--------------------------------------------------
From: "Luciano Resende" <[email protected]>
Sent: Monday, February 15, 2010 3:06 PM
To: <[email protected]>
Subject: Re: Tuschany 2.x status?

On Mon, Feb 15, 2010 at 2:09 PM,  <[email protected]> wrote:
Thank you for your quick response.

We're developing some services that will be run on different machines then the clients.

This seems like a scenario where a scaClient access a remote service
(see code snipet from scaclient-api iTest)

       SCAClientFactory clientFactory =
SCAClientFactory.newInstance(URI.create("default"));
       HelloworldService service =
clientFactory.getService(HelloworldService.class,
"HelloworldComponent/HelloworldService");

Or just a case of a remote reference using some binding (e.g JMS from
what you mentioned below)
And both are supported in 2.x.

The services will be developed in Java. The clients, for now, will be developed in Java also. Our existing application already using JMS for communicating, so I think JMS binding is a good choice. I need to get an example of this scenario working but having hard time finding examples on Tuscany 2.x. (I know JMS callback support does not work on the current 2.x release, but since we're not using this feature now, so I guess it'll probably be ok).

I believe the JMS callback is already available in trunk as part of
TUSCANY-3450, but has not been released yet.

Later, we would like to add a new binding type to support client from outside of SCA that will probably written in C++. We were thinking raw TCP binding (HTTP is not allow for security reason). Maybe be you could point me to the existing binding that will support this.


That would be welcome ! BTW, if it helps, there is a CORBA binding in
1.x that could easily be ported for 2.x.

--
Luciano Resende
http://people.apache.org/~lresende
http://twitter.com/lresende1975
http://lresende.blogspot.com/

Reply via email to