<html><body bgcolor="#FFFFFF"><div>Nice, I agree that it is the right way to go. I was almost suggesting separating that on a separate module also.</div><div><br></div><div>However it must be considered that JTA would not always be used (when running on tomcat for example). How would this module handle these scenarios ? Would it depend on persistence module itself ?<br>
<br></div><div>Em 11/03/2011, ās 21:54, Dan Allen &lt;<a href="mailto:dan.j.allen@gmail.com">dan.j.allen@gmail.com</a>&gt; escreveu:<br><br></div><div></div><blockquote type="cite"><div>John, George and Jordan,<div><br></div>
<div>I&#39;m assuming that both the JMS and JCR modules will want to leverage the transaction support for non-EJBs that is currently provided by Seam Persistence, correct? Given that&#39;s the case, I proposed moving the transaction APIs into the org.jboss.seam.transaction package. However, after Seam 3.0 final, I&#39;m thinking we should split this package into a transaction module that can be shared. Does that sound like the right way to go?</div>


<div><br></div><div><a href="https://issues.jboss.org/browse/SEAMPERSIST-34"><a href="https://issues.jboss.org/browse/SEAMPERSIST-34">https://issues.jboss.org/browse/SEAMPERSIST-34</a></a></div><div><br></div><div>Btw, you can use an @Unwraps method or proxy handler to enlist your resource into the current transaction when the resource is dereferenced. See <a href="https://github.com/seam/persistence/blob/master/impl/src/main/java/org/jboss/seam/persistence/ManagedPersistenceContextProxyHandler.java"><a href="https://github.com/seam/persistence/blob/master/impl/src/main/java/org/jboss/seam/persistence/ManagedPersistenceContextProxyHandler.java">https://github.com/seam/persistence/blob/master/impl/src/main/java/org/jboss/seam/persistence/ManagedPersistenceContextProxyHandler.java</a></a></div>


<div><br></div><div>-Dan<br clear="all"><br>-- <br><div>Dan Allen</div>Principal Software Engineer, Red Hat | Author of Seam in Action<br>Registered Linux User #231597<br><br><div><a href="http://www.google.com/profiles/dan.j.allen#about" target="_blank"><a href="http://www.google.com/profiles/dan.j.allen#about">http://www.google.com/profiles/dan.j.allen#about</a></a><br>


<a href="http://mojavelinux.com" target="_blank"><a href="http://mojavelinux.com">http://mojavelinux.com</a></a><br><a href="http://mojavelinux.com/seaminaction" target="_blank"><a href="http://mojavelinux.com/seaminaction">http://mojavelinux.com/seaminaction</a></a><br>
</div><br>
</div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>seam-dev mailing list</span><br><span><a href="mailto:seam-dev@lists.jboss.org">seam-dev@lists.jboss.org</a></span><br>
<span><a href="https://lists.jboss.org/mailman/listinfo/seam-dev">https://lists.jboss.org/mailman/listinfo/seam-dev</a></span><br></div></blockquote></body></html>