• Post Reply Bookmark Topic Watch Topic
  • New Topic

Difference between JCA adapter and JDBC

 
Damanjit Kaur
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I read in a recent post that we can use JCA adapters to do I/O operations in EJBs. I have a question:

what is the difference between JCA adapters and JDBC?

Both provide way to read and write data.
JDBC provides data formatting.
JCA provides for connection pooling,opening and closing. which JDBC too provides.

If all above is right? and if not then what else are the differences?


I read on JCA adapters web site

http://www.javaworld.com/javaworld/jw-11-2001/jw-1121-jca-p2.html

that JCA needs data/record like structure for IO operation. Isn't it the same for JDBC too?

Thanks!!
 
D. Rose
Ranch Hand
Posts: 215
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JDBC is just for DB access.
JCA is generic and can be used for any resource.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!