You certainly can - as is covered in the EJB spec
section 12.2.1
your problem is that you need to specify your
exception
in the throws clause of your remote interface. The
container will catch EJBExceptions and throw
RemoteExceptions in their place but it will pass your
application exception straight through so it needs to
be in the remote interface.
(Im surprised you were able to deploy the bean)
cheers
Perryn
>Hi, I have a question about Exception catching in
>EJB. How can I throw a
>custom Exception from my EJB?
<SNIP>
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".