How to share sessions in weblogic

I have several weblogic applications. I need users to choose a language (English, Spanish, French, ...), and when they choose, all the applications that they want to use should be based on their chosen language. When I save the session Locale, everything is fine for this application, but when the user clicks on another application (which goes beyond the application), the language will be changed to the default value. Is there any way to share this value between all applications?

+4
source share
3 answers

Yes. One option is to keep the user's locale preference in a shared database. Another is to manually send the browser cookie.

+2
source

If you are deploying your applications on a single server, try setting up JMS at the server level in the web log. check out this thread to help you http://middlewaremagic.com/weblogic/?p=1987

or

use session sharing mode https://technology.amis.nl/2012/01/18/sharing-session-state-between-jee-web-application-through-weblogic-session-descriptor-of-sharing-enabled/

0
source

HTTP - (.war) (.ear). .ear weblogic-application.xml :

<session-descriptor>
  <sharing-enabled>true</sharing-enabled>
</session-descriptor>

. http://xmlns.oracle.com/weblogic/weblogic-application/1.2/weblogic-application.xsd http://xmlns.oracle.com/weblogic/weblogic-javaee/1.2/weblogic-javaee.xsd

: .wars, cookie. .wars( ) cookie JSESSIONID cookie-, "" cookie JSESSIONID, .

0

All Articles