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?