cancel
Showing results for 
Search instead for 
Did you mean: 

JCo or SAP JRA

Former Member
0 Kudos

Hi All,

I am creating a J2EE application. In this I want to access BAPI in EJB.

For this whether I should use Jco or JRA? How to differentiate when to use Jco and when to use JRA?

Also, is there any document for how to access BAPIs from EJB using Jco and JRA.

I am using EJB2.0.

Don't worry about points, I will assign points to correct answer.

cheers

Jayant

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

JRA definately is the way to go , even SAP recommends it and that is because:

1. Credentials and other connectivity details are out of your code and are configurable from Visual admin.

2. Connection pooling etc is not your headeache, which with JCo is yours ...

3. JRA is based on JCA and follows the J2EE specifications and that is how fits perfectly in the J2EE scenarios...

Former Member
0 Kudos

Thanks Amol, Raj

Former Member
0 Kudos

Hi Jayant,

will you please give me some links or material regarding JRA.

Thanks & Regards'

Samir

Answers (1)

Answers (1)

rajendrengovend
Participant
0 Kudos

Hi Jayant,

based on what i've seen JRA is the preffered route to go when accessing BAPIs, JRA is layer that sits on top of JCo anyway. The benefits of going JRA is that your connections are managed by the J2EE Engine, so for example pooling is controlled by the engine. Also, with JRA you have access to the J2EE services as the SAP Adapter sits on top of the J2EE Engine. go to the Java Area of SDN and click on Getting Started, there's a tutorial on how to use JRA.

Raj