当前位置:网站首页>The problem of distinguishing and sharing sessions for multiple applications in tongweb
The problem of distinguishing and sharing sessions for multiple applications in tongweb
2022-06-13 05:42:00 【t007321】
Application scenarios :
The same TongWeb Several application systems are deployed in the lower part ( Such as : application A And applications B), Multiple application systems need to jump to each other .
Need one : Need to access each other's application context
terms of settlement :
Cross context access , You need to configure parameters in the startup script -Dopenejb.crosscontext=true
amount to tomcat Of <Context path="/A" debug="0" reloadable="true" crossContext="true" />
such B The applied code is available :req.getSession().getServletContext().getContext("/A") obtain A The context of .
Demand two : Multiple applications should be distinguished http The head of the jsessionid, In order to avoid confusion
terms of settlement :
In application web.xml in Custom session cookie Name
<session-config><session-timeout>30</session-timeout><cookie-config><name>MYJSESSIONID</name></cookie-config></session-config>
Demand 3 : Multiple applications need to share one jsessionid, but session The attribute values stored in are different
Demand 4 : Multiple applications need to share one jsessionid,session The attribute values stored in the are the same
terms of settlement :
边栏推荐
猜你喜欢
Customer information management system - C language
Mongodb Multi - field Aggregation group by
Qmessagebox in pyqt5
Byte buddy print execution time and method link tracking
Service architecture diagram of Nacos series
A simple recursion problem of linked list
Course outline of market drawing 1- basic knowledge
Building a stand-alone version of Nacos series
Wampserver (MySQL) installation
Float type value range
随机推荐
20 flowable container (event sub process, things, sub process, pool and pool)
Windbos run command set
Comment procéder à l'évaluation des algorithmes
2 first experience of drools
Solution to prompt "permission is required to perform this operation" (file cannot be deleted) when win10 deletes a file
The 13th week of the second semester of sophomore year
Pychart professional edition's solution to SQL script error reporting
15 inclusivegateway and eventgateway of flowable gateway
Problems encountered in the use of PgSQL
Service fusing and degradation of Note Series
使用cmake交叉編譯helloworld
MySQL fuzzy query and sorting by matching degree
MySQL log management and master-slave replication
通过命令行创建harbor镜像库
System performance monitoring system
Validation set: ‘flowable-executable-process‘ | Problem: ‘flowable-servicetask-missing-implementatio
设置自定义dialog的正确宽高
Small project - household income and expenditure software (2)
Install harbor (online offline)
Byte buddy print execution time and method link tracking