[jboss-dev-forums] [Design of JBoss ESB] - Re: ESB Action transactions and synhronization questions
Kevin.Conner@jboss.com
do-not-reply at jboss.com
Mon Nov 10 06:02:20 EST 2008
It is not used in the scheduled listener case, but for all other listeners it will be.
If you use a POJO as an action then a new instance will be created for every message passing through the pipeline. This is for historical reasons.
If your action implements the ActionPipelineProcessor or ActionLifecycle interfaces then there will be a single instance created for each pipeline (incoming transport). The action must be thread safe as it is possible for multiple threads to access it concurrently.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4188069#4188069
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4188069
More information about the jboss-dev-forums
mailing list