• Post Reply Bookmark Topic Watch Topic
  • New Topic

Data swapping between logged users !!!  RSS feed

 
Kirtikumar Puthran
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a problem which i think is related is related to instance swapping. I would appreciate if i could get some possible solutions to this problem. The scenario is thus -
My application is based on Servlets, EJB and XSL. We have written data holder classes for each of the entity beans. Now, it happens that when a particular client modifies his data, all of a sudden, some data which is not related to him comes up in the view. Is this because of some application server problems. We are using Pramati Application Server and Apache(web server)/Tomcat(Servlet engine). We have used our own design pattern which is close to MVC. The interesting thing is that this problem occurs once in a blue moon, but of late it started to occur quiet frequently. We haven't yet encountered this scenario in our local testing server due to which we haven't been able to pin point the root cause. Has this happened with anyone before ???
Thanks in advance,
Kirtikumar Puthran
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are your transaction isolation settings ?
 
Kirtikumar Puthran
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ajith,
We have used BMP to do inserts and updates into the database.
Foe retrieving the data(view), we are using session beans.
Now, i tried searching for the transaction isolation settings in the deployment descriptors(ejb-jar.xml), but i could not find it. Does this mean that, Pramati 2.0 uses some default settings ? Or are these settings defined somewhere else?
Rgds,
Kirtikumar Puthran
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Going back to your original question, when you say-
when a particular client modifies his data, all of a sudden, some data which is not related to him comes up in the view.. ,is the data shown in the view consistent with what is in the database?

Can you elaborate on the question with an example scenario ?
[ March 06, 2003: Message edited by: Ajith Kallambella ]
 
Kirtikumar Puthran
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is the data shown in the view consistent with what is in the database

I will explain in more clear terms. The data shown in the view is certainly there in the database. For example, if user Kirti logs in, he will be surprised to see the financial figures which he has not entered at all. In fact, this data is certainly there in the database, but belongs to some other user.
I seriously think that the isolation-level has to be changed as you suggest. But, I don't understand where to search for this parameter.
The flow of the application is designed thus:
Client request --> Servlet --> Session Bean(stateless) --> Entity Bean returns the data (which are value objects) to the Calling Servlet and it is rendered using XSL (view)
Hope this is clear as this is the most general flow.
Rgds,
Kirtikumar Puthran
 
Kirtikumar Puthran
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone help me on this topic ???
Rgds,
Kirtikumar Puthran
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!