This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: J2EE Context Object design pattern
 
Similar Threads
Value Object (VO) vs. Transfer Object (TO) vs. Data Transfer Object (DTO)
Can I use Business Objects (BOs) as Transfer Objects (TOs)
Servlets JSP and Design FAQS
Value Object, Data Transfer Object and Domain Object
value object design pattern