<?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: Cyclic bean dependency in SpringProcessEngineConfiguration in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cyclic-bean-dependency-in-springprocessengineconfiguration/m-p/123282#M86816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;bean id="endExecutionListener" class="EndExecutionListener"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;constructor-arg name="processEndListener" ref="processEndListener"/&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&lt;BR /&gt; &amp;lt;bean id="processEndListener" class="ProcessEndListenerImpl"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;constructor-arg name="historyService" ref="historyService"/&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&lt;BR /&gt; &amp;lt;bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;property name="processEngineConfiguration" ref="processEngineConfiguration"/&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Seems like you indeed have a cyclic dependency… The process-engine configuration is needed by your listeners (historyService), which in turn depends on the listeners. You can either use the ProcessEngines.getDefault() in your listeners instead of injecting the historyService. OR make the listener an InitilizingBean (or applicationContextAware not sure about the name) and extract the historyService from the app-context. OR find out another way to prevent the cyclic dependency &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Apr 2013 08:15:38 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2013-04-03T08:15:38Z</dc:date>
    <item>
      <title>Cyclic bean dependency in SpringProcessEngineConfiguration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cyclic-bean-dependency-in-springprocessengineconfiguration/m-p/123281#M86815</link>
      <description>Hi,The case in topic causes exception.Pre:A-&amp;gt;B means A depends on BNow the case is like this&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rocessEngine-&amp;gt;processEngineConfiguration-&amp;gt;ProcessParseHandler-&amp;gt;endExecutionListener-&amp;gt;processEndListener-&amp;gt;historyService-&amp;gt;processEngineI'm trying to implement parse listener and via pars</description>
      <pubDate>Mon, 01 Apr 2013 22:26:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cyclic-bean-dependency-in-springprocessengineconfiguration/m-p/123281#M86815</guid>
      <dc:creator>gokceng1</dc:creator>
      <dc:date>2013-04-01T22:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Cyclic bean dependency in SpringProcessEngineConfiguration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cyclic-bean-dependency-in-springprocessengineconfiguration/m-p/123282#M86816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;bean id="endExecutionListener" class="EndExecutionListener"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;constructor-arg name="processEndListener" ref="processEndListener"/&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&lt;BR /&gt; &amp;lt;bean id="processEndListener" class="ProcessEndListenerImpl"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;constructor-arg name="historyService" ref="historyService"/&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&lt;BR /&gt; &amp;lt;bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;property name="processEngineConfiguration" ref="processEngineConfiguration"/&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Seems like you indeed have a cyclic dependency… The process-engine configuration is needed by your listeners (historyService), which in turn depends on the listeners. You can either use the ProcessEngines.getDefault() in your listeners instead of injecting the historyService. OR make the listener an InitilizingBean (or applicationContextAware not sure about the name) and extract the historyService from the app-context. OR find out another way to prevent the cyclic dependency &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 08:15:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cyclic-bean-dependency-in-springprocessengineconfiguration/m-p/123282#M86816</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-04-03T08:15:38Z</dc:date>
    </item>
  </channel>
</rss>

