Re: em.clear() in a non transactional context

2009-02-11 Thread Jean-Sébastien Scrève
Ok thanks David. Let me explain the circumstances of my question : I have a Stateful session bean. All methods are non transactional. I only want to browse entities. Let's say I have a reference to an entity. I call the clear() method on the session bean. After that, it's still possible to

Re: OpenEJB on Oracle

2009-02-11 Thread JensToerber
Hi, got our production application running with Openejb on Tomcat. We are using: - Spring 2.5.1 (JndiObjectFactoryBean); we could replace this with @EJB - Facelets with JSF 1.2 - Timer - MDBs - Hibernate as JPA provider - Entity and Session Beans Currently no problems. We have a newsletter

Re: em.clear() in a non transactional context

2009-02-11 Thread David Blevins
[note to future readers: this content does not apply to EXTENDED persistence contexts] On Feb 11, 2009, at 8:14 AM, Bharath Ganesh wrote: The clear method would detach all the entities from the EM. Whenever you invoke a method on an EM, in a non-transactional context, semantically it

Cannot instantiate class: org.openejb.client.LocalInitialContextFactory

2009-02-11 Thread mgyh
I am new to OpenEJB. So far, I am very pleased and would like to use this for additional development. I installed OpenEJB successfully in Tomcat 6.0 (download the .war, deployed to webapps, then ran the installer). I created a Bean and am able to successfully use this in a JSP program. This

Re: Extended PersistenceContext and Transactions

2009-02-11 Thread Karan Malhi
Hi Thomas, I could not reproduce the error. Could you share the code? On Mon, Feb 9, 2009 at 6:50 AM, thomas.th.hamac...@partner.bmw.ch wrote: Hi @all, so now I tracked down my problem with the Extended PersistenceContext. The reason for failure was the TransactionManagement. Anyhow I tried