bibryam / ofbiz-camel

Apache Ofbiz and Apache Camel integration
MIT License
25 stars 12 forks source link

Dispatcher parameter in ofbiz:// endpoint #2

Open nobwyn opened 8 years ago

nobwyn commented 8 years ago

Hi,

Could you explain the meaning/purpose of the "dispatcher" parameter in the "ofbiz" endpoint while sending a camel message to an OFBiz service, e.g.: "ofbiz://createNote?dispatcher=#dispatcher".

For me it looks like it would be always the same doesn't matter which OFBiz service is being specified. Why it is needed there and can it differ in some other case?

Thanks! laimoncijus

bibryam commented 8 years ago

Hi laimoncijus,

yes dispatcher is always the same. You don't have to do anythign with it. OFBiz dispatcher will be available in Camel context and dispatcher=#dispatcher" is just the way to refernce it from an endpoint. The component can be improved and make dispatcher=#dispatcher" optional, but for now it has to stay there as it is. HTH