History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: EJB-76
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Vance Karimi
Reporter: Olivier THIERRY
Votes: (View)
Watchers: (View)
Operations

If you were logged in you would be able to see more operations.
EJB Cartridge

Seam component scope in the model ignored on generation

Created: 30/Jul/07 12:15 PM   Updated: 30/Aug/07 03:03 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

File Attachments: 1. Zip Archive andromda-profile-seam-1.1-SNAPSHOT.xml.zip (35 kb)

Environment: Magic Draw 12.1, EMF / UML2 export
Andromda 3.3-SNAPSHOT
EJB3 cartridge


 Description   
When you set SESSION as scope for a Seam component in the UML model, it is ignored on generation : the components are always in CONVERSATION scope.

See this topic on the forum : http://galaxy.andromda.org/forum/viewtopic.php?t=4974

 All   Comments   Change History      Sort Order:
Comment by Olivier THIERRY [01/Aug/07 10:01 AM]
The problem comes from a different default value in the EJB3 cartridge and the Seam profile for the @andromda.seam.component.scope tagged value. It is CONVERSATION in the cartridge, while it is SESSION in the UML profile. Then it looks like AndroMDA has as particular behaviour with default value on EMF/UML2 export : when you select the default value for a tagged value, it doesn't export the value ! I think it would be better to export the default value if you set no value for the tagged value, but that's not the way AndroMDA works. So when you select SESSION for @andromda.seam.component.scope, it exports nothing since SESSION is the default value, and so EJB3 cartridge understands it as CONVERSATION since it applies default value if there is no scope defined for a Seam component in UML model ...

So, to solve the problem, the default value in the UML profile should be CONVERSATION, not SESSION. I changed it manually in the XML profile file and it works perfect now. I think the profile is generated from an UML metamodel, but I don't know where this metamodel is and how to correct the default value. Anyone has an idea about it ?

I will attach the right XML profile file to this JIRA issue ;)

Comment by Olivier THIERRY [01/Aug/07 10:02 AM]
The XML profile file with CONVERSATION as default value for @andromda.seam.component.scope tagged value instead of SESSION

Comment by Vance Karimi [08/Aug/07 04:41 PM]
Make sure you took the profile from http://jira.andromda.org/browse/EJB-63, which I still havn't applied.

It's not a big change anyway, so after the profile in EJB-63 is applied, we can manually add this fix.

Comment by Vance Karimi [30/Aug/07 03:03 PM]
fixed in cvs