aspose file tools*
The moose likes OO, Patterns, UML and Refactoring and the fly likes J2EE Context Object design pattern Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "J2EE Context Object design pattern" Watch "J2EE Context Object design pattern" New topic
Author

J2EE Context Object design pattern

Arun Somasundaram
Ranch Hand

Joined: Jul 25, 2006
Posts: 63
Hi all,
I have uderstood all the J2EE design patterns except the Context Object pattern(implementaion part). Can any one give me a simple example for J2EE Context Object deisgn pattern. I have understood Context Objects are used to share infrastructure information across the tiers in a protocol independent way. Also I have undestood It's similar to the Transfer Object but the difference is , the Transfer Object is used for carrying business information across tiers. What infrastructure (security,request,configuration) info is carried by a Context Object? Any simple example on this pattern would be very much appreciated rather than an explanation thanks in advance


Arun.V.Somasundaram
Arun Somasundaram
Ranch Hand

Joined: Jul 25, 2006
Posts: 63
No one to rescue
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187

http://ws.apache.org/axis2/1_2/api/org/apache/axis2/context/MessageContext.html

http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html
 
jQuery in Action, 2nd edition
 
subject: J2EE Context Object design pattern