Servlet Advanced
Add another event handler Java source file called MyOwnEventListener that 
implements Http Session Attribute Listener.

  Modify GreetingServlet.java
to add an attribute to the HttpSession.Modify ResponseServlet.java to remove 
the attribute from the
HttpSession.For these i've no problem... I did it.


"...Capture log file which shows that attributeAdded(HttpSessionBindingEvent 
evt)
and attributeRemoved(HttpSessionBindingEvent
evt) event handlers are invoked when an attribute is added and
removed respectively...."

I think that I did correctly:

 public void attributeAdded(HttpSessionBindingEvent se) {
         servletContext.log("attributeAdded() method is invoked"); 
         ...

but I don't see it in the log
INFO: Started bundle org.glassfish.connectors.gf-connectors-connector [77]
24-set-2009 20.41.07 org.apache.catalina.loader.WebappLoader setClassPath
INFO:
Unknown loader org.glassfish.internal.api.delegatingclassloa...@1e7d12b
class org.glassfish.internal.api.DelegatingClassLoader
24-set-2009 20.41.07 org.apache.catalina.core.ApplicationContext log
INFO: PWC1412: WebModule[/Myhello2] ServletContext.log(): * 
contextInitialized() method is invoked
24-set-2009 20.41.07 com.sun.enterprise.web.WebApplication start
INFO: Loading application Myhello2 at /Myhello2
24-set-2009 20.41.07
 org.glassfish.deployment.admin.DeployCommand execute
INFO: Deployment of Myhello2 done is 765 ms

Some little help?
Thank in advance.


      
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to