This content has been marked as final.
Show 2 replies
-
1. Re: Switchyard bean service lifecycle
kcbabo Jul 3, 2012 6:09 PM (in response to jwgrein)Hey Joe,
The default for bean services will be @ApplicationScoped, which means one instance per service.
The default for beans used in a Camel route (equivalent to action classes in JBoss ESB) is one instance per invocation. You can add @ApplicationScoped to the bean definition to get one instance per service.I think that covers it all. :-)
cheers,
keith
-
2. Re: Switchyard bean service lifecycle
jwgrein Jul 5, 2012 10:22 AM (in response to kcbabo)Thanks Keith, that gives me exactly what I need to help reduce any headaches in a future ESB to Switchyard migration.
--Joe Grein