On 2024/8/2 18:22, 陈坤家 wrote:
Dear Celix Community,


I am currently working on a project using Apache Celix, and I am encountering 
some difficulties related to implementing the Service-on-Demand (SOD) pattern 
in C++. I am looking for an example of how to implement a consumer bundle 
(PLC1/PLC2) that interacts with a service bundle (Pou) using C++. Specifically, 
I need:

C++ implementation example with SOD similar to the whiteboard pattern example 
provided in link2

(Can you tell me how to make changes based on the example I provided)

If you can not figure out how to do it after reading source code of log admin, then this pattern is not suitable for you.

You may consider C per-bundle service factory instead, check TEST_F(CxxBundleContextTestSuite, CheckStandardServiceProperties).

If you insists that C service is not acceptable, then it is quite unfortunate that C++ service factory is unimplemented yet. I am not sure when it will be implemented, since I am mostly a user the C interface.

Note that it will always be welcome to send us a patch implementing this feature.

Regards,
--
Peng Zheng

Reply via email to