Book a Demo

Author Topic: How to interface with other projects  (Read 4078 times)

DaveWoodward

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
How to interface with other projects
« on: June 26, 2003, 07:52:27 am »
I have a project with an architecture that is made up of three layers. Presentation, Business and Data services.

Presentation layer uses classes in the Business layer but could also make use of classes in the business layer of another application.

In EA, is it possible to reference classes in another project, or would I need to include the business layer objects from the second project in the first one?  


CJ

  • EA User
  • **
  • Posts: 288
  • Karma: +0/-0
    • View Profile
Re: How to interface with other projects
« Reply #1 on: June 26, 2003, 08:03:04 am »
G'day,

Not sure if this does does the trick for you, but how about controlled packages?
Cheers and best regards.

DaveWoodward

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: How to interface with other projects
« Reply #2 on: June 26, 2003, 11:29:16 pm »
But using packages would still mean that all my applications that I am ever going to write (that make use of common business level classes) would have to be in the same project, be it in different packages.

If this is the only way of doing it, then fair enough, but I am hoping that there is a way to reference the class of one project from another directly.

CJ

  • EA User
  • **
  • Posts: 288
  • Karma: +0/-0
    • View Profile
Re: How to interface with other projects
« Reply #3 on: June 27, 2003, 06:39:16 am »
Either I don't understand Controlled Packages or I don't get your needs/question.

I thought that Controlled Packages would be perfect, based on the EA help file (lookup "Controlled Packages" in the help index).  Would that not be a good way to share a set of classes in a package between any number of projects?  Could you not setup each application in its own project file, and setup each project file to have the same controlled package, which you can then save and load from any/all project files?

The pain in the rear with this setup:
Anytime a change is made to the controlled package, it must be saved and then reloaded for every project.  Not too big a deal if your business layer is pretty stable.
Cheers and best regards.

DaveWoodward

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: How to interface with other projects
« Reply #4 on: June 27, 2003, 06:47:31 am »
I suspect that the truth is that I don't understand Controlled packages.

I'll look up the helpfile as you suggest.

Many thanks for your help.

Dave