Author Topic: How to connect from Eclipse to a Server Repository  (Read 3247 times)

AndreasJ

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
  • jepp!
    • View Profile
How to connect from Eclipse to a Server Repository
« on: March 10, 2007, 10:26:41 am »
Hi all,

I followed the help to set up a postgres database and move a project from file to the database. It works fine in EA.

Now I'm trying to connect from an Eclipse project to the model (it was connected already when it was a file). In Eclipse I chose
Enterprise Architect > EA Project Explorer > Connect to a Server Repository and clicked ok. But now I got only the choose file dialogue? What are the necessary steps to get the model connected?

Thanks in advance!

Andreas



«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How to connect from Eclipse to a Server Reposi
« Reply #1 on: March 11, 2007, 04:51:36 am »
Just a guess, since I don't use Eclipse connectivity much...

Try creating an ODBC (or OLEDB) data source for your repository DBMS, and then saving this as a file. You'll have to do this via Windows rather than in EA.

When EA brings up the open file dialog, point it to the data source file.
No, you can't have it!

AndreasJ

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
  • jepp!
    • View Profile
Re: How to connect from Eclipse to a Server Reposi
« Reply #2 on: March 11, 2007, 05:49:12 am »
Thank you for your answer! Unfortunately this way doesn't seem to fix the problem. I created the file without problems but EA isn't able to open it, because the dialogue-window allows only *.eap files.



I tried to use *.* to make the dsn-file visible, but EA didn't accept the fileformat. The message displayed is: 'Existing files may not be overwritten. Please type the name of a new file.' This message doesn't make any sense to me.

Is it possible that Sparxs had forgotten to implement this feature? Any other advice?

Thanks,
Andreas

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How to connect from Eclipse to a Server Reposi
« Reply #3 on: March 11, 2007, 07:11:35 am »
Andreas,

Something isn't right, that's for sure.

I suspect that some tweak is missing. It could be that Sparx broke the 'chain' someplace and EA is not trying to find a repository - perhaps the option button is not setting things correctly. Or, perhaps there is some 'magic' step that needs to be performed, but is missing from the documentation (or really obscure).

I'd report this directly to Sparx immediately. Since this is a user forum it will take a bit longer to get into the Sparx 'hopper' from here.

You can report this from the forum by clicking the Support link at the top of the page, then clicking the Bug Report link in the left side menu.

You can also report this from the EA main menu via Help | On-Line Resources | Bug Report Page. Since Sparx is in the Land of Aus, do this immediately as it is Monday already.

HTH, David
No, you can't have it!

AndreasJ

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
  • jepp!
    • View Profile
Re: How to connect from Eclipse to a Server Reposi
« Reply #4 on: March 11, 2007, 07:44:35 am »
Thank you David. I just asked the support and wait now for an answer. I'll write it in this forum, if there is a solution available.

Regards,
Andreas

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: How to connect from Eclipse to a Server Reposi
« Reply #5 on: March 12, 2007, 04:55:09 pm »
This is the same behaviour found in MDG Integration for Visual Studio.  When you select "Connect to Server Repository", you are prompted to save a new 'eap' file, which will actually just be used to store your database connection string.  Once you specify a new filename, you should be prompted for your database connection details, same as in EA.

HTH

AndreasJ

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
  • jepp!
    • View Profile
Re: How to connect from Eclipse to a Server Reposi
« Reply #6 on: March 14, 2007, 06:18:14 am »
It's an odd behaviour, but it works fine. ;)

Thanks a lot.

Andreas