Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Access to external resources such as a file system should ideally go through a <strong>JCA connector</strong>. Though there are several posts around discussing this, I never found a ready-to-use JCA connector for transactional access to the file system, so I started to write one:</p> <ul> <li>Have a look at: <a href="http://www.ewernli.com/web/guest/52" rel="noreferrer">JCA connector: a file system adapter</a>. It's fairly basic, but manages commit/rollback of files.</li> </ul> <p>Regarding other projects:</p> <ul> <li>I don't know the exact status of <a href="http://commons.apache.org/transaction/" rel="noreferrer">commons-transactions</a>, it seems dead to me.</li> <li>Have a look at <a href="http://www.jboss.org/jbosstm/fileio.html" rel="noreferrer">JBoss Transactional File I/O</a>, looks promising.</li> <li>Have also a look at <a href="http://sourceforge.net/projects/filera/" rel="noreferrer">Filera: File resource adapter</a>, but I don't think it's transactional</li> </ul> <p>Note that as soon as you have more than one transactional participant, the app. server really need to use distributed transaction and things get more complicated. You must not underestimate this complexity (e.g. database have another timeout mechanism for distributed transaction).</p> <p>Another lightweight approach to consider is to use a <strong>SFSB</strong> that writes on the file system. If you implement <a href="http://java.sun.com/javaee/6/docs/api/javax/ejb/SessionSynchronization.html" rel="noreferrer"><code>SessionSynchronization</code></a> interface, you get <code>beforeCompletion</code> and <code>afterCompletion</code> callbacks. The later indicates whether the transaction was committed or rolled back and you do cleanup if necessary. You can then implement a transactional behavior. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload