Register / Login
Win a copy of
this week in the
this forum made possible by our volunteer staff, including ...
Jesper de Jong
Stephan van Hulst
Other Application Frameworks
How I can make multiple instances of a SEAM component?
posted 6 years ago
I've been having troubles making multiples instances of a Seam Component,
I've tried to do:
... // previous code
MyClass object1 = Component.getInstance("myClass",true);
MyClass object2 = Component.getInstance("myClass",true);
MyClass object3 = Component.getInstance("myClass",true);
... //more code
But I've been readed that the getInstance() method uses the Singleton
so object1, object2 and object3 refers to the same instance :S
I need three different instances of that component, could you help me please?
Sorry about my english but I don't speak english.
Boost this thread!
How to search for nested objects?
store more than one object into a file [ObjectOutputStream]
jaxb marshall java to xml
Is this explanation correct?