viernes, 25 de agosto de 2017

ADempiere Session Problem

When we have registered many users (50-100) in the ADempiere system and a certain user decides to login to the system and once inside the system automatically changes to another user, although this happens sporadically, this is a very serious error of the ADempiere because it loses reliability.

The solution was developed by the group of specialists of the location ADempiere of Brazil, and was consulted by the engineer Carlos Montenegro (cgmontenegro@gmail.com) to the specialist Ricardo Santana (member of the ADempiere Brasil community).

And this is the solution that they developed:

1. Basically you have to create a 'clearTabContext' method in the 'org.compiere.util.Env'
   (The method is defined at the end of the class)

   Link: Env.java

   At the source, this class is at: org.compiere.util.Env.java


2. Then add the following line in the class 'org.compiere.model.GridTab'
   Method 'query (boolean, int, int)'
   (The line is defined too, use the search bar)

   line:
   Env.clearTabContext (m_vo.ctx, m_vo.WindowNo, m_vo.TabNo);

   Link: GridTab.java

   In the source, this class is in: org.compiere.model.GridTab.java

By:
Ricardo Santana
ADempiere Brazil Localization

Muito Obrigado
 

No hay comentarios:

Publicar un comentario