Re: @Configurable instead of @SpringBean

2008-11-16 Thread Robert
I made a test case and it works. BTW - My thread seems to be put inside another thread. I did not expect this to happen if I would hit reply in Thunderbird using Gmail IMAP. Sorry! James Carman wrote: Are you sure they're being deserialized? I'd try a test case On 11/15/08, Robert

Re: @Configurable instead of @SpringBean

2008-11-16 Thread Igor Vaynberg
as jweekend told you, you should read this thread [1] [1] http://www.nabble.com/%40SpringBean-vs-%40Configurable-to18572291.html -igor On Sun, Nov 16, 2008 at 1:14 PM, Robert [EMAIL PROTECTED] wrote: I made a test case and it works. BTW - My thread seems to be put inside another thread. I

Re: @Configurable instead of @SpringBean

2008-11-16 Thread Robert
Yes, I read it. I was just responding to James. I understand now the problem that would occur when passing a bean to another object that will be serialized. So both methods seems to have its positive and negative sides. Igor Vaynberg wrote: as jweekend told you, you should read this thread

Re: @Configurable instead of @SpringBean

2008-11-15 Thread James Carman
Serialization is the issue. @Configurable doesn't handle serialization properly. On Sat, Nov 15, 2008 at 2:59 PM, Robert [EMAIL PROTECTED] wrote: Hi, I have been using the @SpringBean annotation for dependency inject my DAO's inside certain objects. However for objects that are not managed

Re: @Configurable instead of @SpringBean

2008-11-15 Thread jWeekend
Robert, See http://www.nabble.com/%40SpringBean-vs-%40Configurable-to18572291.html this thread and http://jira.springframework.org/browse/SPR-4302 . Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk Robert ... wrote: Hi, I have been using the @SpringBean annotation

Re: @Configurable instead of @SpringBean

2008-11-15 Thread James Carman
You may also want to take a look at: http://jira.springframework.org/browse/SPR-4777 On Sat, Nov 15, 2008 at 4:39 PM, jWeekend [EMAIL PROTECTED] wrote: Robert, See http://www.nabble.com/%40SpringBean-vs-%40Configurable-to18572291.html this thread and

Re: @Configurable instead of @SpringBean

2008-11-15 Thread James Carman
Are you sure they're being deserialized? I'd try a test case On 11/15/08, Robert [EMAIL PROTECTED] wrote: In what way is serialization the issue? Because the fields are marked as transient anyway, so not serialized, and after deserialization, Spring re-injects the bean. Or are you saying