Author Topic: Fails to initiate EA when trying to access it from window service  (Read 4009 times)

monicashishodia

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
HI All

I have developed a window service which is trying to initiate EA instance and execute certain actions using this instance. But I am not able to initiate this instance. Since it's an exe and windows service run in isolated mode and does not have access to initialize exe, so i have done changes in Window service code, making it calling exes (i have tried with few basics such as cmd.exe, notepad.exe).The service is able to call these exe but still not able to start EA. The instance never initializes.

What is it that i am doing wrong?

Any help is highly appreciated.

Regards,
Monica

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Fails to initiate EA when trying to access it from window service
« Reply #1 on: March 21, 2017, 07:30:40 pm »
Hi Monica,

EA requires an interactive session. This trips up everyone who tries to write server-side automation for EA, and I'm guessing that's what's going on here as well.

There are some hacks out there to work around this limitation, which may work or not depending on the OS version you're using, but there's no right and proper way of doing it. It's been discussed many times, but Sparx has not indicated any willingness to address this problem.

In sympathy,


/Uffe
My theories are always correct, just apply them to the right reality.

monicashishodia

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: Fails to initiate EA when trying to access it from window service
« Reply #2 on: March 22, 2017, 04:04:00 pm »
Thanks Uffe for clearing the doubt.