Hello,

I have a little question. In my web application, I have a simple annotated Spring bean, for example:

Code:
@Component
public class MyBean implements Serializable {

    private String data;

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

}
And I want to use that bean in one of my flows so i declare it in my flow xml definition file like:

Code:
<var name="myBean" class="my.package.MyBean" />
So far, so good, right?

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...