Skip to Content
0
Former Member
Mar 20, 2007 at 01:35 PM

Connect to the portal DB from an EJB

16 Views

Hello all,

I'm writing an EJB for accessing the portal DB (SQL server).

I'm using the business methods of the EJB from a web dynpro application to connect/read/update the DB.

Before useing an EJB: I did everything in the web dynpro. it worked fine.

Now when writing the exact same code in an EJB I get the following exception when trying to connect (con = ds.getConnection()):

<b>I/O operation failed : java.io.NotSerializableException: com.sap.engine.services.dbpool.cci.CommonConnectionHandle</b>

Does anybody know what can be the problem?

Thanks, Adi.