Hi, Sorry for the late response. It skipped out of my eyes.

Please see my comments inline.

Thanks,
Raymnd
--------------------------------------------------
From: "Mohan, Mithun" <[EMAIL PROTECTED]>
Sent: Friday, June 06, 2008 11:08 AM
To: <[EMAIL PROTECTED]>
Subject: RE: Apache Tuscany doubts



Raymond wrote---
Yes, Tuscany makes the Web Service available once you have a component
with "binding.ws" service binding configured. In the J2SE environment,
it should be registered with an embedded HTTP server such as Jetty or
Tomcat and use
Axis2 stack underneath to handle the WS invocations. If it's deployed
with a web container such as Tomcat, we use the Servlet filter to trap
the Web Services traffic.
-----------------------

So does that mean I need to use an server like Tomcat or Tuscany takes
care of it ? I did not quite understand the meaning of deployed with a
web container.I am able to just compile the composite file to get the
output . I am not able to deploy this composite file as a web service.


There are different ways to deploy and run a Tuscany SCA composite application. For example, if you package it as a web application following the pattern described at http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Tuscany+Web+Application+based+Integration+with+Geronimo, and deploy it to a Tomcat server, then Tomcat will bootstrap the webapp and the WS will be made available.

If you run it as a J2SE application, then you can follow the sample at http://svn.apache.org/repos/asf/tuscany/java/sca/samples/helloworld-ws-service/src/main/java/helloworld/HelloWorldServer.java. You need to have either embedded Tomcat or Jetty on the classpath.




Raymond wrote---
There are two concepts:
1) A SCA runtime (or container) written in Java or C++
2) A SCA component written in Java or C++
At this point, Tuscany has both Java and C++ for 1). But the java
runtime doesn't support C++ component, and not C++ runtime supports Java
component either. So we have to use different runtimes to host the C++
and Java components at this point, but it's potentially possible that
the Java runtime will be capable of hosting C++ component.
---------------------------

So now say for eg I have two components one implemented in java and the
other implemented in C++.So if I was planning to make this a web service
.

1) Do I need to have separate composite files and then merge it to a
single web service
2) Do I have common composite file ?


SCA components provide services and consume services. SCA services can be exposed as Web Services. You have two components (one implemented in Java and the other in C++), what does the composition of these two components look like? There could be one composite file or two composite files, depending on how you compose the components.

It will be great if someone replies my doubts

Thanks and Regards,
Mithun





-----Original Message-----
From: Raymond Feng [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2008 1:45 PM
To: [EMAIL PROTECTED]
Subject: Re: Apache Tuscany doubts

Thank you for your interests in Tuscany. Please see my comments inline.

Raymond

--------------------------------------------------
From: "Mohan, Mithun" <[EMAIL PROTECTED]>
Sent: Friday, June 06, 2008 10:04 AM
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Subject: Apache Tuscany doubts

Hello,

I am new to Apache Tuscany and it looks like a great tool . I am sort
of doing a project as an Intern .
I am trying to create a web service for sca components using Apache
Tuscany I have a few doubts ,

1) Does Apache Tuscany take care of deploying the web-service or do we

need tools like Axis or CXF to deploy the web-service
  As far as my understanding goes , in the home page of the Apache
Tuscany  it takes care of making the web service online
http://cwiki.apache.org/confluence/display/TUSCANY/Build+your+first+We
b+
Services+with+Tuscany


Yes, Tuscany makes the Web Service available once you have a component
with "binding.ws" service binding configured. In the J2SE environment,
it should be registered with an embedded HTTP server such as Jetty or
Tomcat and use
Axis2 stack underneath to handle the WS invocations. If it's deployed
with a web container such as Tomcat, we use the Servlet filter to trap
the Web Services traffic.

2) Also, we have Apache Tuscany implemented in Java and also in C++ .
Is it possible to have SCA components in Java and C++ and stil exposed

as a single web service .

There are two concepts:
1) A SCA runtime (or container) written in Java or C++
2) A SCA component written in Java or C++

At this point, Tuscany has both Java and C++ for 1). But the java
runtime doesn't support C++ component, and not C++ runtime supports Java
component either. So we have to use different runtimes to host the C++
and Java components at this point, but it's potentially possible that
the Java runtime will be capable of hosting C++ component.

It will be great if anyone can spare some time and reply.

Thanks and Regards,
Mithun .

Reply via email to