aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes J2EE/EJB necessary for JCA? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "J2EE/EJB necessary for JCA?" Watch "J2EE/EJB necessary for JCA?" New topic
Author

J2EE/EJB necessary for JCA?

Tiger Scott
Ranch Hand

Joined: Mar 01, 2001
Posts: 223
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?
Thanks
Sanjay
Ram Dhan Yadav K
Ranch Hand

Joined: Aug 13, 2001
Posts: 321
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."
Matjaz Juric
Author
Ranch Hand

Joined: Aug 02, 2001
Posts: 65
Hi Sanjay,
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>
Doug Wang
Ranch Hand

Joined: Oct 05, 2001
Posts: 445
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
Matjaz Juric
Author
Ranch Hand

Joined: Aug 02, 2001
Posts: 65
Hi Doug,
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
sarah Marsh
Ranch Hand

Joined: Mar 06, 2001
Posts: 282
To access oracle DB, is using JCA better than using JDBC? Why or why not?
Lasse Koskela
author
Sheriff

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


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

Joined: Mar 06, 2001
Posts: 282
I was asking that question because I remembered that I found there's a free tool of JCA for oracle access the other day, but I didn't read it in detail.
 
Don't get me started about those stupid light bulbs.
 
subject: J2EE/EJB necessary for JCA?
 
Similar Threads
Spring and Legacy connectivity
EJB Integration for SCEA Part1
Java web app connecting to legacy application:Need info on JCA and J2c Wizard
Using Java Data Objects to access EIS using the JCA
Implementation/Design suggestions