cancel
Showing results for 
Search instead for 
Did you mean: 

Connect to the portal DB from an EJB

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Jeff-Gebo
Advisor
Advisor
0 Kudos

Hi Adi,

if you could post the entire ejb source code I might be able to figure out what the problem is...also, is this EJB running on the same J2EE Engine as the portal?

Cheers,

Jeff

Former Member
0 Kudos

Hi Jeff,

Sorry for the late response.

Apparently the problem was that I tried returning an object of type java.sql.Connection

which is not serializable.

Thanks for the good will, Adi.

Answers (0)