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
Transfer subscription
January 21, 2015
13:41, EET
Avatar
Xavier
Member
Members
Forum Posts: 43
Member Since:
March 26, 2014
sp_UserOfflineSmall Offline

Hello,

I had a question about subscription transfer in the client some times ago (http://forum.prosysopc.com/for…..e-trigger/) and I started to try it now.

In my test i have a master client A with a subscription and a client B waiting.
The method to transfer the subscription from client A to client B works (but A continues to receive the notifications, I don’t know if it is the expected behavior but it’s not a big deal).

But what I would like to do it the other way with client B requesting the transfer of the subscription because client A was disconnected. But the client B cannot get by itself the subscription object of another client from the Server. Is there a way to do this ?

And my real world need is even more complicated because A and B would be on different processes or computer accross the network. Maybe the transfer function is not intended to be used for a redundancy support like I’m trying to do but I do not see another way to be able to have a client that “resumes” a subscription when another client dies. Especially as I would like to really resume the subscription without losing data or receiving data that the master client had already received before dying.

Thank you,

January 21, 2015
15:37, EET
Avatar
Xavier
Member
Members
Forum Posts: 43
Member Since:
March 26, 2014
sp_UserOfflineSmall Offline

It seems there is a “TransferSubscriptions” service (TransferSubscriptionsRequest) that could maybe do the trick but I don’t think I can access it directly from the UaClient.

January 22, 2015
11:48, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 1010
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Yes, this a bit complicated. In practice the client should be able to communicate the SubscriptionId of the transferred Subscription. Also the monitored items of the subscription should be communicated, so that the respective objects can be recreated in the new client application.

At the moment, the SDK does not support this properly, since you cannot determine the SubscriptionId, nor the handles of the monitored items yourself in the new client.

If you contact our support by email, we can work on this together to improve the SDK in regard to this scenario.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
12 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

fred: 41

Member Stats:

Guest Posters: 0

Members: 683

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

digitechroshni, LouieWreve, Kickbiche, karrimacvitie5, graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma

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