Re: Obtaining EntityManager programatically for test purposes

2009-02-21 Thread David Blevins
On Feb 17, 2009, at 7:44 AM, > wrote: Do I have any chance to get the hashcode as well? I could do the workaround to ignore the id and imply that the persistence-unit is unique, but it would even be cleaner, if I would look for the exact jndi-name. But as I do this programatically I cu

RE: Re: Obtaining EntityManager programatically for test purposes

2009-02-17 Thread Thomas.TH.Hamacher
David, thanks a lot for your answer. Do I have any chance to get the hashcode as well? I could do the workaround to ignore the id and imply that the persistence-unit is unique, but it would even be cleaner, if I would look for the exact jndi-name. But as I do this programatically I currentl

Re: Obtaining EntityManager programatically for test purposes

2009-02-06 Thread David Blevins
On Feb 5, 2009, at 7:12 AM, Jazon wrote: anybody know this? I also need to get entityManager using JNDI. Hi Jazon, If you only have one or two EntityManagers than this is definitely the recommended approach: http://www.nabble.com/Re%3A-Obtaining-an-EntityManager-instance-outside-an-EJB-p

Re: Obtaining EntityManager programatically for test purposes

2009-02-06 Thread David Blevins
On Feb 3, 2009, at 5:56 AM, > wrote: Hi @all, as a lot of folks I am not really satisfied with how JBoss currently cares about their embedded application server. So I finally decided not to struggle around anymore, but to move to openEJB as this seems a lot smoother and people speak very

Re: Obtaining EntityManager programatically for test purposes

2009-02-05 Thread Jazon
anybody know this? I also need to get entityManager using JNDI. On Tue, Feb 3, 2009 at 7:56 AM, wrote: > Hi @all, > > as a lot of folks I am not really satisfied with how JBoss currently cares > about their embedded application server. > So I finally decided not to struggle around anymore, but

Obtaining EntityManager programatically for test purposes

2009-02-03 Thread Thomas.TH.Hamacher
Hi @all, as a lot of folks I am not really satisfied with how JBoss currently cares about their embedded application server. So I finally decided not to struggle around anymore, but to move to openEJB as this seems a lot smoother and people speak very good about it. So far everything works fine