I have enabled entity lock monitor in jboss and now I have one concerning bean:
EJB JNDI-NAME; Total Lock Time; Num Contentions; Time Outs; Max Contenders
Entity Bean Remote; 36329; 66; 0; 1
Total lock time growing very fast, from hour to hour. I assume I should avoid that. Is there any magic way, fx. in configuration postgres/jboss/ejb to improve it? Or can I only reinvent my code to eliminate locks?