06-11-2014 05:00 PM
Using Mega API in java, I would like to create a new Application.
In a simple java class we have created an instance of MegaApplication, opened database and created a new application but,
after having dispatched:
oMegaRoot.close(); oMegaTransaction.dispatch(); System.gc();
no command seems to be analyzed.
This was extracted from MegaCrd.txt, case (a) running the script, case (b) the same operations via Mega.exe.
What is wrong?
--------------------------------------------------------------
a)
#[(11/06/2014 14:19:37) \\usnasmeg210\usdbmega$\MEGA\Env (Dispatch transaction) AndreaG
Dispatch transaction of the AndreaG user opened on the SystemDb repository
Dispatch transaction of the AndreaG user opened on the Development repository
#](11/06/2014 14:20:06) [00h 00m 29s] ERRORLEVEL(00)
--------------------------------------------------------------
b)
#[(11/06/2014 15:04:34) \\usnasmeg210\usdbmega$\MEGA\Env (Dispatch transaction) AndreaG
Dispatch transaction of the AndreaG user opened on the SystemDb repository
Dispatch transaction of the AndreaG user opened on the Development repository
6 Analyzed commands
6 Accepted commands
2 Create
2 Modify commands
1 Delete
1 Connect
#](11/06/2014 15:05:09) [00h 00m 35s] ERRORLEVEL(00)
--------------------------------------------------------------
Solved! Go to Solution.
12-11-2014 11:51 AM
Hi Andrea,
before the MegaRoot.close() you should also make a megaCommit:
oRoot.megaCommit();
It work like the Save button in the interface.