OK I think  understand. You are using the C++ client from CppCalulator
to try and access the RubyCalulator component?

At the moment there is a restriction here in that the C++ client can
only locate/call a C++ service. This is because the locateService
returns a C++ proxy to the service. These are generated by the scagen
utility form the information in the interface headers, composite and
componentType files and built into the implementation dll. For a Ruby
component implementation there is no dll and no generated proxy.

You can call Ruby components from C++ components as here the interface
on the reference from the C++ component to the Ruby component is
sufficeient to generate the proxy which will be built in to the c++
component implementation dll.

Cheers,

On 01/07/07, Travis Vitek <[EMAIL PROTECTED]> wrote:

I'm using the Calculator example services. I setup a batch file to run
each client implementation against each service implementation. Before
running a client, I set the TUSCANY_SCACPP_ROOT environment variable. I
can provide that batch file if you'd like.

Travis

-----Original Message-----
From: Pete Robbins

Hi Travis. Could you post your .composite and .comonentType files
please. There may be a restriction of calling a Ruby component directly
from a C++ client... I'd need to check. Have you tried having the client
call initially into a C++ component which then invokes the Ruby
component?

Cheers,

On 30/06/07, Travis Vitek <[EMAIL PROTECTED]> wrote:
>
> I've been playing with Tuscany SCA for a few days and I've run into
> something that I believe should work but does not. As the subject
> indicates, I'm trying to invoke a local non-c++ service from a c++
> client via Tuscany SCA Native. I've scoured the documentation and
> haven't seen anything indicating that this is a known limitation,
> perhaps I'm doing something wrong?
>
> Here is the output I get when running the C++ client against a ruby
> service.
>
>        calculator_client: exception caught: Exception
>         Class:           SystemConfigurationException
>         Description:     Unable to load library:
> C:\build\tuscany\tuscany_sca_native-1.0-incubator-M3-bin\samples\RubyC
> al culator\deploy\sample.calculator/.dll, error: The specified module
> could not be found.
>
>         Origin:
>           File:
> ..\..\..\runtime\core\src\tuscany\sca\util\Library.cpp
>           Line:            144
>           Function:        tuscany::sca::util::Library::load
>         Path:
>           File:
> ..\..\..\runtime\extensions\cpp\src\tuscany\sca\cpp\CompositeContextIm
> pl
> .cpp
>           Line:          101
>           Function:
> tuscany::sca::cpp::CompositeContextImpl::locateService
>
>
> Travis
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Pete

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Pete

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to