FYI: from the magicdraw help page: Operation's Concurrency:
Sequential ---------- Callers must coordinate so that only one call to an Instance (on any sequential Operation) may be outstanding at one time. If simultaneous calls occur, then the semantics and integrity of the system may not be guaranteed. Guarded ------- Multiple calls from concurrent threads may occur simultaneously to one Instance (on any guarded Operation), but only one is allowed to commence. The others are blocked until the performance of the first Operation is complete. It is the responsibility of the system designer to ensure that deadlocks do not occur due to simultaneous blocks. Guarded Operations must perform correctly (or block themselves) in the case of a simultaneous sequential Operation or guarded semantics may not be claimed. Concurrent ---------- Multiple calls from concurrent threads may occur simultaneously to one Instance (on any concurrent Operation). All of them may proceed concurrently with correct semantics. Concurrent Operations must perform correctly in the case of a simultaneous sequential or guarded Operation or concurrent semantics may not be claimed. So guarded = synchronized, anything else is not synchronized -- Wouter > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:andromda-user- > [EMAIL PROTECTED] On Behalf Of Wouter Zoons > Sent: Friday, March 04, 2005 8:38 PM > To: 'skabeat' > Cc: 'andromda-user' > Subject: RE: [Andromda-user] [Hib Cartridge] synchronized <<Service>> > methods > > I think it would be very straightforward to implement that, especially > since > we have the 'concurrency' modifier > > File an issue in JIRA and assign it to me .. I will take care of it and > update *all* templates this weekend > > We have 3 possible values, so I'll have to figure out which one maps onto > the synchronized keyword > > -- Wouter > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:andromda-user- > > [EMAIL PROTECTED] On Behalf Of skabeat > > Sent: Friday, March 04, 2005 8:31 PM > > To: skabeat > > Cc: andromda-user > > Subject: Re: [Andromda-user] [Hib Cartridge] synchronized <<Service>> > > methods > > > > I see that in > > /cartridges/andromda- > > hibernate/src/templates/hibernate/ejb/HibernateSessionBeanImpl.vsl > > and other template files, that it doesn't look possible to have > > "synchronized" methods. > > Is it difficult to implement? > > > > Thanks again, > > > > skabeat wrote: > > > > > Hi, > > > > > > Is there a way to define synchronized method in session ejb in > > > hibernate cartridge? I've tried with various parameters in > > > "Concurrency" properties in MD but without any success. > > > > > > Thanks, > > > > > > Fabrice > > > > > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Andromda-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/andromda-user ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user
