Thank you again, you explain is enough clear to me.

I was using the latest trunk revision 580546, and I think there might be some 
bug here:

I debugged in ComponentServiceImpl.setService(*), CompanyService should be set 
with DAS, but actually it was set CompanyService.

Thanks.

Luciano Resende <[EMAIL PROTECTED]> wrote: At the moment, the DAS service is 
the "static das contract" that gets
assigned to every  component and allows you to
perform simple CRUD operations. The other service interfaces are added
at the moment by the componentType side file, that must match the das
config file name.... so, if you have something like :

   ...
    
        
        
   
    driverClass="org.apache.derby.jdbc.EmbeddedDriver"
    databaseURL="jdbc:derby:target/test-classes/dastest; create = true"
    loginTimeout="600000"/>
   
  
    
    ...

Then you should define the services in a company.componentType side file

    
        
interface="org.apache.tuscany.sca.implementation.das.company.CompanyService"/>
    

You should also be using recent trunk code,  as I have recently fixed
couple issues on this area. The test cases from implementation.das and
customer-map demo should also be a reference for you.

Let me know if it works for you, and if you have other questions...

On 9/28/07, shaoguang geng  wrote:
> Hi Luciano, thank you very much,
>
> Let me be further, (during debugging) I saw a service with name=DAS got 
> instantiated (twice), but when the RuntimeSCAServiceBindingProvider started, 
> the CompanyService which seems not instantiated throws an NPE due to no 
> interfacecontract.
>
> (I noticed that an JavaInterfaceContractImpl will be assigned to an 
> implementation das)
>
> Do you have any suggestion to me?
>
> Thanks.
>
> Luciano Resende  wrote: In the  test cases, there is a component type file
> that assign the proper interface to the service as below :
>
>
>
> interface="org.apache.tuscany.sca.implementation.das.company.CompanyService"/>
>
>
> The interface looks like this :
>
> public interface CompanyService {
>     public DataObject getCompanies();
> }
>
>
> Please let me know if you have further questions.
>
> On 9/28/07, shaoguang geng  wrote:
> > Hi, every one:
> >
> > I have a question about implementation-das, could some one tell me WHICH  
> > InterfaceContract IS ASSIGNED to a ?
> >
> > Thanks
> >
> >
> > ---------------------------------
> > Luggage? GPS? Comic books?
> > Check out fitting  gifts for grads at Yahoo! Search.
>
>
> --
> Luciano Resende
> Apache Tuscany Committer
> http://people.apache.org/~lresende
> http://lresende.blogspot.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> ---------------------------------
> Building a website is a piece of cake.
> Yahoo! Small Business gives you all the tools to get online.


-- 
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/

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



       
---------------------------------
Don't let your dream ride pass you by.    Make it a reality with Yahoo! Autos. 

Reply via email to