cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MEGA JAVA API - Problem with Discard and remaining process

vrault
MEGA Partner
MEGA Partner

Hello,

 

Running Junit Tests, I would like to upgrade and then do a test on a Mega Transaction, using Mega Java API.
One thing is that i don't want to dispatch the changes - I just want to check by a test.

 

Here is the logic:
1 - Create a Server Mega Application
2 - Set Interactive Mode to Batch
3 - Open Database for a particular environment (with user + password)
4 - Create Elements in a new Library
5 - Test
6 - Close Mega Root
7 - Abort Transaction
8 - Run System.gc()

 

I have two problems:
1 - The transaction is not aborted, it is dispatched, even if i do a myTransaction.abort()
2 - There is always a remaining mgwmapp.exe process

 

We've recently upgraded our Mega Hopex version to CP7 (http://community.mega.com/t5/Technical-Product/Excel-VBA-End-Macro-correctly-to-close-mgwmapp-exe/m-...

 

How can we correctly abort/discard changes using Mega Java API?
Is there a way not to have a remaining mgwmapp.exe process?

 

Thanks in advance.
Valery

2 Replies

jhorber
MEGA
MEGA

Hello

 

As Valery did not anwser, I will close the thread

Jerome

pgarnier
MEGA
MEGA

Hello,

Can you send your code please ?

Thank you.