--
You received this message because you are subscribed to the Google Groups "AribaWeb (aribaweb.org)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aribaweb+u...@googlegroups.com.
To post to this group, send email to arib...@googlegroups.com.
Visit this group at https://groups.google.com/group/aribaweb.
For more options, visit https://groups.google.com/d/optout.
My code is like this,
In init() of the component,
super.init();
AWPage page = page();
Register page.getChangeNotifier() to aThread object
page.setPollInitiated(true);
page.setPollInterval(5);
....
In an action method,
aThread do real job and when the job finished, call notifyChange() of registered change notifier,
In overridden notifyChange() of the component,
Show banner message to notify the job completed.
Of course I checked examples in AW and have ever used this function several times in my AW experience since it's first release.
The instance runs on Ubuntu 14 in Amazon EC2.
I override initAdaptorUrl() of application class to set right URL for the instance.
Thanks,
Kazuo
function poll()
{
// FIXME -- should check interval since last request against interval
Debug.log("AWRequestInProgress: " + AWRequestInProgress + ", AWPollEnabled=" + AWPollEnabled);
if (!AWRequestInProgress && AWPollEnabled) {
if (this.AWPollCallback) {
this.AWPollCallback(this.AWPollState);
}
var url = this.formatInPageRequestUrl(AWPollSenderId);
// wrap the awLoadLazyDivCallback in an anonymous function so we can
// pass the additional divObject to it
this.initiateXMLHttpRequest(url, callback.bind(this));
} else {
// somebody else might have been using the XML http request too,
// so just in case we have multiple timers going, we clear the one we are
// aware of and then reset it to null so our timer starts the poll again
clearTimeout(AWPollTimeoutId);
AWPollTimeoutId = null;
timer();
}
}
And above poll()call, what the URL you have there and wheather its reachable.
2. Then if you think the server is reachable, then another Breakpoint to put could be into the
AWComponentActionRequestHandler.handleRequest()which is the place where everything starts on the AW layers and continues deep into individual components.-FK