I had mail queue open API working in the scripting environment in ADS.
In ADS, the mail queue instance seen by the scripting environment actually
is the mail queue singleton instance embedded in the ADS. During ADS boot time,
ADS will bind this sigleton instance to the scripting environment as follows:
(1) Launch ADS
(2) --> DataStudioBase.startUI()
(3) --> ADSMailQueue.init();
(4) --> CoreMailQueue.setMailSystem(_mailSystem);
The step (4) above, will bind the mail queue singleton instance (i.e. _mailSystem) created in ADS
to the mail queue open API implementation (i.e. CoreMailQueue). This is required in order to get
mail queue open API to work in ADS.
ADServer needs to do this bind as well in order to get mail queue open API work in ADServer,
i.e. after ADServer created its mail queue singleton instance, it needs to call
CoreMailQueue.setMailSystem(ADServer_mail_queue_singleton_instance);
Can someone help and modify ADServer's code for this?
Thanks.
Per issue 4246, we are no longer to make CoreMailQueue.setMailSystem(_mailSystem) a public API.
Please replace
CoreMailQueue.setMailSystem(_mailSystem)
with
CoreMailUtil.setMailSystem(_mailSystem)
If you also use
CoreMailQueue.getMailSystem()
please change it to
CoreMailUtil.getMailSystem()
After you are done with change above, I will modify
CoreMailQueue.setMailSystem(_mailSystem)
CoreMailQueue.getMailSystem()
and declare them as package scope methods.
CoreMailUtil.setMailSystem(_mailSystem) and CoreMailUtil.getMailSystem() are available as revision 14788 of trunk/ADS.
Fung, I made requested changes... now you can continue your changes.
Fung, I made requested changes... now you can continue your changes.
Issue #4020 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
No fixed build |
No time estimate |
Per issue 4246, we are no longer to make CoreMailQueue.setMailSystem(_mailSystem) a public API.
Please replace
CoreMailQueue.setMailSystem(_mailSystem)
with
CoreMailUtil.setMailSystem(_mailSystem)
If you also use
CoreMailQueue.getMailSystem()
please change it to
CoreMailUtil.getMailSystem()
After you are done with change above, I will modify
CoreMailQueue.setMailSystem(_mailSystem)
CoreMailQueue.getMailSystem()
and declare them as package scope methods.
CoreMailUtil.setMailSystem(_mailSystem) and CoreMailUtil.getMailSystem() are available as revision 14788 of trunk/ADS.