can anyone please help me on this ??
I think this is very important that EntityB designers
should be aware of.
Okay, I'm gonna help you out. I noticed that of the 10 postings you've done, 7 of them pertained to this scenario. I can understand the silence simply because many people working with CMP/CMR issues have spent alot of time answering this form of question.
The quick/easy answer, BUY THE CMP DOCS!!!! You'll find all your answers there with appropriate examples. If the docs don't answer it, then try these forums.
Your caching question, especially with distributed cacheing, will take a little longer. Buy/Read the clustering docs and learn about the different containers with cache invalidations. For Jboss3.2, you may risk transactional integrity with a distributed cache(unless you use optimistic locking.... I think). JB4.0 should solve this issue.
Finally, if you can't find the answer here, find out yourself. Turn on the jboss debugging/trace for org.jboss.pm and see what queries the engine is creating. From those queries, you can see how your app reacts. You can then tune your containers and jboss.xmls to fit your personal need. Download the code and throw JBoss into the debugger. You'll be amazed how much better you'll understand your application and how it works with the appserver by throwing it into the debugger.