Thanks again Sinthuja for clearing things up. If I may ask furthermore, what is the reason behind having a timeout during an active transmission? I can't understand the specified amount of time to timeout, that does so even when data are being transmitted.
Regards, Chamila de Alwis Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com On Mon, Oct 27, 2014 at 12:33 AM, Sinthuja Ragendran <[email protected]> wrote: > > > On Sun, Oct 26, 2014 at 2:41 AM, Chamila De Alwis <[email protected]> > wrote: > >> Hi Sinthuja, >> >> Thanks for the explanation! I was going through the data publisher code, >> but I couldn't find the exact place the reconnection is happening. Do you >> know which method handles it? >> > > You can find this logic in [1] at publishEvent() method. > > [1] > https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/data-bridge/org.wso2.carbon.databridge.agent.thrift/4.2.4/src/main/java/org/wso2/carbon/databridge/agent/thrift/internal/publisher/client/EventPublisher.java > > Thanks, > Sinthuja. > >> >> >> Regards, >> Chamila de Alwis >> Software Engineer | WSO2 | +94772207163 >> Blog: code.chamiladealwis.com >> >> >> >> On Sun, Oct 26, 2014 at 6:59 AM, Sinthuja Ragendran <[email protected]> >> wrote: >> >>> Hi, >>> >>> On Sat, Oct 25, 2014 at 6:45 PM, Chamila De Alwis <[email protected]> >>> wrote: >>> >>>> Hi, >>>> >>>> As I understand a Thrift session established through the data bridge >>>> will expire after the clientTimeoutMS value specified in the >>>> repository/conf/data-bridge/data-bridge-config.xml >>>> (default 30mins), whether or not the events are being published. >>>> >>>> What is the data bridge's behaviour upon the >>>> ThriftSessionExpiredException? Does it automatically reconnect and continue >>>> publishing the events? Or is this exception propagated to the client who is >>>> using the data publisher to be handled? >>>> >>> >>> It's handled within data publisher it self, reconnects to the receiver >>> and continues to publish without any interruption. Also the client who >>> ever using the datapublisher doesn't need to be aware and handle for this >>> case. >>> >>> Thanks, >>> Sinthuja. >>> >>>> >>>> If the data publisher it self does the reconnection, what criteria >>>> should be completed when doing so? >>>> >>>> Regards, >>>> Chamila de Alwis >>>> Software Engineer | WSO2 | +94772207163 >>>> Blog: code.chamiladealwis.com >>>> >>>> >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> *Sinthuja Rajendran* >>> Senior Software Engineer <http://wso2.com/> >>> WSO2, Inc.:http://wso2.com >>> >>> Blog: http://sinthu-rajan.blogspot.com/ >>> Mobile: +94774273955 >>> >>> >>> >> > > > -- > *Sinthuja Rajendran* > Senior Software Engineer <http://wso2.com/> > WSO2, Inc.:http://wso2.com > > Blog: http://sinthu-rajan.blogspot.com/ > Mobile: +94774273955 > > >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
