Re: parsing parameters to the init method

2011-08-11 Thread Eranda Sooriyabandara
Hi Jean-Sebastian, Thanks for the idea. I think I may select the approach (a) for the implementation a) One component representing the collection of entries. Use the following service interface (c is your datastore component) e = c.getEntry(db, group, key) and obtain the database, group

Re: parsing parameters to the init method

2011-08-09 Thread Luciano Resende
On Sat, Aug 6, 2011 at 8:30 PM, Eranda Sooriyabandara 0704...@gmail.com wrote: Hi Jean-Sebastian, I was bit confused on how am I going to maintain the relationship between Session, Database and Group. With all these methods I am kind of lost in the middle in choosing one. If you can call one

Re: parsing parameters to the init method

2011-08-09 Thread Jean-Sebastien Delfino
On Sat, Aug 6, 2011 at 8:30 PM, Eranda Sooriyabandara 0704...@gmail.com wrote: Hi Jean-Sebastian, I was bit confused on how am I going to maintain the relationship between Session, Database and Group. With all these methods I am kind of lost in the middle in choosing one. If you can call one

Re: parsing parameters to the init method

2011-08-06 Thread Eranda Sooriyabandara
Hi Jean-Sebastian, I was bit confused on how am I going to maintain the relationship between Session, Database and Group. With all these methods I am kind of lost in the middle in choosing one. If you can call one for me I can work on it. First I was thought of keep some status for the component

Re: parsing parameters to the init method

2011-08-05 Thread Jean-Sebastien Delfino
On Sun, Jul 31, 2011 at 9:32 AM, Eranda Sooriyabandara 0704...@gmail.com wrote: Thanks Mike, Your reply addressed all my issues of creating the component. Also thank you for the examples. Eranda Hi Eranda, Could you give a little more description of what you're trying to do? I know you got

Re: parsing parameters to the init method

2011-07-31 Thread Mike Edwards
On 30/07/2011 20:02, Eranda Sooriyabandara wrote: Hi Raymond, Can you model them as SCA properties? We support constructor based injection. Is there a example code which explain how to use it? Or can you explain a bit how can to do it. thanks Eranda Eranda, The OASIS SCA Java CAA spec

parsing parameters to the init method

2011-07-30 Thread Eranda Sooriyabandara
Hi devs, I have some problems which I like to get help from you. How can I parse parameters to the init method (annotated by @init)? Can I call init method and parse parameters from another service? After parsing that can I use it(that instance) as an independent service? thanks -- Eranda

Re: parsing parameters to the init method

2011-07-30 Thread Raymond Feng
Can you model them as SCA properties? We support constructor based injection. Or do you want to keep some states for the component? Raymond Feng Sent from my iPhone On Jul 30, 2011, at 9:57 AM, Eranda Sooriyabandara 0704...@gmail.com wrote: Hi devs, I have some problems which I like to get

Re: parsing parameters to the init method

2011-07-30 Thread Eranda Sooriyabandara
Hi Raymond, Or do you want to keep some states for the component? Yes I want to keep some status for the component.

Re: parsing parameters to the init method

2011-07-30 Thread Eranda Sooriyabandara
Hi Raymond, Can you model them as SCA properties? We support constructor based injection. Is there a example code which explain how to use it? Or can you explain a bit how can to do it. thanks Eranda