This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes N-tier applications and Listeners Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "N-tier applications and Listeners " Watch "N-tier applications and Listeners " New topic
Author

N-tier applications and Listeners

Amila Jayatillaka
Greenhorn

Joined: Sep 29, 2006
Posts: 28
Hi,
I need to know somethings about N-tier web applications.
Actually what I need is to know is how context listeners, session listeners work with them(and others too). Like in a N-tier application does it share same context attributes or how sessions work with it etc...
Reason I’m asking this is I got to know that in SCWCD 5 they are asking something similar things like this.
Thanks in advance.

SCJP 1.4, SCMAD 1.0, SCWCD 5.0
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 2891
    
  18

Hello Amila, are you talking about about n-tier applications or distributed applications? You question makes good sense if it is about distributed applications.


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
My Home Page -- Twitter Profile -- JavaRanch FAQ -- How to Ask a Question
Amila Jayatillaka
Greenhorn

Joined: Sep 29, 2006
Posts: 28
Devaka Cooray wrote:Hello Amila, are you talking about about n-tier applications or distributed applications? You question makes good sense if it is about distributed applications.


Yes i'm talking about distributed applications....
Actually I thought that N-Tier is about distributed applications
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 2891
    
  18

Well Amila, when your application is deployed on a distributed environment, the session information will transfer remotely to other JVMs in the same environment. In this case, session information should have to be serialized and deserialized in order to pass it as a remote object. Hence you should care about HttpSessionActivationListener an must implement it's sessionDidActive and sessionWillPassivate methods appropriately if it is needed. It is required to do so, if the session stores some connections pooling data / or resources which must be committed and/or closed before serializing them. For the SCWCD exam you are NOT expected to have a deep knowledge about distributed environments. Instead of that, basic understanding about HttpSessionActivationListener is sufficient for the exam. And keep in mind that multi-tier (n-tier) architecture is completely differ than distributed environments.

Devaka.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: N-tier applications and Listeners
 
Similar Threads
HTTP response codes
Multiple listeners
Real Role of Listeners in actual application?
XML and n-tier applications.
Study Notes on Common Architecture