<?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: Error while execute EJB method from ExecutionListener in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/error-while-execute-ejb-method-from-executionlistener/m-p/152492#M107134</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you use the activiti:class="…", there will be an instance of that class created by activiti, using class.forName() somewhere deep down in the engine. Since activiti is NOT aware of your EJB-context, all the annotations you have, related to EJB are NOT picked up by the EJB-container. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The EJB-container can't do magic, neither can activiti. The way you should do this is to use the "beans" property on the process engine configuration. Before the engine is build, you should add a reference to a valid EJB-bean (your com.test.tools.EmailTimerHandler) fetched from the EJB-container eg. using the key 'emailHandler'. In the BPMN, instead of using a activiti:class, use activiti:delegateExpression="${emailHandler}". At runtime, the expression will be resolved and the instance that was put into the "beans" map will be used, which is an instance that is aware of the EJB-context.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Feb 2014 09:08:30 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2014-02-10T09:08:30Z</dc:date>
    <item>
      <title>Error while execute EJB method from ExecutionListener</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-while-execute-ejb-method-from-executionlistener/m-p/152491#M107133</link>
      <description>HI All,Im getting below error while trying to execute EJB method inside my ExecutionListener class. the class is invoked by sequenceFlow. please see below code. My BPMN process&amp;lt;sequenceFlow id="flow27" sourceRef="emailsTimer" targetRef="END"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;extensionElements&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;ac</description>
      <pubDate>Sun, 09 Feb 2014 17:24:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-while-execute-ejb-method-from-executionlistener/m-p/152491#M107133</guid>
      <dc:creator>shanakamm</dc:creator>
      <dc:date>2014-02-09T17:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error while execute EJB method from ExecutionListener</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-while-execute-ejb-method-from-executionlistener/m-p/152492#M107134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you use the activiti:class="…", there will be an instance of that class created by activiti, using class.forName() somewhere deep down in the engine. Since activiti is NOT aware of your EJB-context, all the annotations you have, related to EJB are NOT picked up by the EJB-container. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The EJB-container can't do magic, neither can activiti. The way you should do this is to use the "beans" property on the process engine configuration. Before the engine is build, you should add a reference to a valid EJB-bean (your com.test.tools.EmailTimerHandler) fetched from the EJB-container eg. using the key 'emailHandler'. In the BPMN, instead of using a activiti:class, use activiti:delegateExpression="${emailHandler}". At runtime, the expression will be resolved and the instance that was put into the "beans" map will be used, which is an instance that is aware of the EJB-context.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 09:08:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-while-execute-ejb-method-from-executionlistener/m-p/152492#M107134</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-02-10T09:08:30Z</dc:date>
    </item>
  </channel>
</rss>

