<?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: Camel configuration programatically in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/camel-configuration-programatically/m-p/152598#M107234</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use setDefaultCamelContext but now my problem is another. I get a NullPointerException when I try to start a process from camel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Caused by: java.lang.NullPointerException&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.camel.ActivitiProducer.startProcess(ActivitiProducer.java:93)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.camel.ActivitiProducer.process(ActivitiProducer.java:45)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can see that this is because runtimeService is null. I have the runtimeService bean in my&amp;nbsp; activiti.cfg.xml and I have tried to put it in the register of my camelContext in this way&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;myOwnCamelContext.setRegistry(new ApplicationContextRegistry(new org.springframework.context.support.ClassPathXmlApplicationContext("activiti/test/activiti.cfg.xml")));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But it does not work and runtimeService continue being null.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Aug 2013 11:13:04 GMT</pubDate>
    <dc:creator>rodiaz</dc:creator>
    <dc:date>2013-08-23T11:13:04Z</dc:date>
    <item>
      <title>Camel configuration programatically</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/camel-configuration-programatically/m-p/152596#M107232</link>
      <description>Hello there,I work with Activiti embedded in my own application, which already has a CamelContext. Could Activiti be configured programmatically for to use the context that I already have in my application? I can not use that engine has its own context because I need to integrate more things. Nor do</description>
      <pubDate>Thu, 22 Aug 2013 10:46:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/camel-configuration-programatically/m-p/152596#M107232</guid>
      <dc:creator>rodiaz</dc:creator>
      <dc:date>2013-08-22T10:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Camel configuration programatically</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/camel-configuration-programatically/m-p/152597#M107233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes in the ProcessEngineConfiguration you can use the setDefaultCamelContext method to do that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 13:08:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/camel-configuration-programatically/m-p/152597#M107233</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-08-22T13:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Camel configuration programatically</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/camel-configuration-programatically/m-p/152598#M107234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use setDefaultCamelContext but now my problem is another. I get a NullPointerException when I try to start a process from camel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Caused by: java.lang.NullPointerException&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.camel.ActivitiProducer.startProcess(ActivitiProducer.java:93)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.activiti.camel.ActivitiProducer.process(ActivitiProducer.java:45)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can see that this is because runtimeService is null. I have the runtimeService bean in my&amp;nbsp; activiti.cfg.xml and I have tried to put it in the register of my camelContext in this way&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;myOwnCamelContext.setRegistry(new ApplicationContextRegistry(new org.springframework.context.support.ClassPathXmlApplicationContext("activiti/test/activiti.cfg.xml")));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But it does not work and runtimeService continue being null.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 11:13:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/camel-configuration-programatically/m-p/152598#M107234</guid>
      <dc:creator>rodiaz</dc:creator>
      <dc:date>2013-08-23T11:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Camel configuration programatically</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/camel-configuration-programatically/m-p/152599#M107235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Camel Component uses spring context. You should initialize it using spring. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 13:12:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/camel-configuration-programatically/m-p/152599#M107235</guid>
      <dc:creator>smirzai</dc:creator>
      <dc:date>2014-10-21T13:12:08Z</dc:date>
    </item>
  </channel>
</rss>

