Hi Nacho and list<div><br></div><div>I mean say.. when call CmsObject.loginUser()  i want to check the user who had logged in .</div><div><br></div><div>ie.</div><div><br></div><div>if(!Cmsoject.currentUser.equals(newuser){</div>

<div>  CmsObj</div><div>}<br><br></div><div>As according to my test case which i sent in first mail.. I have set of web-applications which will use opencms deployed in jboss with different instances(Jboss)..</div><div>All these will be listening for changes ,so  when they all start listening they will get files from opencms. so they will be logging in similar way as shown in test case.</div>
<div><br></div><div>Further more i have opencms code 7.0.3 which i modified </div><div>as below org.opencms.db.generic.CmsUserDriver class as below. </div><div><br></div><div><div> protected synchronized void internalWriteUserInfos(CmsDbContext dbc, CmsUUID userId, Map additionalInfo)</div>
<div>    throws CmsDataAccessException {</div><div><br></div><div>        deleteUserInfos(dbc, userId);</div><div>        if (additionalInfo == null) {</div><div>            return;</div><div>        }</div><div>        Iterator itEntries = additionalInfo.entrySet().iterator();</div>
<div>        while (itEntries.hasNext()) {</div><div>            Map.Entry entry = (Map.Entry)itEntries.next();</div><div>            if ((entry.getKey() != null) && (entry.getValue() != null)) {</div><div>                writeUserInfo(dbc, userId, (String)entry.getKey(), entry.getValue());</div>
<div>            }</div><div>        }</div><div>    }</div><div>But still the problem persists.</div><div><br></div><div>Thanks and Regards</div><div>Govind R </div></div><div><br></div><div><br></div><div><br></div><div>
<br><div class="gmail_quote">2009/6/2 Nacho Fernández Orellana <span dir="ltr"><<a href="mailto:nacho.fernandez.orellana@gmail.com" target="_blank">nacho.fernandez.orellana@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Dear Govind and list,<br><br>I am sorry I don't undestand your line<div><br>>Can i check the logged in User from the CmsObject which i cam compare with who is logging in.<br><br></div>Anyway, by the very nature of OpenCms, you can find its source code and modify it to suit your needs in your own installation (see LGPL license terms if in doubt). I remind you that simply having many users logging into the workplace with the same username should not be enough to reproduce the problem, they are unlikely to log in overlapping that block of code (two users after deleting user info and while inserting) loggin manually. We reproduced it by "artificial" means (simulating multiple request threads).<br>


<br>If you are willing to modify the core code of OpenCms for your use, just download it (there are other posts about getting and compiling OpenCms' source), get to the method I mentioned earlier and synchronize either the block of code that deletes and then inserts or the method itself. I hope this helps. Greetings,<br>


<br>Nacho Fernandez.<br>
<br><br>
_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br></blockquote></div><br></div>