Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import org.camunda.bpm.engine.ProcessEngine;
import org.springframework.beans.factory.annotation.Required;

public class CamelServiceImpl extends CamelServiceCommonImpl {
public class CamelServiceBean extends CamelServiceCommonImpl {

@Required
public void setProcessEngine(ProcessEngine processEngine) {
Expand All @@ -29,4 +29,4 @@ public void setCamelContext(CamelContext camelContext) {
this.camelContext = camelContext;
}

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.camunda.bpm.camel.spring;

import org.apache.camel.CamelContext;
import org.camunda.bpm.camel.common.CamelService;
import org.camunda.bpm.camel.component.CamundaBpmComponent;
import org.camunda.bpm.camel.component.CamundaBpmConstants;
import org.camunda.bpm.engine.ProcessEngine;
import org.springframework.context.annotation.Bean;

public class CamundaCamelSpringConfiguration {

@Bean
public CamundaBpmComponent camundaBpmComponent(ProcessEngine processEngine,
CamelContext camelContext) {
CamundaBpmComponent component = new CamundaBpmComponent(processEngine);
camelContext.addComponent(CamundaBpmConstants.CAMUNDA_BPM_CAMEL_URI_SCHEME, component);

return component;
}

@Bean
public CamelService camelServiceBean(ProcessEngine processEngine, CamelContext camelContext) {
CamelServiceBean service = new CamelServiceBean();
service.setCamelContext(camelContext);
service.setProcessEngine(processEngine);

return service;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<bean id="log" class="org.camunda.bpm.camel.spring.util.LogServiceImpl"/>

<bean id="camel" class="org.camunda.bpm.camel.spring.CamelServiceImpl">
<bean id="camel" class="org.camunda.bpm.camel.spring.CamelServiceBean">
<property name="processEngine" ref="processEngine"/>
<property name="camelContext" ref="camelContext"/>
</bean>
Expand Down