Menu

#1 ClassCastException in ConnectionFactory

open
nobody
None
5
2004-07-13
2004-07-13
Anonymous
No

Hi,
i have tried this adapter whith Bea WebLogic 8.1.

The simple example (EJBClient) works pretty good.
I changed the PropertiesRATestEJB-class in the following
manner:
Instead of
cf.getConnection
i wrote
ConnectionSpecPropRA connectionSpec = new
ConnectionSpecPropRA("mynam", "mypasswd");
Connection myCon = cf.getConnection(connectionSpec);

I redeploy the EJB to test this slight change.
A class cast exception occurs in the ConnectionFactory-
Class.

Though I think that this exception is not caused by your
source, I hope you can give me a hint, how to avoid this
class cast exception.

Thanks,

Stefan Koch

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.