BEA Beehive utilise des fichiers de flux de page globale intitulés Global.app pour définir des actions pouvant être appelées par tout autre flux de pages dans l'application.
Pour migrer le fichier Global.app, déplacez le fichier dans le chemin source Java de votre projet et changez l'extension de fichier en .java.
Etant donné que les balises Javadoc BEA ne décrivent pas le fichier Global.app comme contrôleur, vous devez ajouter une annotation de niveau de classe @JPF.Controller au fichier Global.java, comme cela est présenté dans l'exemple suivant :
|
/** * The Global page flow is used to define actions which can be invoked by any * other page flow in a webapp. The jpf:catchannotation 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 |