File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Oracle XA Data Source

 
Edy Yu
Ranch Hand
Posts: 264
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic