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.

 

Chad

 


From: Luciana Nunes Leal [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 21, 2004 9:13 AM
To: Chad Brandon; [email protected]
Subject: RES: [Andromda-devel] Exception in Session Bean

 

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, Chad.

 

Luciana.

 


De: Chad Brandon [mailto:[EMAIL PROTECTED]
Enviada: ter 21/12/2004 14:09
Para: Luciana Nunes Leal; [email protected]
Assunto: RE: [Andromda-devel] Exception in Session Bean

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.

 

Chad

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Luciana Nunes Leal
Sent: Tuesday, December 21, 2004 8:24 AM
To: [email protected]
Subject: [Andromda-devel] Exception in Session Bean

 

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.

------------------------------------------------------- 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://productguide.itmanagersjournal.com/ _______________________________________________ Andromda-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-devel

Reply via email to