Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[milo-dev] Simulating Pub-Sub

We are trying to simulate Pub-Sub concept using Library. I know we dont have corresponding Object Modelling as well as Pub-Sub support in the library yet due to unavailability of Released Spec by OPC Foundation and also these questions are out of scope of this forum and Library support as well. But any help would be appreciable.

What we are trying to achieve – Application would connect to any Message Broker like MQTT/AMPQ or ActiveMQ JMS Broker. Mock OPC server publish a Message published on the bus which needed to be parsed by the Library once consumer receives the message.

Challenge which we are facing
1) Which message can be posted on Broker which can contain some data as well ? We were thinking to utilize PublishResponse for the purpose. Chosen Object can be posted as a TextMessage, ByteMessage or ObjectMessage (looks difficult due to its nature) etc if we talk about JMS.
2) Even if we somehow post a TextMessage or probably ByteMessage form of PublishResponse by publisher. there is no straight way of constructing PublishResponse object from string or bytes back by the consumer. So which ever object we want to use should contain data and should be allowed to construct from consumed message.

Sumit


Back to the top