Help coderanch get a
new server
by contributing to the fundraiser
  • 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

DataSource/JCA

 
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can I say javax.sql.DataSource and javax.sql.XADataSource are examples of JCA?
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Edy Yu:
Can I say javax.sql.DataSource and javax.sql.XADataSource are examples of JCA?


DataSource (or XADataSource) are not "examples of JCA".
First of all, JCA is a different set of interfaces: javax.resource.*
Second, DataSource is an interface and thus isn't an instance/implementation/example of anything. An example of JCA would be something like a .rar file provided by SAP AG for connecting J2EE applications to their ERP system.
Check out this JavaWorld article for a decent introduction to JCA.
 
Edy Yu
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Let's put it this way. Say, setting up DataSource/XADataSource mapping to Oracle database is an example of implementing JCA architecture in J2EE.
Here, the ressource adapter is impelemented by Oracle through proper JDBC drivers. If we dig deeper into the App servers datasource implementation, we can see clues using JCA features like ManagedConnection, ConnectionFactory, ects.
To me, JCA is much like a framework to create pluggable and portable connectors to EIS inside App Servers. The EIS could be an Oracle database or a SAP ERP.
 
Do not meddle in the affairs of dragons - for you are crunchy and good with ketchup. Crunchy tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic