Re: sample crud implementation
Luciano Resende wrote: The one in the host-embedded is used for unit testing, and to make sure extensions are working ok. The one in samples, is basically a copy, and it's used as an example of how to build a new implementation type. As you said in the first e-mail, the two are basically the same, and I'd recommend you to stick with one of them (the sample version that is more well documented) Yes. Stick to the sample and ignore the test case, I'm going to change the test case to avoid confusion in the future. -- Jean-Sebastien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sample crud implementation
Jean-Sebastien Delfino wrote: Luciano Resende wrote: The one in the host-embedded is used for unit testing, and to make sure extensions are working ok. The one in samples, is basically a copy, and it's used as an example of how to build a new implementation type. As you said in the first e-mail, the two are basically the same, and I'd recommend you to stick with one of them (the sample version that is more well documented) Yes. Stick to the sample and ignore the test case, I'm going to change the test case to avoid confusion in the future. Done. I have refactored the test case and also cleaned up the CRUD sample and added more relevant comments to it. Hope this helps. -- Jean-Sebastien - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sample crud implementation
Hi, Could you please give a little more detail on what exactly is duplicated ? I suppose you are debugging to understand control flow and what you observe is pretty much the expected behaviour. Implementation Types (and Binding Types) are extensions to the Tuscany Runtime. The ModuleActivator is the mechanism by which the extensions strap on to the runtime. Typically in the ModuleActivator you setup or initialize various things that your extension runtime needs. For example in our java runtime module activator we set up various 'visitors' that we employ to introspect 'implementation code' amongst other things. This is a one time activity as your extension runtime needs to get strapped onto the core. After this, for every component that uses the implementation type in question, the core runtime calls various methods of the corresponding ImplementationProvider to deal with things such as creating an instance of the implementation, configuring it with component property and reference configurations, getting a handle to a invoker and so on. I hope this helps you either clear up a few more things or come up with more questions. Please feel free to ask. Thanks - Venkat On Dec 26, 2007 2:21 PM, Chandrashekhar Jain [EMAIL PROTECTED] wrote: hi all, I am going through the sample implementation-crud example for new implementation types. I noticed that the code is spread / duplicated at the following locations in svn: 1. java\sca\samples\implementation-crud-extension 2. java\sca\modules\host-embedded When i run the test case in 1 the test.crud.module.CRUDModuleActivator in 2 gets called. Also i get call back for the Implementation and ImplementationProvider classes in 1. Am i missing something ? thanks, in advance regards, chandra Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
sample crud implementation
hi all, I am going through the sample implementation-crud example for new implementation types. I noticed that the code is spread / duplicated at the following locations in svn: 1. java\sca\samples\implementation-crud-extension 2. java\sca\modules\host-embedded When i run the test case in 1 the test.crud.module.CRUDModuleActivator in 2 gets called. Also i get call back for the Implementation and ImplementationProvider classes in 1. Am i missing something ? thanks, in advance regards, chandra Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
Re: sample crud implementation
hi Luciano, Venkat thanks for the quick response. So we do need the CRUD implementation in both the modules ? regards, chandra - Original Message From: Luciano Resende [EMAIL PROTECTED] To: tuscany-user@ws.apache.org Sent: Wednesday, December 26, 2007 6:30:39 PM Subject: Re: sample crud implementation This CRUD implementation was initially started as a unit test for Tuscany extensions in the host-embedded module and later on copied as a sample, that's why you probably seeing some confusion. On Dec 26, 2007 12:51 AM, Chandrashekhar Jain [EMAIL PROTECTED] wrote: hi all, I am going through the sample implementation-crud example for new implementation types. I noticed that the code is spread / duplicated at the following locations in svn: 1. java\sca\samples\implementation-crud-extension 2. java\sca\modules\host-embedded When i run the test case in 1 the test.crud.module.CRUDModuleActivator in 2 gets called. Also i get call back for the Implementation and ImplementationProvider classes in 1. Am i missing something ? thanks, in advance regards, chandra Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs -- 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] Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
Re: sample crud implementation
This CRUD implementation was initially started as a unit test for Tuscany extensions in the host-embedded module and later on copied as a sample, that's why you probably seeing some confusion. On Dec 26, 2007 12:51 AM, Chandrashekhar Jain [EMAIL PROTECTED] wrote: hi all, I am going through the sample implementation-crud example for new implementation types. I noticed that the code is spread / duplicated at the following locations in svn: 1. java\sca\samples\implementation-crud-extension 2. java\sca\modules\host-embedded When i run the test case in 1 the test.crud.module.CRUDModuleActivator in 2 gets called. Also i get call back for the Implementation and ImplementationProvider classes in 1. Am i missing something ? thanks, in advance regards, chandra Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs -- 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]
Re: sample crud implementation
The one in the host-embedded is used for unit testing, and to make sure extensions are working ok. The one in samples, is basically a copy, and it's used as an example of how to build a new implementation type. As you said in the first e-mail, the two are basically the same, and I'd recommend you to stick with one of them (the sample version that is more well documented) On Dec 26, 2007 5:17 AM, [EMAIL PROTECTED] wrote: hi Luciano, Venkat thanks for the quick response. So we do need the CRUD implementation in both the modules ? regards, chandra - Original Message From: Luciano Resende [EMAIL PROTECTED] To: tuscany-user@ws.apache.org Sent: Wednesday, December 26, 2007 6:30:39 PM Subject: Re: sample crud implementation This CRUD implementation was initially started as a unit test for Tuscany extensions in the host-embedded module and later on copied as a sample, that's why you probably seeing some confusion. On Dec 26, 2007 12:51 AM, Chandrashekhar Jain [EMAIL PROTECTED] wrote: hi all, I am going through the sample implementation-crud example for new implementation types. I noticed that the code is spread / duplicated at the following locations in svn: 1. java\sca\samples\implementation-crud-extension 2. java\sca\modules\host-embedded When i run the test case in 1 the test.crud.module.CRUDModuleActivator in 2 gets called. Also i get call back for the Implementation and ImplementationProvider classes in 1. Am i missing something ? thanks, in advance regards, chandra Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs -- 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] Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping -- 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]