<?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: Packing and booting activiti-cdi in an EAR in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/packing-and-booting-activiti-cdi-in-an-ear/m-p/103237#M71951</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi actNewbie,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;did you find any solution to using CDI from timer events that you would like to share? I just ran into the same situation but have no clue yet as to what might be a possible solution (never worked on JCA before). For some reasons I do not want to switch to fox platform but would prefer to stick to a pure JBoss AS 7.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2012 08:13:22 GMT</pubDate>
    <dc:creator>naag</dc:creator>
    <dc:date>2012-07-18T08:13:22Z</dc:date>
    <item>
      <title>Packing and booting activiti-cdi in an EAR</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/packing-and-booting-activiti-cdi-in-an-ear/m-p/103234#M71948</link>
      <description>Hello!i try to get activiti-cdi in an ear (a war, some ejbs, a pu jar and some libs) up and running and i seem to struggle with it.What i tried first was to define dependencies in my wars pom and all activiti-cdi dependencies was therefore placed in the wars lib folder. The issue there was that it d</description>
      <pubDate>Mon, 25 Jun 2012 22:51:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/packing-and-booting-activiti-cdi-in-an-ear/m-p/103234#M71948</guid>
      <dc:creator>actnewbie</dc:creator>
      <dc:date>2012-06-25T22:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: Packing and booting activiti-cdi in an EAR</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/packing-and-booting-activiti-cdi-in-an-ear/m-p/103235#M71949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi actNewbie,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for your detailed report on your experience with EAR deployment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think your suggestion of providing the engine "manually" by using a setter on the ActivitiServices Bean is valid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wanted to factor out the bootstrapping of the process engine for some time now, this seams like a valid usecase.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would you be willing to open a Jira?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;And, additionally, how about timer events? In what context are they fired? Is cdi usable there as well? If i imagine that the job executor of Activiti is run by a ThreadPool, i think cdi can not be available when a Activiti job is executed there. Till now i was only play with the basic samples where none of the JEE features mixed up things.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Correct. If you use activiti cdi in an EE environment, the job executor will use a Java SE ThreadPool and threads will not be "EE threads", in the sense that they will not be decorated with the necessary context. Some consequences of this is that you cannot use @RequestScoped beans, since the thread has no concept of "Request". You might also not be able to use injection of EE-Resources like a PersistenceContext, EJBs…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW: The clean way of integrating the Job Executor with EE is to weite a JCA Connector and delegate to @MessageDriven Beans. We do this in camunda fox. We also offer consulting about how to use JSF with activiti and CDI.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2012 07:20:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/packing-and-booting-activiti-cdi-in-an-ear/m-p/103235#M71949</guid>
      <dc:creator>meyerd</dc:creator>
      <dc:date>2012-06-29T07:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Packing and booting activiti-cdi in an EAR</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/packing-and-booting-activiti-cdi-in-an-ear/m-p/103236#M71950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Daniel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for your reply. As you suggested i created an issue in Jira, although i was not sure what to write there &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;SPAN&gt;But i think with the reference to this thread you will remember what you meant with factore out the bootstrapping&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;of Activiti. &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-1275" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-1275&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And regarding the job executor, in fact all things which are done by a timer boundary event: Yes, from my experience&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;none of the nice and shiny features of JEE6 are usable there, which leads to a rather poor usability of timer events in &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a JEE context, and the process design and especially the implementation needs to be fully aware of it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If i understood correct what you meant with the JCA Connector and message driven beans: i can not use service tasks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;which i implemented to be used in activiti:expressions which rely on Activitis CDI integration when such tasks are &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;triggered by a timer event? Instead i need to implement message driven beans and from that i can delegate to the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"CDI enabled" service tasks again?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fortunately i have no problems using Activiti with CDI and JSF once the engine is up and running, the problems starts&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when i start to user timer events. I thought EJB timers might be a possibility when starting processes, but they are &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;not very comfortable then using timer boundary events…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 20:43:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/packing-and-booting-activiti-cdi-in-an-ear/m-p/103236#M71950</guid>
      <dc:creator>actnewbie</dc:creator>
      <dc:date>2012-07-02T20:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Packing and booting activiti-cdi in an EAR</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/packing-and-booting-activiti-cdi-in-an-ear/m-p/103237#M71951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi actNewbie,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;did you find any solution to using CDI from timer events that you would like to share? I just ran into the same situation but have no clue yet as to what might be a possible solution (never worked on JCA before). For some reasons I do not want to switch to fox platform but would prefer to stick to a pure JBoss AS 7.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 08:13:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/packing-and-booting-activiti-cdi-in-an-ear/m-p/103237#M71951</guid>
      <dc:creator>naag</dc:creator>
      <dc:date>2012-07-18T08:13:22Z</dc:date>
    </item>
  </channel>
</rss>

