Jess, my intention is to check if any valid user is present in session(sessionContext) before accessing Principal to avoid null pointers, PTC told us that the sessionContext field in MethodContext has been made private in 10.2 M010 version, but we can access same by using public getter method. so instead methodContext.sessionContext we have to access session by calling this methodContext.getSessionContext(). Thanks for your help!
↧