Re: Non daemon threads launched by Timer service and not properly stopped

2009-01-21 Thread David Blevins
On Jan 19, 2009, at 5:08 AM, uglything wrote: Hie David. I made a simplistic Maven/Eclipse WAR project which boils down to : - a ServletContextListener which starts a 10s-Timer - a Stateless bean containing a @Timeout method trapping the said timer events. I ran this war against a Tomcat

Re: Programatically configure persistence under Tomcat

2009-01-21 Thread David Blevins
On Jan 19, 2009, at 4:26 AM, Luis Fernando Planella Gonzalez wrote: I think that having a deployable openejb.xml in the web application context wouldn't be the exact solution... The current version of our application has a host with ~20 instances (the new version is being developed using O

Re: logging.properties file ignored for unit tests

2009-01-21 Thread David Blevins
On Jan 19, 2009, at 2:40 AM, Olivier THIERRY wrote: Hi, I use Open EJB 3.1 within a Maven 2.0.9 project to run tests. Everything works well for the moment. But for a few days I encounter a bug with entity manager and I need to activate logs to understand what happens. I start OpenEJB this way

Re: Tomcat and openEJB - how to do this simple config?

2009-01-21 Thread David Blevins
Hi Jp, That article is pretty old. You'll probably be able to write a far better article/blog once everything is up and running :) In fact, I encourage it! Truth be told, I'm not sure how many people are aware of how simple it can get. With all the various things we do automatically fo

Re: DataSource problem

2009-01-21 Thread hretter
Thank you, David. Unfortunately, I still get the exception: Caused by: java.lang.ClassCastException: org.apache.commons.dbcp.DelegatingCallableStatement cannot be cast to oracle.jdbc.OracleCallableStatement at com.bmi.sms.ejb.company.CompanyDao.getCompanyInfo(CompanyDao.java:48) line 4

Re: DataSource problem

2009-01-21 Thread David Blevins
Not giving out direct references to the driver-created DataSources is an unavoidable part of connection pooling -- the concept is built on giving out several "handles" which delegate to a DataSource which is tracked in the transaction associated with the current thread and returned to the p

DataSource problem

2009-01-21 Thread hretter
I get a ClassCastException: java.lang.ClassCastException: org.apache.commons.dbcp.DelegatingCallableStatement cannot be cast to oracle.jdbc.OracleCallableStatement because openejb is not loading the oracle driver as described in openejb.xml: JdbcDriver oracle.jdbc.OracleDriver JdbcUrl jdbc

Re: datasource problem with hibernate and oracle

2009-01-21 Thread David Blevins
Hi Paolo, Something interesting is going on. The openejb.xml looks great and the persistence-unit declaration for "MyEM" looks perfect. Can you post the declaration for the "MyOrclEM" persistence-unit? Even if the MyOrclEM declaration was somehow flawed I wouldn't expect the outcome you

Re: Strange email from WebTide.

2009-01-21 Thread Dain Sundstrom
Juan, I'm investigating working on OpenEJB full time, and asked my friend Adam if he could help me assess the feasibility of building a Webtide like organization for the OpenEJB project. If you have a few minutes to respond (offline), I would really appreciate it. Thank you, -dain On

Strange email from WebTide.

2009-01-21 Thread uglything
Hie all. This message is @openejb developers crew. I've received this strange email, and I'd like to know if you know about that before I reply to it. Thanks Juan Manuel === fromAdam Lieber date19 de enero de 20

Re: datasource problem with hibernate and oracle

2009-01-21 Thread p.spadafora
Any help? please? p.spadafora wrote: > > Hello, > > I have a problem with datasource, looks like openejb is using an hsqldb > database instead of Oracle. > > > > The error is: "table not found" > > > > INFO: building session factory > > 19-gen-2009 12.43.36 org.hibernate.impl.SessionF

Tomcat and openEJB - how to do this simple config?

2009-01-21 Thread jpmad4it
Hi, I am trying to setup a JNDI database connection through an EJB in Tomcat. First of all, is this possible? If it is, I would then like to call this database connection created in the EJB from PHP. However, this post's questions relate to EJB and Tomcat, not PHP. I found that I need openEJB to