I&#39;ll speak up about one concern I have.&nbsp; If MetaDataCache and ManagerImpl are stored in static references, I imagine it will be difficult to perform simultaneous/multi-threaded integration testing for webbeans apps.&nbsp; For example, with Seam, you can&#39;t have two SeamTests running at the same time in the same JVM, because Lifecycle.java has a static reference to the application map, and the two tests would interfere with each other.&nbsp; I&#39;d be sad if the same thing occurs for the webbeans ri.<br>
<br>Now, maybe you could could use some ThreadLocal magic  or something to avoid having to pass the ManagerImpl/metadatacache around everywhere in method calls. But my preference would be that the webbeans RI doesn&#39;t use static singletons at all.<br>
<br>What do you guys think?<br><br>-Matt<br><br><br><div class="gmail_quote">On Fri, Dec 5, 2008 at 5:04 PM, Gavin King <span dir="ltr">&lt;<a href="mailto:gavin@hibernate.org">gavin@hibernate.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Is there any reason why we can&#39;t just make the MetaDataCache object a<br>
static singleton?<br>
<br>
--<br>
Gavin King<br>
<font color="#888888"><a href="mailto:gavin.king@gmail.com">gavin.king@gmail.com</a><br>
<a href="http://in.relation.to/Bloggers/Gavin" target="_blank">http://in.relation.to/Bloggers/Gavin</a><br>
<a href="http://hibernate.org" target="_blank">http://hibernate.org</a><br>
<a href="http://seamframework.org" target="_blank">http://seamframework.org</a><br>
_______________________________________________<br>
webbeans-dev mailing list<br>
<a href="mailto:webbeans-dev@lists.jboss.org">webbeans-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/webbeans-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/webbeans-dev</a><br>
</font></blockquote></div><br>