Re: Questions regarding the implementation of a 2-endpoint Customer and CustomerService CXF JAX-RS web application

2011-05-13 Thread Sergey Beryozkin
Hi Ryan On Fri, May 13, 2011 at 2:25 AM, Ryan Zoerner ryanzoer...@gmail.com wrote: Sergey, I have the following question regarding the project. - -

Re: Questions regarding the implementation of a 2-endpoint Customer and CustomerService CXF JAX-RS web application

2011-05-13 Thread Ryan Zoerner
Hi Sergey, You mentioned that Customer should display a single customer. Does CustomerService instantiate that Customer? By what mechanism? I created this class to try and get around that problem. In the old demo, Customers were instantiated in CustomerService, however, if you have

Re: Questions regarding the implementation of a 2-endpoint Customer and CustomerService CXF JAX-RS web application

2011-05-13 Thread Sergey Beryozkin
Hi On Fri, May 13, 2011 at 10:54 AM, Ryan Zoerner ryanzoer...@gmail.com wrote: Hi Sergey, You mentioned that Customer should display a single customer. Does CustomerService instantiate that Customer? I'm presuming we are talking about the 2nd endpoint ? No, as I said in the previous email,

Re: Questions regarding the implementation of a 2-endpoint Customer and CustomerService CXF JAX-RS web application

2011-05-13 Thread Ryan Zoerner
Thank you for your answer. I'm sorry, I didn't see it before I posted the link. Ryan

Re: Questions regarding the implementation of a 2-endpoint Customer and CustomerService CXF JAX-RS web application

2011-05-13 Thread Sergey Beryozkin
Very good, there's one simplification is that those methods with @GET should just return 'this'. Just make sure Customer id and name are set to some default values. Your implementation is also correct though; if we rename Customer to say Person then your code can handle the family hierarchy

Questions regarding the implementation of a 2-endpoint Customer and CustomerService CXF JAX-RS web application

2011-05-12 Thread Ryan Zoerner
Sergey, I have the following question regarding the project. - - Customer: - Per-request