<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-5763764290649132593.post8906769093186801959..comments</id><updated>2009-11-11T09:52:46.284+01:00</updated><title type='text'>Comments on CLOSED-LOOP: Restarting the embedded OpenEJB container between ...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.jonasbandi.net/feeds/8906769093186801959/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5763764290649132593/8906769093186801959/comments/default'/><link rel='alternate' type='text/html' href='http://blog.jonasbandi.net/2009/06/restarting-embedded-openejb-container.html'/><author><name>Jonas Bandi</name><uri>http://www.blogger.com/profile/00990537252799084615</uri><email>blog@jonasbandi.net</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5763764290649132593.post-1222501564651635093</id><published>2009-08-18T00:31:19.622+02:00</published><updated>2009-08-18T00:31:19.622+02:00</updated><title type='text'>@Laird

Sorry, I cannot reproduce your statement.
...</title><content type='html'>@Laird&lt;br /&gt;&lt;br /&gt;Sorry, I cannot reproduce your statement.&lt;br /&gt;&lt;br /&gt;If I call&lt;br /&gt;&lt;br /&gt;p.put(&amp;quot;openejb.embedded.initialcontext.close&amp;quot;, &amp;quot;destroy&amp;quot;);&lt;br /&gt;&lt;br /&gt;before creating my InitialContext. And then call&lt;br /&gt;&lt;br /&gt;context.close();&lt;br /&gt;&lt;br /&gt;at the end of each test.&lt;br /&gt;Then the persistence-unit gets deployed for each test. If you then have your persistence-provider configured to newly create the schema at deployment, you should not have any data surviving between two tests ...</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5763764290649132593/8906769093186801959/comments/default/1222501564651635093'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5763764290649132593/8906769093186801959/comments/default/1222501564651635093'/><link rel='alternate' type='text/html' href='http://blog.jonasbandi.net/2009/06/restarting-embedded-openejb-container.html?showComment=1250548279622#c1222501564651635093' title=''/><author><name>Jonas Bandi</name><uri>http://www.blogger.com/profile/00990537252799084615</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00503791023636389278'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jonasbandi.net/2009/06/restarting-embedded-openejb-container.html' ref='tag:blogger.com,1999:blog-5763764290649132593.post-8906769093186801959' source='http://www.blogger.com/feeds/5763764290649132593/posts/default/8906769093186801959' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5763764290649132593.post-7485640983939194765</id><published>2009-08-17T19:45:53.011+02:00</published><updated>2009-08-17T19:45:53.011+02:00</updated><title type='text'>Hi; excellent article.

Have you observed that the...</title><content type='html'>Hi; excellent article.&lt;br /&gt;&lt;br /&gt;Have you observed that the OpenJPA provider is not restarted when you do this?  I&amp;#39;m trying to work around this.&lt;br /&gt;&lt;br /&gt;That is, although a new EJB container is started for each test, the underlying JPA provider (OpenJPA) survives Context.close().  This means that data inserted into an in-memory H2 database, for example, can be seen by two test methods.  I haven&amp;#39;t found a way to solve this problem.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5763764290649132593/8906769093186801959/comments/default/7485640983939194765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5763764290649132593/8906769093186801959/comments/default/7485640983939194765'/><link rel='alternate' type='text/html' href='http://blog.jonasbandi.net/2009/06/restarting-embedded-openejb-container.html?showComment=1250531153011#c7485640983939194765' title=''/><author><name>Laird Nelson</name><uri>http://www.blogger.com/profile/07905132403257139697</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jonasbandi.net/2009/06/restarting-embedded-openejb-container.html' ref='tag:blogger.com,1999:blog-5763764290649132593.post-8906769093186801959' source='http://www.blogger.com/feeds/5763764290649132593/posts/default/8906769093186801959' type='text/html'/></entry></feed>