This content has been marked as final. Show 2 replies
You should be able to access the PortalRuntimeContext using the Navigation class's static accessor:
PortalRuntimeContext prc = Navigation.getPortalRuntimeContext();
Though, I'm not sure why you'd be "afraid" of using the PortletSession.APPLICATION_SCOPE - as this is defined by the JSR168/286 spec, whereas the PortalRuntimeContext is a JBoss-specific API.
I'd encourage you to either investigate using the APPLICATION_SCOPE or because you're on Portal 2.7, look into the JSR286 event coordination features.
Using these features will lead to more spec-compliant, portable, and possibly more maintainable code.
thank you apemberton for your reply.
Your suggestion really worked.