Hello ,
We have a java program that is deployed in three different environments - A , B and C. The java program uses dfc and has a session listener to output the session id of the created session everytime a new session is created as shown below.
class listener{
..
..
public void onSessionCreate(IDfSession sess) throws DfException {
System.out.println("Session created: " + sess.getSessionId());
}
..
}
So the output in the log file will display "Session created" whenever a new session is created. Below is the output from the log files in various environments.During the first and the second run of the java program , he issue is that the session id printed in environment C is different.The output below will give a better idea of the issue
Environment A
---------------------
First Run of java program
----------------------------------
Session created: s1
Session created: s2
Second Run of java program
---------------------------------
Session created: s1
Session created: s2
Environment B
---------------------
First Run of java program
----------------------------------
Session created: s1
Session created: s2
Second Run of java program
---------------------------------
Session created: s1
Session created: s2
Environment C
----------------------
First Run of java program
----------------------------------
Session created: s1
Session created: s2
Second Run of java program
---------------------------------
Session created: s3
Session created: s4
Third Run of java program
---------------------------------
Session created: s4
Session created: s5
If you notice the output of Environment C , the session id is always increasing . Which means that new sessions is being created for each instead of being reused. Since the code is the same which is deployed across the envrionments A,B and C . It is possible that the issue is because of a dfc.property setting or a server.ini property that makes this happen . Any idea which property would be responsible for this .
Also does this mean that the code is not releasing the sessions that it is using ?