[jboss-user] [EJB 3.0] - Re: jms lazy mdb Design pattern

2007-05-14 Thread bdevis
i have made mistake in my post code public Clienti findByName(String nome) { Clienti id=(Clienti) em.createNamedQuery("Clienti.findByNome").setParameter("nome",nome).getSingleResult(); return em.getReference(Clienti.class, id.getIdcliente()); } public Clienti

[jboss-user] [EJB 3.0] - jms lazy mdb Design pattern

2007-05-14 Thread bdevis
Hi, to all i have this scenario 1)I have my entity with many collection (Lazy association) 2)This is my mdb | public class LoginRequest implements MessageListener { | | public LoginRequest() { | } | | public void onMessage(Message message) { |

[jboss-user] [EJB 3.0] - FetchType.EAGER as default

2007-05-08 Thread bdevis
Hi to all, i'm new here and with ejb3. I'm using jboss4.2 with ejb3, i wish to understand if it's possibile change FetchType.LAZY (default) with FetchType.EAGER. I have not use in my collection tag/annotation FetchType.LAZY then i wish to understand if i can change this default FetchType. Sorry fo