<?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: Write a Java class with main inside my.amp (repo amp only) - and execute that driver class in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/write-a-java-class-with-main-inside-my-amp-repo-amp-only-and/m-p/105940#M29949</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yuo can use scheduler to execute your logic.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/6.1/references/dev-extension-points-scheduled-jobs.html" target="_self" rel="nofollow noopener noreferrer"&gt;Scheduler&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 09 May 2020 03:58:48 GMT</pubDate>
    <dc:creator>sp2</dc:creator>
    <dc:date>2020-05-09T03:58:48Z</dc:date>
    <item>
      <title>Write a Java class with main inside my.amp (repo amp only) - and execute that driver class</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/write-a-java-class-with-main-inside-my-amp-repo-amp-only-and/m-p/105939#M29948</link>
      <description>&lt;P&gt;Inside the amp file (my.amp), I have a Java class (Hello.java) .&lt;/P&gt;&lt;P&gt;In this Hello.java (which is a driver class), I have code as:&lt;/P&gt;&lt;P&gt;public static void main(String[] args){&lt;/P&gt;&lt;P&gt;// some code&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;After deploy, the code of this Hello.java will get compiled into the jar file, that is found under&amp;nbsp;D:\Alfresco\tomcat\webapps\alfresco\WEB-INF\lib&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is, how can I run/execute the Hello.java, after deploy?&lt;/P&gt;&lt;P&gt;In other words, the deployed amp file has a jar file with a driver code, and how to execute it?&lt;/P&gt;&lt;P&gt;Perhaps I could write the client code (Hello.java) outside of amp and deploy it in another machine. However, it would be ideal if I could deploy it within the amp. I do not plan to use any Share UI, or any other Alfresco component to execute this Hello.java driver class. but run it using either command line prompt, or run this on a schedule.&lt;/P&gt;</description>
      <pubDate>Sat, 09 May 2020 01:38:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/write-a-java-class-with-main-inside-my-amp-repo-amp-only-and/m-p/105939#M29948</guid>
      <dc:creator>SG</dc:creator>
      <dc:date>2020-05-09T01:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Write a Java class with main inside my.amp (repo amp only) - and execute that driver class</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/write-a-java-class-with-main-inside-my-amp-repo-amp-only-and/m-p/105940#M29949</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yuo can use scheduler to execute your logic.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/6.1/references/dev-extension-points-scheduled-jobs.html" target="_self" rel="nofollow noopener noreferrer"&gt;Scheduler&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 May 2020 03:58:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/write-a-java-class-with-main-inside-my-amp-repo-amp-only-and/m-p/105940#M29949</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2020-05-09T03:58:48Z</dc:date>
    </item>
  </channel>
</rss>

