This content has been marked as final.
Show 5 replies
-
1. Re: SwitchYard Bean Setup/Teardown
igarashitm Aug 28, 2014 5:00 AM (in response to arnstene)Hi,
Have you tried @PostConstruct and @PreDestroy on a bean implementation?
-
2. Re: SwitchYard Bean Setup/Teardown
synclpz Sep 5, 2014 6:13 AM (in response to igarashitm)Be wary that @PreDestroy is never called at least with SY 1.0 and 1.1
-
3. Re: SwitchYard Bean Setup/Teardown
rcernich Sep 5, 2014 10:16 AM (in response to synclpz)I believe the PreDestroy issue is caused by a bug in Weld, which applies to beans with @Default scope. If you scope your bean @Application you should get notified.
-
4. Re: SwitchYard Bean Setup/Teardown
magick93 Sep 9, 2014 11:32 AM (in response to arnstene)And postconstruct is problably not a good idea either - Bug 1086295 – SwitchYard injection does not work in @PostConstruct method of Service bean
-
5. Re: SwitchYard Bean Setup/Teardown
synclpz Sep 10, 2014 4:05 AM (in response to magick93)Anyway, that's the only option to initialize component.
We use custom xml config placed in meta-inf instead of SY properties.