|
You shouldn't declare RemoteException in the method
signature for the bean implementation, just in the remote interface, since
the implementation should not throw RemoteExceptions, only EJBExceptions (the
usage of the RemoteException for signaling non-application exceptions is
deprecated as of EJB1.1).
HTH,
Andrei
Hi,
Just install #633, everything looks great.
Except this buggy thing about throwing RemoteExeption. Below is a
snippet of my code:
protected DataAccess
getDataAccess() throws RemoteException { if
(this.dataAccess ==
null) { logger.debug("obtain EJB
instance: " + EJBHomeType.DATA_ACCESS); this.dataAccess
= (DataAccess)
EJBUtil.getStatelessSessionBean(DataAccessHome.class,
EJBHomeType.DATA_ACCESS); }
return
this.dataAccess; }
IDEA warns that this method
should not throw RemoteException. Any idea why? The code compiles
fine otherwise.
Thanks,
Mike
Liu
|