System.out.println ("Should throw an object not found exception by invoking on Cart after @Remove method");
Try
{
Cart.getcartcontents ();
}
catch (Ejbexception e)
{
if (E.getcausedbyexception () instanceof nosuchobjectexception)
SYSTEM.OUT.PRINTLN ("Successfully caught no such object exception.");
Else
Throw e;
}
}
}
Here attached log4j.properties in Jboss-ejb-3.0_preview_5.zip without this always shows a lack of appender. With this, a record.log log file will be generated in this directory.
It's not a big problem here either. is mainly familiar with the generis of j2se5.0. While writing this article and entity,
After learning Jboss-ejb-3.0_preview_5.zip after a period of time to write, may be unclear in some places. Have the question can send my mailbox rosonsandy@yahoo.com.cn, the title writes CSDN on the line, hoped can do something.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.