This topic has not yet been written. The content below is from the topic description.
Ear functionality http://localhost:8080/aopexample/index.jsp gets ExampleValue from session, calls getMessage() on it, and displays the value. You can fill in a value in the textbox and press submit. This works similar to the war example apart from that the servlet used is EarExampleServlet which calls through to the ExampleSession SLSB, which creates the message. The call goes to EarExampleServlet.service() Looks up ExampleSessionHome, calls create() and calls ExampleSession.getValue() with the passed in String ExampleSession.getValue() creates a new ExampleValue with the passed in string and returns that EarExampleServlet.service() sets the ExampleValue in the session and forwards to index.jsp for display index.jsp then gets ExampleValue from session, calls getMessage() on it, and displays the value. The output in the JBoss logs for all the EAR examples will be something like: -For initial display of index.jsp page 21:26:26,305 INFO [STDOUT] < < < Entering SimpleInterceptor: invocation class: org.jboss.injbossaop.web.EarExampleServlet_service_858 6428322187484014_OptimizedMethodInvocation type: Method Invocation method: service Class containing method: org.jboss.injbossaop.web.EarExampleServlet 21:26:00,447 INFO [STDOUT] **** ExampleValue.getMessage() 21:26:00,447 INFO [STDOUT] >>> Leaving SimpleInterceptor 21:08:19,332 INFO [STDOUT] < < < Entering SimpleInterceptor: invocation class: org.jboss.injbossaop.lib.ExampleValue$ExampleValue_mes sage_632994_OptimizedSetFieldInvocation type: Field Write Invocation field: java.lang.String org.jboss.injbossaop.lib.ExampleValue.message 21:08:19,332 INFO [STDOUT] >>> Leaving SimpleInterceptor 21:08:19,332 INFO [STDOUT] **** ExampleValue empty Constructor 21:08:19,332 INFO [STDOUT] < < < Entering SimpleInterceptor: invocation class: org.jboss.injbossaop.lib.ExampleValue_getMessage_53534 07034680111516_OptimizedMethodInvocation type: Method Invocation method: getMessage Class containing method: org.jboss.injbossaop.lib.ExampleValue 21:08:19,332 INFO [STDOUT] **** ExampleValue.getMessage() 21:08:19,332 INFO [STDOUT] < < < Entering SimpleInterceptor: invocation class: org.jboss.injbossaop.lib.ExampleValue$ExampleValue_mes sage_32604882_OptimizedGetFieldInvocation type: Field Write Invocation field: java.lang.String org.jboss.injbossaop.lib.ExampleValue.message 21:08:19,332 INFO [STDOUT] >>> Leaving SimpleInterceptor 21:08:19,332 INFO [STDOUT] >>> Leaving SimpleInterceptor -Having filled in a value and pressed submit, you should get (a bit longer this time) 21:26:36,730 INFO [STDOUT] **** EarExampleServlet.service() 21:26:36,950 INFO [STDOUT] < < < Entering SimpleInterceptor: invocation class: org.jboss.injbossaop.ejb.ExampleSessionBean_getValue_8 555731906870343793_OptimizedMethodInvocation type: Method Invocation method: getValue Class containing method: org.jboss.injbossaop.ejb.ExampleSessionBean 21:26:36,950 INFO [STDOUT] *** ExampleSessionBean.getValue() 21:26:36,960 INFO [STDOUT] < < < Entering SimpleInterceptor: invocation class: org.jboss.injbossaop.lib.ExampleValue1OptimizedConstru ctorInvocation type: Constructor Invocation constructor: public org.jboss.injbossaop.lib.ExampleValue(java.lang.Stri ng) 21:26:36,960 INFO [STDOUT] **** ExampleValue String Constructor 21:26:36,960 INFO [STDOUT] >>> Leaving SimpleInterceptor 21:26:36,960 INFO [STDOUT] >>> Leaving SimpleInterceptor 21:26:36,960 INFO [STDOUT] < < < Entering SimpleInterceptor: invocation class: org.jboss.injbossaop.lib.ExampleValue1OptimizedConstru ctorInvocation type: Constructor Invocation constructor: public org.jboss.injbossaop.lib.ExampleValue(java.lang.Stri ng) 21:26:36,960 INFO [STDOUT] **** ExampleValue String Constructor 21:26:36,960 INFO [STDOUT] >>> Leaving SimpleInterceptor 21:26:37,050 INFO [STDOUT] < < < Entering SimpleInterceptor: invocation class: org.jboss.injbossaop.lib.ExampleValue_getMessage_53534 07034680111516_OptimizedMethodInvocation type: Method Invocation method: getMessage Class containing method: org.jboss.injbossaop.lib.ExampleValue 21:26:37,050 INFO [STDOUT] **** ExampleValue.getMessage() 21:26:37,050 INFO [STDOUT] >>> Leaving SimpleInterceptor 21:26:37,060 INFO [STDOUT] >>> Leaving SimpleInterceptor