Do not use BEA Global.app files

BEA Beehive uses global page flow files called Global.app to define actions that can be invoked by any other page flow in the application.

To migrate the Global.app file, move the file to the Java™ source path in your project and change the file extension to .java.

Because the BEA Javadoc tags do not document the Global.app file as a controller, you must add a @JPF.Controller class-level annotation to the Global.java file, as shown in the following example:


/**
 * The Global page flow is used to define actions which can be invoked by any
 * other page flow in a webapp. The jpf:catch annotation provides a global
 * way to catch unhandled exceptions by forwarding to an error page.
 *
 * @jpf:catch type="Exception" method="handleException"
 * @jpf:catch type="PageFlowException" method="handlePageFlowException"
 */

@Jpf.Controller (
catches = {
@Jpf.Catch (type=java.lang.Exception.class, method="handleException"),
@Jpf.Catch (type=PageFlowException.class, method="handlePageFlowException")
}
)
public class Global extends GlobalApp