|
Hmm, it should work, it works on other cartridges,
but then again I haven’t looked at the ejb cartridge for a while.� Then
again: I just re-read what you wrote, you wanted it to throw an exception you created,
and in that case you did the right thing by adding the
<<ExceptionRef>>.� The thing I described is if you wanted the
exception generated. From: Luciana Nunes
Leal [mailto:[EMAIL PROTECTED] I did what you said and it didn�t work. When I inserted a stereotype (<<ExceptionRef>>)
in the dependency between the service and the exception, it works. The problem is resolved. Thanks, Luciana. De: Just draw a dependency from the
<<Service>>’s operation(s) to the element stereotyped with
<<Exception>> (or <<UnexpectedException>> /
<<ApplicationException>>). If you want every operation to
throw the exception you draw the dependency from the service to the
exception. If you only want some of the operations to throw the
exception: you draw a dependency from the operations you want throwing it, to
the exception element. From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Luciana Nunes Leal Hi, I�m using the ejb-cartridge. I modeled my service class
with "Service" stereotype. I�d like that one specific method of this
session bean throw the exception that I created. How can I should model this relation between the service and
the exception? Is there any stereotype for this? Note that I want some methods
throws this exception, not all. Thanks. Luciana. |
- RES: [Andromda-devel] Exception in Session Bean Luciana Nunes Leal
- RE: [Andromda-devel] Exception in Session Bean Chad Brandon
