-
1. Re: Strange feature in switchtyard.xml
kcbabo Jan 15, 2014 9:31 AM (in response to l.sroka)If a CDI bean references another CDI bean, then CDI will automatically wire those together.
-
2. Re: Strange feature in switchtyard.xml
l.sroka Jan 15, 2014 10:12 AM (in response to kcbabo)Is this mean that i should not put my @named PageBean in switchyard.xml if i already have put in switchyard.xml other bean (like RegistrationPageBean) ?
-
3. Re: Strange feature in switchtyard.xml
kcbabo Jan 15, 2014 12:07 PM (in response to l.sroka)1 of 1 people found this helpfulIt's really up to you if you want to define this interaction in switchyard.xml. As I mentioned in an earlier post, Injection between two CDI beans happens whether SwitchYard is involved or not. Possible reason why you might want to include the definition in switchyard.xml anyway:
1) You want to document the relationship between service components in your application model.
2) You anticipate that the relationship may change at some point in the future. For example, if the consumer CDI bean needs to switch to a provider different than another CDI Bean (e.g. a remote web service).