Initialize a SubscriptionService before sending data.
Posted: Mon Apr 02, 2012 7:49 am
Is it possible to remotely initialize a service subscriber while conneting before it get service data through the publishing service?
In RCF there is the possibility to install a setOnConnectCallback function in the publisher. The callback knows the RCF Session object. Now this object is converted via convertRcfSessionToRcfClient to get a client object back to the subscriber. With the ClientTransportAutoPtr Parameter the RCFClient object is created with the interface of the Subscriber. Now the subscriber should be initialized with certain calls to this interface.
But as soon as the convertRcfSessionToRcfClient is called, the subscriber will never be called by the publisher service. It seems that the beginSubscribe call in the subscriber has never happened. Without the convert-call everthing goes well.
Now i do not know if this is even possible. There are only code examples for convertRcfSessionToRcfClient in scenarios with classic Rcf clients and servers, not with publisher/subsriber.
I hope the question is clear enough. Otherwise i can provide an example code to illustrate the question a little bit more.
Kind regards
Falk
In RCF there is the possibility to install a setOnConnectCallback function in the publisher. The callback knows the RCF Session object. Now this object is converted via convertRcfSessionToRcfClient to get a client object back to the subscriber. With the ClientTransportAutoPtr Parameter the RCFClient object is created with the interface of the Subscriber. Now the subscriber should be initialized with certain calls to this interface.
But as soon as the convertRcfSessionToRcfClient is called, the subscriber will never be called by the publisher service. It seems that the beginSubscribe call in the subscriber has never happened. Without the convert-call everthing goes well.
Now i do not know if this is even possible. There are only code examples for convertRcfSessionToRcfClient in scenarios with classic Rcf clients and servers, not with publisher/subsriber.
I hope the question is clear enough. Otherwise i can provide an example code to illustrate the question a little bit more.
Kind regards
Falk