Global vs Local message processors

AppoiffNittex

New Member
I have a question related to the usage of the custom message-processors as Global vs local.I have been defining all the custom transformers at global level and refered them in the mule flows.What is difference in the scope of the object defined inside a flow versus one declared as global and referred in flow?Is it going to be impact on the memory if a message processor is defined as global instead of inside flow?Apart from reusability is there any benifit from defining the processors as global?\[code\]Ex: Global Way of defining: <custom-transformer name="mycustom" class="org.MyClass" /> <flow name="myflow"> ... ... <transformer ref="mycustom" /> ... ...</flow>Local Way of defining:<flow name="myflow"> ... ... <custom-transformer name="mycustom" class="org.MyClass" /> ... ...</flow>\[/code\]This information would be helpful in designing an optimal solution in terms of memory and code maintainability.
 
Back
Top