0 Replies Latest reply on Jan 22, 2006 3:33 PM by Dragos

    I want to access CMR collections of read only entity beans N

    Dragos Newbie

      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?

      Thank you