Hello,
I have a little question. In my web application, I have a simple annotated Spring bean, for example:
And I want to use that bean in one of my flows so i declare it in my flow xml definition file like:Code:@Component public class MyBean implements Serializable { private String data; public String getData() { return data; } public void setData(String data) { this.data = data; } }
So far, so good, right?Code:<var name="myBean" class="my.package.MyBean" />
My question is: When the IoC container instantiates the MyBean object it uses the singleton scope by default, correct? So, how would I define MyBean to have a SWF scope? Or by defining it in the xml it gets refactored?
Thank you very much in advance...


Reply With Quote