NetBeans plug-in for AVK : How to use AVK in NetBeans
This blog is intended for the NetBeans users who want to use AVK through NetBeans IDE.
In this blog I brief about the AVK tool and the plug-in functionalities. Here is the flashplayer demo which has the whole process installing the plug-in and doing the dynamic verification of a JavaEE project using this AVK plug-in.
- Static verification : Statically checking the application for the correct usage of Java EE specifications. The tool determines that an application suite's classes, Java EE annotations, and any deployment descriptors follow the specification and that the application suite contains no methods that are proprietary to a particular vendor.
- Dynamic verification : Dynamically checking the application for the correct usage of Java EE specification by running the application on the Sun Java System Application Server. The tool profiles the application, determining the proportion of enterprise bean component methods, web services methods, and web components that are invoked while the application runs on the application server.
More details about the AVK can be found at http://java.sun.com/j2ee/avk
- Static verification plug-in : This is the plug-in for doing the static verification of the JavaEE project through NetBeans IDE. Since the static verifier a subcomponent of the application server itself, the plug-in for the static verifier is available as part of "Sun Java System Application Server plug-in".
- Dynamic verification plug-in : This is the plug-in for doing the dynamic verification of the JavaEE project through NetBeans IDE. This plug-in is called "Sun Java System Application Verification Kit plug-in".
- In the Projects window, select the project node, right-click and choose Verify Project. The Choose Verification dialog box opens.
- Select the Dynamic Verification radio button and click OK. The IDE deploys your project to the application server, starts the verification process, and brings up 'AVK Session' window in the editor pane showing the dynamic verification reports. The reports in this window get automatically updated as you access your application.
- If your project has a web component then your application is launched in the browser. Otherwise, execute a sample manually outside the IDE.
- You will notice that the reports are automatically updated in 'AVK Session' window. Note that 'Right Click' > 'Go To Source' on any 'Servlet Name' or 'Method Name' will open the appropriate source code. 'Right Click > 'Show Exception' on any exception of the unsuccessfully called Servet/EJB will show the exception stack trace on the output panel.
Screen shot of the 'AVK Session' window showing the dynamic verification results for a stateless EJB sample :
Note that the plug-in also supports the J2EE projects running with AppServer 8.x as runtime. Open "Help > Help Contents" and search "AVK" for more details.
Implementation details of the AVK plug-in will be available in my next blog. That will be intended more towards the NetBeans plug-in developers.