Java Reference
In-Depth Information
4. In the Projects tab, right-click the interceptor project and select Run.
This will compile, deploy, and run the interceptor example, opening a web
browser page to http://localhost:8080/interceptor/ .
5. Type a name into the form and select Submit.
The name will be converted to lowercase by the method interceptor defined in the
HelloInterceptor class.
To Run the interceptor Example Using Ant
1. Go to the following directory:
tut-install /examples/ejb/interceptor/
2. To compile the source files and package the application, use the following
command:
ant
This command calls the default target, which builds and packages the applica-
tion into a WAR file, interceptor.war , located in the dist directory.
3. To deploy and run the application using Ant, use the following command:
ant run
This command deploys and runs the interceptor example, opening a web
browser page to http://localhost:8080/interceptor/ .
4. Type a name into the form and select Submit.
The name will be converted to lowercase by the method interceptor defined in the
HelloInterceptor class.
Search WWH ::




Custom Search