Follow these instructions to build and run the Cursor-to-Event example on your Application Server instance using the NetBeans IDE.
In NetBeans IDE, select File->Open Project.
In the Open Project dialog, navigate to the tut-install/javaeetutorial5/examples/stax/ directory.
Select the cursor2event folder.
Select the Open as Main Project check box.
Click Open Project.
In the Projects tab, right-click the cursor2event project and select Properties. The Project Properties dialog is displayed.
Enter the following in the Arguments field:
Right-click the cursor2event project and select Run.
Note how the Book events are returned as strings.