Author Topic: Automated backup from a database source  (Read 18586 times)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Automated backup from a database source
« Reply #15 on: April 01, 2016, 01:42:32 am »
It's not available (feature request?). But you can mimic a project transfer yourself by copying database structures or files (.eap).

q.

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Automated backup from a database source
« Reply #16 on: April 01, 2016, 09:39:48 am »
We tried to use the API provided by Sparx, but the "ProjectTransfer()" method is the only method that is not accessible from the outside, it seems private. We are thinking about re-compiling Sparx' dll....
Anyone ever used the ProjectTransfer() method with Java ?

Please confirm that you have EA 12 or higher installed.  The Java API was updated in EA 12 to add several methods and attributes that had previously been missing, including ProjectTransfer().  If possible, please update to the latest build of EA, then make sure to use the latest eaapi.jar and SSJavaCOM.dll files from that version.

AnikCadieux

  • EA Novice
  • *
  • Posts: 9
  • Karma: +2/-0
  • Be what you wanna be
    • View Profile
Re: Automated backup from a database source
« Reply #17 on: April 02, 2016, 12:57:24 am »
We tried to use the API provided by Sparx, but the "ProjectTransfer()" method is the only method that is not accessible from the outside, it seems private. We are thinking about re-compiling Sparx' dll....
Anyone ever used the ProjectTransfer() method with Java ?

Please confirm that you have EA 12 or higher installed.  The Java API was updated in EA 12 to add several methods and attributes that had previously been missing, including ProjectTransfer().  If possible, please update to the latest build of EA, then make sure to use the latest eaapi.jar and SSJavaCOM.dll files from that version.

Hi Aaron,
You were right, the version of the Java API was incomplete in version 9. We got the same answer for Sparx support.

But they wrote us that in the scripting interface, the ProjectTransfer function was fine in version 9 !
We ran the script using EA 12 and got no errors !!  ;D
So our problem is now solved.

What a waste of time !  :-\

smendonc

  • EA User
  • **
  • Posts: 148
  • Karma: +5/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Automated backup from a database source
« Reply #18 on: April 02, 2016, 04:07:08 am »
qwerty pointed how to do this in his post.  I just posted a short powershell script that will do exactly this and can be run from the scheduler.

http://sparxsystems.com/forums/smf/index.php/topic,2708.0.html