Shields Down

Wed Apr 29

// The getProfile method below will cause you brain damage. It uses a 
// servlet continuation, makes a JMS call, and uses XML serialization.
// It also behaves differently depending on the values provided for 
// userId, requestingUserId, and profileMap which can carry a third 
// parameter, the username of the user whose profile we'd like to load.
// Below, we're hoping to load the profile data for a user using their
// login name.
// Plans are to replace this method with something that isn't 
// completely insane as soon as possible.
// Also insane: it returns a Map.  The keys/values in the map vary 
// depending on how getProfile was called.
boolean getstats = false;
Map profileMap = new HashMap();
profileMap.put("username", login);
int userId = -1, requestingUserId = -1;
Map profileData = getProfile(req, resp, session, -1, -1, profileMap, getstats);