This is 2015 - may years after this thread began.
Nonetheless, I am posting this message to help anyone out there like me that is Struggled to understand "Context"
By no means do I claim to have used Context in Java programs - so its entirely up to you to write Context out in hard coding
So here goes :-
"Conceptually context" is the same "as tell me more" When a client
makes a request to server - in order to carry out the request the
server says "give me some more info so that i can help you". Thus,
alongwith the request, the client provides a bundle of details. The
server picks and chooses from the bundle all pieces of info required
to serve the request. This bundle is what is called "Context"
E.g.
Patient goes to doc and says treat_me ( "I have a headache" ) Doc
office gives the patient a form to fill. Patient fills form. The form
is used by the doctor to carry out the "treat_me" request.
Here is how the request now looks :
treat_me ( "i have a headache", filled_form_num_23321 )
Here is how filled_form_num_23321
looks :
Q.What lead to the condition ? A. 10 pegs of neat Scotch last nite
Q.Patient name ? A. Joe Bigdrinker
Q.Age ? 98
In this transaction filled_form_num_23321
is the "context".
Hope this helps in clarifying the concept of "Context".