Skip to main content

Anyone know how to implement callbacks in the Service Definer?

We are using a Kafka producer in the Service Framework, which uses asynchronous calls and a callback interface to handle events (see Callback (kafka 2.6.0 API) (apache.org)).

I have tried using Lambda expressions, but it seems those are not supported in the Service Definer.

Hi Marc,

I’ve checked with engineering, you will require the OpenJDK compiler to get this working, which is available in 10.1. In 10.0.1 with JavaAssist it will have difficulties with the signatures of methods. Are you currently on 10.1?


Thanks for the info, Dara. We are currently running 10.0.1, but are already experimenting with 10.1. I will try the OpenJDK compiler as soon as possible in 10.1.


Hi Marc,

The option to use (OpenJDK) is available as of USoft version 10.0.1i.

(See additional note USD-4183 SERVICE FRAMEWORK)

You can find the option in the menu under Tools - Compiler settings:

 

(Of course you need to change the path above to the path of the JDk of your liking.)

 

Regards,

Robert


@robert.hellinx are you using this? Just curious😃


@Gert.K Hi Gert,

Nice to hear from you! Hope all is well? Yes, we use the feature in a major project.

Regards,

Robert


Reply