posted 20 years ago
Hai all,
First of all, let me explain what i have understood abt the re-entrant, it will like this :
Client -> Bean A -> Bean B -> Bean A.
Anyhow re-entrant is not possible in Session beans. In Entity beans we have to specify in deployment descriptors saying that, the bean should allow re-entrant.
My question is, why should we have to specify this ? Because, anyhow, all beans are single-threaded. So, Bean B will not get the same instance of Bean A which is being accessed by the client, Bean B will get another instance of Bean A. So, what is the problem in this ?
Poorna