<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: RMI, JCR and the Giant Transaction (or lack there of) in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/rmi-jcr-and-the-giant-transaction-or-lack-there-of/m-p/38851#M20645</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any more updates to this? I am having the same issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Jun 2006 16:15:06 GMT</pubDate>
    <dc:creator>steel</dc:creator>
    <dc:date>2006-06-19T16:15:06Z</dc:date>
    <item>
      <title>RMI, JCR and the Giant Transaction (or lack there of)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rmi-jcr-and-the-giant-transaction-or-lack-there-of/m-p/38844#M20638</link>
      <description>I am connecting to Alfresco via RMI (jackrabbit) over the JCR interace.&amp;nbsp; Per the new build I am throwing an exception in the Alfresco JCRProxyI start a transaction on my side (which does not result in any kind of synchronization on Alfresco's side (AlfrescoTransactionSupport) which leads trxId to ev</description>
      <pubDate>Tue, 17 Jan 2006 21:22:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rmi-jcr-and-the-giant-transaction-or-lack-there-of/m-p/38844#M20638</guid>
      <dc:creator>rdanner</dc:creator>
      <dc:date>2006-01-17T21:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: RMI, JCR and the Giant Transaction (or lack there of)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rmi-jcr-and-the-giant-transaction-or-lack-there-of/m-p/38845#M20639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Russ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We've yet to try out JCR-RMI in-house, so you're leading the way here!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How are you managing the transaction on your side?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 18:37:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rmi-jcr-and-the-giant-transaction-or-lack-there-of/m-p/38845#M20639</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2006-01-18T18:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: RMI, JCR and the Giant Transaction (or lack there of)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rmi-jcr-and-the-giant-transaction-or-lack-there-of/m-p/38846#M20640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Russ,&lt;BR /&gt;&lt;BR /&gt;We've yet to try out JCR-RMI in-house, so you're leading the way here!&lt;BR /&gt;&lt;BR /&gt;How are you managing the transaction on your side?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Well,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I dont know if we will be going to production with RMI anyway.&amp;nbsp; For now it was an easy way to put the repository outside of our work and behind a service layer (that eventually translates to JCR - RMI and finally alfresco)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Prior to yesterday I had been using JTA provided JOTM or in some test scenarios a fake/stub Transaction.&amp;nbsp; To be completely honest I have yet to spend much grey power on transactions. Alfresco complained that I was operating outside a transaction so I started up JOTM got a transaction started and went on my way until I built 1.1.2 and got the exception above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The thing there is if i am going to register a synchonization it should all happen magically somehow throught the JCR layer of alfresco because no one using JCR is going to know about a alfresco transaction service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Jackrabbit stuff looks good.&amp;nbsp; I assume you guys are going to use it?&amp;nbsp; They have done a lot to build client object so they can meet the JCR spec exactly and hide all the remote crap from the client.&amp;nbsp; It seems good.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Personally I hate RMI and all it's nasty serialization and firewall issues; but like i said it's a quick remoting option (off the shelf) for us at the moment.&amp;nbsp; We are looking at alternatives.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 18:49:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rmi-jcr-and-the-giant-transaction-or-lack-there-of/m-p/38846#M20640</guid>
      <dc:creator>rdanner</dc:creator>
      <dc:date>2006-01-18T18:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: RMI, JCR and the Giant Transaction (or lack there of)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rmi-jcr-and-the-giant-transaction-or-lack-there-of/m-p/38847#M20641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Changes have been made to the way we integrate transactions into our JCR layer.&amp;nbsp; I haven't tried the RMI layer against it yet, but it may now behave.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2006 17:14:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rmi-jcr-and-the-giant-transaction-or-lack-there-of/m-p/38847#M20641</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2006-02-16T17:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: RMI, JCR and the Giant Transaction (or lack there of)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rmi-jcr-and-the-giant-transaction-or-lack-there-of/m-p/38848#M20642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Changes have been made to the way we integrate transactions into our JCR layer.&amp;nbsp; I haven't tried the RMI layer against it yet, but it may now behave.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Ill take a look at it in the next few days&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2006 18:22:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rmi-jcr-and-the-giant-transaction-or-lack-there-of/m-p/38848#M20642</guid>
      <dc:creator>rdanner</dc:creator>
      <dc:date>2006-02-17T18:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: RMI, JCR and the Giant Transaction (or lack there of)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rmi-jcr-and-the-giant-transaction-or-lack-there-of/m-p/38849#M20643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are testing JCR-RMI in one project, and in Alfresco 1.2 the system works better. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But there's a problem: RMI calls (that should belong to same transaction) might happen in different threads on Alfresco's side. This leads to following exception (when the executing RMI thread is not the same that previously logged in to JCR): net.sf.acegisecurity.AuthenticationCredentialsNotFoundException: A valid&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SecureContext was not provided in the RequestContext.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If we go past that doing authentication for example in custom JcrProxyFactory in different threads, next we will be getting this exception:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Exception in thread "main" java.lang.RuntimeException: UserTransaction may not be accessed by multiple threads&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.alfresco.util.transaction.SpringAwareUserTransaction.getTransactionInfo(SpringAwareUserTransaction.java:234)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.alfresco.util.transaction.SpringAwareUserTransaction.rollback(SpringAwareUserTransaction.java:435)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.alfresco.jcr.session.SessionImpl$InnerTransaction.rollback(SessionImpl.java:965)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.alfresco.jcr.session.SessionImpl.logout(SessionImpl.java:654)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.reflect.Method.invoke(Method.java:585)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.alfresco.jcr.util.JCRProxyFactory$SessionContextInvocationHandler.invoke(JCRProxyFactory.java:154)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at $Proxy62.logout(Unknown Source)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.jackrabbit.rmi.server.ServerSession.logout(ServerSession.java:229)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;How should we handle this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to access same transaction from different threads?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or would it be wise for example to use own new thread per each JCR session, and run all the stuff in there from different RMI calls/threads?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Mar 2006 11:37:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rmi-jcr-and-the-giant-transaction-or-lack-there-of/m-p/38849#M20643</guid>
      <dc:creator>ananius</dc:creator>
      <dc:date>2006-03-04T11:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: RMI, JCR and the Giant Transaction (or lack there of)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rmi-jcr-and-the-giant-transaction-or-lack-there-of/m-p/38850#M20644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't played with it, myself, but have you configured the Alfresco transactionManager to use the JTA transaction manager?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2006 12:10:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rmi-jcr-and-the-giant-transaction-or-lack-there-of/m-p/38850#M20644</guid>
      <dc:creator>derek</dc:creator>
      <dc:date>2006-03-07T12:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: RMI, JCR and the Giant Transaction (or lack there of)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rmi-jcr-and-the-giant-transaction-or-lack-there-of/m-p/38851#M20645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any more updates to this? I am having the same issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2006 16:15:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rmi-jcr-and-the-giant-transaction-or-lack-there-of/m-p/38851#M20645</guid>
      <dc:creator>steel</dc:creator>
      <dc:date>2006-06-19T16:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: RMI, JCR and the Giant Transaction (or lack there of)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/rmi-jcr-and-the-giant-transaction-or-lack-there-of/m-p/38852#M20646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One year later…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;still no clue…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;has anyone succeded to integrate *any* of the alfresco remote interface in a distributed JTA transactional environment?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See also this post:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.alfresco.com/viewtopic.php?p=24026&amp;amp;sid=e3aafb26e9381a5ff0c255f8c62178d7" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/viewtopic.php?p=24026&amp;amp;sid=e3aafb26e9381a5ff0c255f8c62178d7&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For other resources…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Shall we give a boost at the JCR-RMI interface? How does it compare with roadmap from Alfresco?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just to be clear, as a partner (Sourcesense) I'm facing customers which are a bit disappointed that an EnterpriseCM system do not provide any facility for enterprise transaction integration (JTA is mandatory for a J2EE compliant server).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But, don't take me wrong, Alfresco is still the best product on the market…clean and neat ! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gab&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I get the "Alfresco Partner" little icon ? &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;))&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 15:16:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/rmi-jcr-and-the-giant-transaction-or-lack-there-of/m-p/38852#M20646</guid>
      <dc:creator>mindthegab</dc:creator>
      <dc:date>2007-07-12T15:16:40Z</dc:date>
    </item>
  </channel>
</rss>

