I need to access read-only entity beans in nontransactional fashion for getter methods and i must get rid of the "A CMR collection may only be used within the transction in which it was created" exception.
If I access a CMR transactional jboss puts after every two statements of select a commit statement. this hugely affect performance in database because (for example mysql) a commit negates by default a possible caching policy.
So my question is: How can I access read only (and even not read only) entity beans with no transactions? Or how can I get rid of that avalanche of commits after selects?