Book a Demo

Author Topic: Access to a running EA-Application by Java  (Read 4810 times)

iMikel

  • EA Novice
  • *
  • Posts: 14
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Access to a running EA-Application by Java
« on: February 04, 2008, 08:44:15 am »
Hello,

i am using the Java-API for extending EA.

I would like to now if there is any alternative to "new Repository()" (which starts an own EA.exe-process).
Ofcourse this leads to a little gap of performance.

What i would like to have is a pointer to an already running
Repository / EA-Application respectively.

the method Repository.GetApp() always returns null.

Is it planned to improve the Java-API concerning this point?

Urgent!

Mikel

gpc

  • EA User
  • **
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Re: Access to a running EA-Application by Java
« Reply #1 on: February 04, 2008, 09:57:28 am »
As far as I know addins are used to access the current (running) repository. My approach is to develop code that starts up EA as a standalone app and then use this to implement an addin. Developing the addin seems to be hindered by having to restart EA each time you want to reload it.

xkrystof

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Access to a running EA-Application by Java
« Reply #2 on: February 15, 2008, 05:35:27 am »
You can faster the developmenet of addins, when you use i.e. MS Word, write your code (without restarting EA) accessing running EA instance.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Access to a running EA-Application by Java
« Reply #3 on: February 15, 2008, 05:47:45 am »
Quote
You can faster the developmenet of addins, when you use i.e. MS Word, write your code (without restarting EA) accessing running EA instance.

This tends to work best in a COM environment (ideally with both sides running COM). Word is an excellent example.

I find it really nice, since you don't need a development environment. As long as you have a reasonably complete installation of MS Office you can automate EA. Great for building automation programs for custom documentation or data extraction (to Excel for instance).

You can find all kinds of COM applications, and quite a few have VBA, Python, or other scripting language support.

Unfortunately this does not work as well in the .Net world, at least not without some effort. In the Java world it could be quite a problem, if it can be done at all.

David
No, you can't have it!