0 Replies Latest reply on Oct 22, 2007 3:04 PM by rong999

    Sharing a Connection between EJB's

    rong999

      For example: I have 2 stateless EJBs: EJB1 and EJB2 and EJB1.xxx() calls EJB2.yyy(). How can I share the same connection between these 2 EJB's without using Transactions and without using Entities?

      The problem is that the application has limited number of connection objects in the connection pool and we have many calls from EJB to EJB. Each call uses a diffrent connection object...

      There is no issue regarding transactions, only the limited size of the connection pool.

      Thanks,
      Ron