Hi

I'm somewhat under the impression, that the the tagged
value @andromda.transaction.type and isn't propagated
consistently into the generated sources.

I'm using Milestone 3, together with MaigicDraw.

As of EJB spec, the transaction type can be defaulted on
the class level of all bean types, and set explictly
for all interface methods + create, remove and finders.

I'm currently looking at the following issues in M3:

a.) I've got a session bean, with two methods,
one with transaction type=Required, the other with
transaction type=Supports.
But AndroMDA M3 fails to place
the XDoclet-Comment  @ejb.transaction into the method.

b.) On the class level, the tag is called
@andromda.ejb.transactionType in MagicDraw.
(as oposed to andromda.transaction.type on the method level
- which might or might not be the cause of the problem mentioned
above)
For session beans, the comment for the tagged value
states, that it should default to the value 'required'
(with lower case 'r'!!!).
But not explicitely setting it to 'Required' inserts the line

* @ejb.transaction type="Supports" //default transaction type

into the class comment.

c.) I got an entity Bean too, with some finders and creators.
For finders, everything is ok, the attribute is placed into
the @ejb.finder tag in the class comment, (incidentally,
the andomda name for it is @andromda.ejb.transactionType again)
but for the create methods, its back to zero again, the
contents of @andromda.transaction.type is not forwarded into
XDoclets @ejb.transaction attribute as required.

d.) On top of it, @andromda.transaction.type is also offered
for methods stereotyped as <<SelectMethod>>, but selectors
are no interface methods, and do not support
transactiontyping, AFAIK. Doesn't harm, but puzzles.

To conclude:
it seems a likely, that there was some bad mixup because
of @andromda.ejb.transactionType <> @andromda.transaction.type.

Or did I get anything wrong?

Thomas


------------------------------------------------------- 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 Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to