Change the scope of a Bean dynamic
Hi,
I managed to inject a bean dynamically:
Map sm = FacesContext.getCurrentInstance().getExternalContext().getSessionMap();
TestBean tb = new TestBean();
sm.put("testBean", tb);
now my question is:
I didn't define the bean in the faces-config, because it is dynamic and so I can't know in andvance how many new beans will be produced. Now, how can I set the scope of the new created bean?
Is there a default?
Any idea?
Cheers

