Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - hirbli

Pages: [1]
1
Thanks for your answers.

@querty:
as you say: nothing is being logged to %appdata% when I open an EAP in EA manually, so nothing to be learned here.
 
@Aaron:
Are you suggesting that it would make a difference if I set up the licensing from within the service or from the interactive user? How so?
And yes, I am using floating licenses.  Any reason they would not work?


Michael

2
Automation Interface, Add-Ins and Tools / Running EA from Jenkins service
« on: January 10, 2015, 03:17:08 am »
I have a .NET program that uses the EA API to export to HTML:

    var r = new Repository();
    r.OpenFile(eapPath);
    ...

Interactively this works fine
However I want to run this from a Jenkins job.
Our Jenkins runs as a service (on Windows 7) under a regular user account.

The behavior is as follows:
- The .NET program hangs in the OpenFile call.
- An ea.exe is started (with -Embedding) in the session 0 with the same user account.
- The ea.exe takes 134MB memory whereas an interactively started ea.exe -Embedding only takes 104MB.
- It does not make a visible difference, whether I provide a valid or invalid file name to the OpenFile call.

I have found many mentions of similar problems with services.
The most complete instructions were at: http://community.sparxsystems.com/tutorials/556-28running-enterprise-architect-on-a-server
I have followed the instructions as good as possible but it did not make any difference.

Also I found mention of the registry being different in session 0.  However i have verified that Jenkins sees the license entries in the registry.

I have also enabled the "Interactive Services Display" service, to make sure there are no Dialogs.

How do I resolve this problem?
Does EA create any logs, so I can determine if it even sees any COM calls?

Regards,
  Michael Bosch

Pages: [1]