Hi,

   I have written a little EJB accesing to Oracle database 8.1.7 with
SQLJ.
   Is there any known bug known?
   I have the next problem...

   I have a little EJB which has several methods that acces database. I
have defined a Connection pool to the database, ands I obtain the
                      connection like this:

                        InitialContext ctx = new InitialContext();
                        DataSource ds = (DataSource)
ctx.lookup("java:/OraclePool");
                        c = ds.getConnection();
                        DefaultContext.setDefaultContext(new
DefaultContext(c));

                        After I use the connection I close it.
                        My problem is that if two clients are at the
same time accesing the EJB (everyone has made the home.create() ), they
are sharing the  connections, because suddenly one of the clients says
the connection is closed!
           I have tried the Minerva Pool and the OracleXADataSource for
the pool.

                        Any idea?

                Jose R. Díaz


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to