Hi,

I have an old java application that loads dll (native) to connect to third
party vendor. This dll will synchronously invoke onMessageRecieved callback
method  at java side  when there is an event and converts bytes to strings.

I am trying to investigate if I can write custom Camel Component that will 
create custom endpoint which loads the dll to connect to third party vendor.
Then customConsumer  extends default camel consumer that will have
onMessageReceived callback method which will be invoked by dll. Is this the
correct way to implement custom camel component? or rather achievable? Are
there any examples on using dll  in camel route ? 

Example:-
<from uri="customComponent:[dll file to
load]?callbackMethod="onMessageRecieved"/>
<convertBodyTo type="java.lang.Byte"
<to uri="beanName:covertBytesToString"/>


Kind regards,
-Vid-
-- 
View this message in context: 
http://old.nabble.com/native%28dll%29-to-java-callback-method-in-Camel-tp28288045p28288045.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to