Patent ID: 8561034

Claim:
A method for injecting one or more exceptions into a JAVA enterprise application during execution of the JAVA enterprise application, the Java enterprise application having one or more Enterprise JAVA Beans (EJBs), each EJB including one or more EJB methods, the method comprising: scanning, by an exception injecting computing device, each EJB for one or more exceptions, and corresponding interface points of the EJB; automatically injecting, by the exception injecting computing device, the one or more exceptions at the corresponding interface points based on scanning the EJB, wherein a before advice aspect weaved into each corresponding interface point is used to automatically inject the exceptions; throwing, by the exception injecting computing device, the exceptions to at least one invoker of the one or more EJB methods of the EJB, wherein the one or more exceptions are thrown before beginning execution of business logic of the one or more EJB methods; and analyzing, by the exception injecting computing device, using an around advice aspect, a response of the JAVA enterprise application to the one or more exceptions that are injected into the JAVA enterprise application.