dcsimg
RemoveException on ejbRemove; JBoss
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Luigi_Viggiano
Posted On:   Monday, November 5, 2001 08:34 AM

I'm using JBoss 2.2.2, this is my method: public void ejbRemove() throws RemoveException { if ("CLOSED".equals(state)) throw new RemoveException("Impossible to remove a closed activity : " + getCode()); } The container catches this exception and removes the object anyway... (no exception comes at the client side) I had to replace the RemoveException in a RemoteException to disable deletion. But why ? Raising RemoveException shouldn't the remove to be stopped? EJB 1.1 at 9.1.9.5 seems to say that. But it's not so much clear.    More>>

I'm using JBoss 2.2.2, this is my method:

			
				
public void ejbRemove() throws RemoveException {
if ("CLOSED".equals(state))
throw new RemoveException("Impossible to remove a closed activity : " + getCode());
}

The container catches this exception and removes the object anyway... (no exception comes at the client side)

I had to replace the RemoveException in a RemoteException to disable deletion.


But why ?

Raising RemoveException shouldn't the remove to be stopped?


EJB 1.1 at 9.1.9.5 seems to say that. But it's not so much clear.

   <<Less
About | Sitemap | Contact