that was a mistake in my last post,
can u please answer me ?
Amir Hossein Hormati
>>so I should not get deadlock when i'm reading database
it depends on jboss locking policy selected.
Take a look at "Instance Per Transaction CMP 2.x EntityBean" container configuration in the actual JBoss documentation, it should solve your issue.