camunda-community-hub / camunda-platform-7-camel

Community Extension to add Apache Camel support for Camunda Platform 7
Apache License 2.0
81 stars 57 forks source link

CamelBlueprintELResolver not detected #18

Open wiax opened 9 years ago

wiax commented 9 years ago

Hi,

I try to use the Camel integration inside Camunda with Blueprint. For more information, I create a ProcessApplication with the annotation and I declare the process engine via processes.xml. And for sure, I create the specific EL resolver for Camel:

It seems that the ProcessApplicationElResolverDelegate doesn't find the ProcessApplicationReference. Context.getCurrentProcessApplication() returns null.

Any idea? Missing configuration?

I see that the ProcessApplicationReference is expected to be stored in a ThreadLocal, but for each request it's a different thread...

meyerdan commented 9 years ago

Form your question I gather that you are using an OsgiProcessApplication?

wiax commented 9 years ago

Yes I created a class extending OsgiProcessApplication.

I have the following error: "Unknown property used in expression: #{camel.sendTo('direct:syncService')}. Cause: Cannot resolve identifier 'camel'"

It's probably due to the fact that the CamelBlueprintELResolver is not detected. But I declared the CamelBlueprintELResolver bean.

I think the CamelBlueprintELResolver is exposed by the class OsgiProcessApplication.

Can you tell why I have this error ? Do I forget to configure something ? How is the CamelBlueprintELResolver detected ? And used by ? ProcessApplicationElResolverDelegate ?

rbraeunlich commented 9 years ago

Could you show us (part of) your context.xml?

Bitsfloww commented 2 weeks ago

Yes I created a class extending OsgiProcessApplication.

I have the following error: "Unknown property used in expression: #{camel.sendTo('direct:syncService')}. Cause: Cannot resolve identifier 'camel'"

It's probably due to the fact that the CamelBlueprintELResolver is not detected. But I declared the CamelBlueprintELResolver bean.

I think the CamelBlueprintELResolver is exposed by the class OsgiProcessApplication.

Can you tell why I have this error ? Do I forget to configure something ? How is the CamelBlueprintELResolver detected ? And used by ? ProcessApplicationElResolverDelegate ?

Hii jack have you find any solution