Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Simulating Pub_Sub
July 22, 2017
15:43, EEST
Avatar
Sumit
Member
Members
Forum Posts: 9
Member Since:
July 11, 2017
sp_UserOfflineSmall Offline

We are trying to simulate Pub-Sub concept using ProSys 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 support by the ProSys Library 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 ProSys 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 but facing issues as its not Serializable. 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

July 24, 2017
13:12, EEST
Avatar
Sumit
Member
Members
Forum Posts: 9
Member Since:
July 11, 2017
sp_UserOfflineSmall Offline

I thin i have the answer. I need to encode the message like DataValue before publishing to JMS and use ByteMessage to wrap the message and than in the consumer use Decoder to get data back.

-Sumit

July 24, 2017
16:05, EEST
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1026
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Yes it sounds quite exotic, what you are trying to achieve and I don’t really know what to suggest here. It requires a very custom solution, anyway.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
16 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 730

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachus, Deakin, KTP25Zof

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0

Administrators: admin: 1