entityManagerFactory JNDI

2008-12-11 Thread Jazon
is entityManagerFactory has JNDI name? I want to use it in my testing code. Thanks

Re: OpenEJB with MySQL problem

2008-12-11 Thread Rainer Pröbster
Hello, you included the MySQL driver (mysql-connector-java-5.x.y-bin) in WEB-INF/lib (!) folder, yes? Andrej Trifkovic schrieb: > Hello. > I was try to use OpenEJB plugin for Tomcat with MySQL database, but when > I deploy my war file, I get exception and message like this " Cannot > load JDBC

Re: Unit Testing with openEjb

2008-12-11 Thread Kevin Sutter
Hi Sanga, I need a couple of clarifications to help diagnose your situation. If I'm reading this right, you are attempting to run your test with and without the following property in your persistence.xml. Is that right? This property tells OpenJPA to use the mappings defined by you

Re: OpenEJB with MySQL problem

2008-12-11 Thread Jazon
I put mysql-connector.jar under \apache-tomcat-6.0.18\webapps\openejb\lib directory and it works On Thu, Dec 11, 2008 at 12:29 PM, Andrej Trifkovic wrote: > Hello. > I was try to use OpenEJB plugin for Tomcat with MySQL database, but when I > deploy my war file, I get exception and message like

OpenEJB with MySQL problem

2008-12-11 Thread Andrej Trifkovic
Hello. I was try to use OpenEJB plugin for Tomcat with MySQL database, but when I deploy my war file, I get exception and message like this " Cannot load JDBC driver class 'com.mysql.jdbc.Driver' ", although I was include driver for MySQL in WEB-INF folder. Can you tell me what is the problem?

Re: Stateful removal

2008-12-11 Thread Jean-Sébastien Scrève
I checked the spec and I cannot find anything about it. It's just that I tought it would be logic. What do you think ? Dain Sundstrom wrote: > > I checked the code and we don't close the EntityManager when the > stateful bean is removed. Do you know if this is a spec defined > behavior o

Re: Unit Testing with openEjb

2008-12-11 Thread Sanga Lawalata
Greetings, I think i know the problems. My situation is I use real database and not in memory database. So forgot 2 things which are : 1. I forgot to specify the ORM inside my persistence UML. So i put hibernate inside the persitence.xml 2. I forgot to put also the OracleDialect. After the two