Hey,
I have multiple applications running on a Glassfish 4.1 server, and because of some dependency changes, we are migrating to Payara. These applications need to share their session ID. In Glassfish I did this by going to HTTP Service and checking SSO. So I tried to do the same thing within Payara.
At first it seems to work, but now I have different issues. In every application I have a SessionScoped bean. And when they are loaded they register themselfs (and unregister when they are destoryed). Then when a user clicks on a button, all the registered beans need to be updated. This is where the error happens.
So I go to application 1, do something so the SessionBean gets loaded. Then go to application 2 so the SessionBean of that application gets loaded. Then I go back to app 1, and perform the action so all the SessionBeans get updated. At that point, WELD throws an error:
WELD-001303: No active contexts for scope type javax.enterprise.context.SessionScoped
org.jboss.weld.context.ContextNotActiveException: WELD-001303: No active contexts for scope type javax.enterprise.context.SessionScoped
It throws it when it want's to update the the SessionBean of app 2.
But the session is not yet destroyed (at least, I think it isn't).
Am I doing something wrong here? Have I not configured something that should be?
I'm using Payara 171.
Thanks!