<?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: Talk directly with Alfresco database in Java Backed Webscript in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/talk-directly-with-alfresco-database-in-java-backed-webscript/m-p/281793#M234923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Interesting… I didn't know that addon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for sharing it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Back to your question, I think what you need is to inject the factory bean using spring configuration, just like the addon does here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/slemarchand/social-tops/blob/master/social-tops-repo/config/alfresco/module/social_tops/webscript-context.xml" rel="nofollow noopener noreferrer"&gt;https://github.com/slemarchand/social-tops/blob/master/social-tops-repo/config/alfresco/module/social_tops/webscript-context.xml&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your webscript bean, create a property and inject the factory using a tag like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/slemarchand/social-tops/blob/master/social-tops-repo/config/alfresco/module/social_tops/webscript-context.xml#L7" rel="nofollow noopener noreferrer"&gt;https://github.com/slemarchand/social-tops/blob/master/social-tops-repo/config/alfresco/module/social_tops/webscript-context.xml#L7&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the Java code, you have to create a set method just like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/slemarchand/social-tops/blob/master/social-tops-repo/source/java/social_tops/webscript/DefinitionsGet.java#L21-L23" rel="nofollow noopener noreferrer"&gt;https://github.com/slemarchand/social-tops/blob/master/social-tops-repo/source/java/social_tops/webscript/DefinitionsGet.java#L21-L23&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Feb 2016 16:39:25 GMT</pubDate>
    <dc:creator>douglascrp</dc:creator>
    <dc:date>2016-02-01T16:39:25Z</dc:date>
    <item>
      <title>Talk directly with Alfresco database in Java Backed Webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/talk-directly-with-alfresco-database-in-java-backed-webscript/m-p/281788#M234918</link>
      <description>Hi,I would like to do custom queries against Alfresco database without using the services provided by Alfresco API. I need to fetch some metadata from Alfresco tasks. What would be the best way to implement this? I found this blog post http://www.jorambarrez.be/blog/2014/01/17/execute-custom-sql-in-</description>
      <pubDate>Tue, 26 Jan 2016 10:39:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/talk-directly-with-alfresco-database-in-java-backed-webscript/m-p/281788#M234918</guid>
      <dc:creator>sihnu</dc:creator>
      <dc:date>2016-01-26T10:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Talk directly with Alfresco database in Java Backed Webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/talk-directly-with-alfresco-database-in-java-backed-webscript/m-p/281789#M234919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just want to understand, Is there any specific reason you do not want to use Alfresco APIs and want to directly hit the database?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 05:27:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/talk-directly-with-alfresco-database-in-java-backed-webscript/m-p/281789#M234919</guid>
      <dc:creator>romschn</dc:creator>
      <dc:date>2016-01-27T05:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Talk directly with Alfresco database in Java Backed Webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/talk-directly-with-alfresco-database-in-java-backed-webscript/m-p/281790#M234920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply. Really appreciate it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, we want to implement a specified and optimized query to fetch relatively large amount of data from multiple tables. Fetching the data using services is slow and probably gets slower as the time goes on because the amount of data just gets bigger.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 10:52:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/talk-directly-with-alfresco-database-in-java-backed-webscript/m-p/281790#M234920</guid>
      <dc:creator>sihnu</dc:creator>
      <dc:date>2016-01-27T10:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Talk directly with Alfresco database in Java Backed Webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/talk-directly-with-alfresco-database-in-java-backed-webscript/m-p/281791#M234921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is your use case?If it is common case, we can raise enhancement request with alfresco to implement in the next release. So everyone will get befitted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In general, it is not good to access alfresco database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 16:32:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/talk-directly-with-alfresco-database-in-java-backed-webscript/m-p/281791#M234921</guid>
      <dc:creator>muralidharand</dc:creator>
      <dc:date>2016-01-27T16:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Talk directly with Alfresco database in Java Backed Webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/talk-directly-with-alfresco-database-in-java-backed-webscript/m-p/281792#M234922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No, it's not a common use case. It's query for Workflow tasks and very special case. I found this example but I'm having some difficulties to test it out. &lt;/SPAN&gt;&lt;A href="http://www.slideshare.net/slemarchand/using-mybatis-in-alfresco-custom-extensions-alfresco-devcon-2012-berlin" rel="nofollow noopener noreferrer"&gt;http://www.slideshare.net/slemarchand/using-mybatis-in-alfresco-custom-extensions-alfresco-devcon-2012-berlin&lt;/A&gt;&lt;SPAN&gt;. I have implemented the Query now and I'm trying to build a java backed webscript to test the query. I need to provide the sql session factory for Dao Implementation. How do I get the factory? The factory is defined in Spring configuration, I think… I just don't know how to fetch the factory.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 12:59:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/talk-directly-with-alfresco-database-in-java-backed-webscript/m-p/281792#M234922</guid>
      <dc:creator>sihnu</dc:creator>
      <dc:date>2016-02-01T12:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Talk directly with Alfresco database in Java Backed Webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/talk-directly-with-alfresco-database-in-java-backed-webscript/m-p/281793#M234923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Interesting… I didn't know that addon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for sharing it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Back to your question, I think what you need is to inject the factory bean using spring configuration, just like the addon does here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/slemarchand/social-tops/blob/master/social-tops-repo/config/alfresco/module/social_tops/webscript-context.xml" rel="nofollow noopener noreferrer"&gt;https://github.com/slemarchand/social-tops/blob/master/social-tops-repo/config/alfresco/module/social_tops/webscript-context.xml&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your webscript bean, create a property and inject the factory using a tag like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/slemarchand/social-tops/blob/master/social-tops-repo/config/alfresco/module/social_tops/webscript-context.xml#L7" rel="nofollow noopener noreferrer"&gt;https://github.com/slemarchand/social-tops/blob/master/social-tops-repo/config/alfresco/module/social_tops/webscript-context.xml#L7&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the Java code, you have to create a set method just like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/slemarchand/social-tops/blob/master/social-tops-repo/source/java/social_tops/webscript/DefinitionsGet.java#L21-L23" rel="nofollow noopener noreferrer"&gt;https://github.com/slemarchand/social-tops/blob/master/social-tops-repo/source/java/social_tops/webscript/DefinitionsGet.java#L21-L23&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 16:39:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/talk-directly-with-alfresco-database-in-java-backed-webscript/m-p/281793#M234923</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2016-02-01T16:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Talk directly with Alfresco database in Java Backed Webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/talk-directly-with-alfresco-database-in-java-backed-webscript/m-p/281794#M234924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Finally got it working! Just had to familiarize myself a lil bit with the stuff going on there. Following the slides I was finally able to solve it. Thanks to douglascrp for trying to help me! &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>Fri, 05 Feb 2016 12:07:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/talk-directly-with-alfresco-database-in-java-backed-webscript/m-p/281794#M234924</guid>
      <dc:creator>sihnu</dc:creator>
      <dc:date>2016-02-05T12:07:26Z</dc:date>
    </item>
  </channel>
</rss>

