aspose file tools*
The moose likes Websphere and the fly likes Oracle XA Data Source Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Oracle XA Data Source" Watch "Oracle XA Data Source" New topic
Author

Oracle XA Data Source

Edy Yu
Ranch Hand

Joined: Nov 21, 2000
Posts: 264
I have a Oracle XA Data Source set up in WAS 5.0.
When I try to get a connection through that datasource as following:
Context ctx = new InitialContext();
XADataSource ds = (XADataSource) ctx.lookup("jdbc/xads2");
conn = ds.getXAConnection().getConnection();
I got an exception:
java.lang.ClassCastException: com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource
Anybody knows why?
Thanks in advance...


SCJP, SCJD, SCWCD, SCBCD, SCEA, IBM Certified Enterprise Developer, WebSphere Studio V5.0
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Oracle XA Data Source