• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Oracle XA Data Source Problem using EJB

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I'm trying to use a Stateless Session EJB with transaction
attribute set to NotSupported for all methods. I'm using an Oracle XA thin JDBC driver version 9.0.1.1.0, in a J2EE 1.3 environment, with WebSphere 5.0 Test Server.

My Oracle db is configured correctly for XA transaction, and I don't use setAutoCommit method on the Connection.

When I call a method of the EJB (only with a select), I have this
error:
java.sql.SQLException: Use explicit XA call

If I use a noXA datasource it works fine.

Does XA JDBC thin driver support EJB transaction attribute
NotSupported?

It seems like if the transaction context at method invocation time is unspecified, the driver doesn't work.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic