Did you list RemoteException in the throws clause of all your EJBObject's
methods?

-Dan


Luke Nelson wrote:

> 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?

--
Daniel G. Koulomzin
Digital Media On Demand
244 Brighton Ave. 3rd Floor
Allston MA 02134




Reply via email to