Hi,
I have a question.
I have a stateless session bean.Is it good to catch Exception in my bean
method and throw my own exception from the catch block.
Will the container be able to roolback the transaction automatically in
this case?Or is there any drawback in handling exception like this.
Below is the code snippet.
public void getData() throws AppException{
try{
//call the method
}
catch(DataInvalidException){
//throw as ApplicationException
}
catch(Exception ex){
throw new AppException(ex);

}

}

Thanks in advance,

===========================================================================
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".

Reply via email to