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: 1010
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: 518

Currently Online:
21 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

TimK: 41

Member Stats:

Guest Posters: 0

Members: 681

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

karrimacvitie5, graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc

Moderators: Jouni Aro: 1010, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1