You're allowed to throw any exceptions you want, but you must specify them
in the method header (in both the EJB class and the Remote interface).
-mike
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Luke Nelson
> Sent: Wednesday, January 17, 2001 9:25 AM
> To: Orion-Interest
> Subject: Can't throw exception from entity bean?
>
>
> When I try to throw an exception from a get/set method in an entity bean
> using CMP, Orion shows the following error during deployment:
>
> Auto-deploying entitybeans.jar (Class
> 'com.gardnersys.ejb.entity.TmsObject'
> had
> been updated)... TmsDeviceBean_PersistenceManager4.java:30: Exception
> java.rmi.R
> emoteException must be caught, or it must be declared in the throws clause
> of th
> is method.
> super.setTmsObject(value);
> ^
> 1 error
> Error compiling file:/C:/tmsobjects/entitybeans.jar: Syntax error
> in source
>
> Am I not allowed to throw an exception, or is there something else that is
> wrong?
>
>
>
>