Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes EJB and other Java EE Technologies and the fly likes DataSource/JCA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "DataSource/JCA" Watch "DataSource/JCA" New topic
Author

DataSource/JCA

Edy Yu
Ranch Hand

Joined: Nov 21, 2000
Posts: 264
Can I say javax.sql.DataSource and javax.sql.XADataSource are examples of JCA?


SCJP, SCJD, SCWCD, SCBCD, SCEA, IBM Certified Enterprise Developer, WebSphere Studio V5.0
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Edy Yu
Ranch Hand

Joined: Nov 21, 2000
Posts: 264
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DataSource/JCA