This content has been marked as final.
Show 1 reply
-
1. Re: Multiple instances of a Seam component
willpiasecki Nov 3, 2010 11:18 AM (in response to priyasrihari)Hello, we had this issue recently and we solved it this way:
@Name("dynamicComponent") class DynamicComponent implements Runnable { public void run() { // do things... } }
@Name("dynamicController") class DynamicController { void doStuff() { for (int i = 0 ; i < 5; i++) { new Thread(Component.forName("dynamicComponent").newInstance()).start(); } } }
We printed the references of the objects and they all are different.