Cisco Unified Application Environment Developer Forums

« Back to Etch

More questions

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Hi,

Few more (basic) questions:

1) Can we declare multiple services in the Etch interface file?
2) Does each service require its own end-point (hostaddress/port)?i.e Can I have ServiceA and ServiceB listening on the same port?
3) Is there standard mechanism to publish the Etch interface file?
4) I read the following about Thrift:
"+Facebook Thrift requires specific versions of g++ and Java if you plan to talk to it using code written in either language and you can’t talk to it from a service written in C#+".
Does Etch support different server and client implementation to interoperate?

A small suggestion:
The Developer Conference video gives a very good overview of Etch. The video along with the presentation used in the video, can be used create quick start/user guide for Etch.

Best Regards,
Suresh

Edited by: Suresh Kumar on Oct 17, 2008 7:15 AM

inline:

Suresh Kumar wrote:
1) Can we declare multiple services in the Etch interface file?
no. it used to be that you could, so if you're reading the compiler it
does look like that.
2) Does each service require its own end-point (hostaddress/port)?i.e Can I have ServiceA and ServiceB listening on the same port?
no, a service is selected by endpoint. you can declare a service which
is a mixin of two other services (as long as there are no name
collisions) and then run that on a port. someone could then connect and
use either of the two original services or the service which is the
mixin. for example,

module blah
service Flu
{
mixin blah.Cough
mixin blah.Sneeze
}

someone could then connect and use any of the three idls: Flu.etch,
Cough.etch, or Sneeze.etch.
3) Is there standard mechanism to publish the Etch interface file?
no, but that is something i'd like to see. perhaps a repository somewhat
like maven?
A small suggestion:
The Developer Conference video gives a very good overview of Etch. The video along with the presentation used in the video, can be used create quick start/user guide for Etch.
thanks!

scott out

_______________________________________________
Etch mailing list
Etch@developer.cisco.com

Attachment not added (content type not allowed): "sccomer.vcf"

Hello Scott,

Many thanks for your responses for the first three questions.

However, I guess you have missed my fourth query:

4) I read the following about Thrift:

"Facebook Thrift requires specific versions of g++ and Java if you plan to talk to it using code written in either language and you can’t talk to it from a service written in C#".

Does Etch support different server and client implementation to interoperate?

Appreciate if you could provide some info on the above question.

Note: I tried to develop client and server implementation in Java and C# respectively, but somehow the Etch installation doesn't contain the Visual Studio plug-in installable.

Best Regards,
Suresh

Edited by: Suresh Kumar on Oct 18, 2008 8:15 AM

Marking this query unanswered since one of the question was left unanswered

Hi Suresh,

Etch does support different client and server implementation.. As of now, we are supporting java and csharp, in the future we also plan to also support C, python ruby etc.

As a workaround for the visual studio plugin, you can compile the etch file from cmd line and then include the generated files in the project.

for e.g. you can use following to compile the etch file

etch -b csharp -w all <filename>

Thanks,
Gaurav

Thank you guys.

I was able to develop a C# client to talk a Java service implementation.

Best Regards,
Suresh

inline...

Suresh Kumar wrote:
However, I guess you have missed my fourth query:

4) I read the following about Thrift:

"Facebook Thrift requires specific versions of g++ and Java if you plan to talk to it using code written in either language and you can¿t talk to it from a service written in C#".

Does Etch support different server and client implementation to interoperate?
yes.all versions and supported languages of etch should interoperate
with each other. there may be some specific backwards compatibility
reasons why that might not always be true for all settings and modes.
for instance, if someone writes a snail mail interface for java etch and
doesn't provide a c# version, then all bets are off for c# based apps
which try to inter-operate with java apps using it. generally, there
should always be a path to interoperability by specifying the right
combinations of operating parameters on the connection uri.

an implied question might be what versions of support platforms are
required? java, i recall 1.5.0_07 and on (including 1.6, etc.), .net 2.0
and on (including 3.0 and 3.5). of course, java compiler and runtime can
be on any platform. i'm thinking that mono can be used for c# etch on
linux, etc. python, i think 2.4 or 2.5 is what we are using for
development right now. c development is using vs 2005 c compiler, but
should be portable to gnu when the time comes.

scott out

_______________________________________________
Etch mailing list
Etch@developer.cisco.com

Attachment not added (content type not allowed): "sccomer.vcf"