This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Hi Sanjay, JCA is developed to integrate the enterprise systems with J2EE architecture. Basic idea is to involve the entriprise transaction with in the transaction boundaries of J2EE and so you are suppossed to use a J2EE server. I am not sure about the direct calling of API, need to find out about that. I would love to hear more from people.
Ram Dhan Yadav (SCJP, SCWCD, SCJA-I, IBM EC(483))
"We are what we repeatedly do. Excellence, then, is not an act, but a habit."
Originally posted by Sanjay Bahal: All documents indicate that one needs a J2EE server to use JCA. Why is that the case. Can't one use the API's directly?
The question is why would you like to use JCA API directly? To use an API, you need an implementation that supports it. J2EE application server is such implementation. As Ram mentioned, JCA is there for integration of J2EE with EIS systems. Cheers, Matjaz
Matjaz Juric<br />Author of <a href="http://www.amazon.com/exec/obidos/ASIN/186100544X/qid%3D1008676221/sr%3D8-1/ref%3Dsr%5F8%5F5%5F1/103-4928879-8274265" target="_blank" rel="nofollow">Professional J2EE EAI</a> and <a href="http://www.amazon.com/exec/obidos/ASIN/1861005083/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional EJB</a>
Hi Matjaz, Regarding integration solutions, you have given many choices, in which JCA is the last choice. Then what is the case we should choose JCA as the only appropriate integration solution. [ February 06, 2002: Message edited by: Doug Wang ]
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep
Joined: Aug 02, 2001
Originally posted by Doug Wang: Regarding integration solutions, you have given many choices, in which JCA is the last choice. Then what is the case we should choose JCA as the only appropriate integration solution.
JCA provides a standardized method for accessing EIS systems from J2EE and Java applications (from managed and non-managed environment). Clients access EIS systems through JCA through CCI (Common Client Interface). However, we need a Resource Adapter for the EIS system. For commercial EIS systems, such as ERP, CRM and other systems Resource Adapters are (or will be) provided by vendors. If we have to develop a Resource Adapter ourselves this is not a trivial task. Therefore for simple legacy systems, where we do not need transaction, security, connection management and other contracts, simpler solutions can be easier to develop. This is somehow comparable to JDBC. To access a certain database you need a JBDC driver. For accessing a legacy database, sometimes it is easier to access the file directly than to write a JDBC driver. Cheers, Matjaz
Originally posted by sarah Marsh: To access oracle DB, is using JCA better than using JDBC? Why or why not?
JDBC. I doubt that there even is a resource adapter for Oracle database... The legacy databases Matjaz referred to would be flatfile based, homegrown databases. I would say that if the database provides a JDBC driver, using it is a no-brainer.