• Post Reply Bookmark Topic Watch Topic
  • New Topic

HttpSessionActivationListener doubt  RSS feed

 
Prasad Shindikar
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HttpSessionActivationListener must be configured in the deployment descriptor via the listener tag

Is this statement true or false ?

According to me and HFJS, the above statement is true.
But in one of the mocks by Marcus Green, this statement is said to be false.
So need to confirm.
 
Michael L´┐Żnhardt
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes that's right:

By adding a <listener> element in the deployment descriptor as
shown here:
<web-app>
...
<listener>
<listener-class>MySessionActivationListener</listener-class>
</listener>
...
</web-app>
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer is false the HttpSessionActivationListener must not be configured deployment descriptor

I think the followling might be helpful

DeclaringListeners
 
Prasad Shindikar
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks remo..
i checked the errata.. and this particular point has been mentioned there too !
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!