Book a Demo

Author Topic: Round-trip problem with MDG technology for CORBA  (Read 3265 times)

SebastienRoy

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Round-trip problem with MDG technology for CORBA
« on: January 17, 2006, 01:24:52 am »
Hello, I have the following pb when I try to perform a round trip with my CORBA IDL, using MDG technology for Corba (using EA 6.0 build 780)

From my class diagram, present deep in the package tree of my project, I import the following IDL (through the menu Import from source file / IDL )

Code: [Select]

module myModule
{
interface myInterface
{
long myMethod(in long myParam);
};
};


The "myInterface" is created (a class with <<CORBAInterface>> stereotype) in the package of the class diagram from where I launched the import.
However, nothing is created for the module "myModule".

After that, I add a new method in myInterface (called "myOtherMethod"), and then I generate the code of myInterface. I got the following

Code: [Select]

module myModule
{
interface myInterface
{
long myMethod(in long myParam);
};
};

module Dev
{
module Corba
{
module IDL
{
module IDLRno
{
interface myInterface
{
long myMethod(in long myParam);
long myOtherMethod(in long myParam);
};
};
};
};
};
 

The interface is duplicated! A second one is created in unwanted modules!
There is as many module as there is embeded packages from the EA View to my interface, even if these package are not stereotyped with <<CORBAModule>>.

My question are :
- Is there something wrong in my procedure?
- Is there a workaround to perform the roundtrip with CORBA IDL, without having duplicated interfaces or unwanted modules?

Thank for any answer

Sebastien Roy

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8091
  • Karma: +118/-20
    • View Profile
Re: Round-trip problem with MDG technology for COR
« Reply #1 on: January 17, 2006, 01:49:37 pm »
Importing from a diagram does not import the package (module) structure.  Import Source Directory does this.  The generation looked at the namespace structure of your model, (See http://sparxsystems.com.au/EAUserGuide/index.html?namespaces.htm) didn't find module Dev so generated it and everything inside it.

If you set the namespaces in EA this will work as you expect.

SebastienRoy

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Re: Round-trip problem with MDG technology for COR
« Reply #2 on: January 18, 2006, 01:19:11 am »
Thank you very much.
With your indications, it works find now.

Seb