cancel
Showing results for 
Search instead for 
Did you mean: 

JCo inside WebAS 6.40

Former Member
0 Kudos

Hi all,

I would like to connect from a J2EE component of a WebAS 6.40 to a 4.6c SAP system via RFC.

I know I could use the JCo for this... However, SAP note 549268 states the following:

<quote>The SAP JCo 2.1.5 is only for stand-alone use, i. e. the communication between any non SAP Java platform and ABAP applications ranging from SAP R/3 to SAP ERP and SAP NetWeaver. Note that in the SAP J2EE application server another version of SAP JCo is in use, which cannot be used separately from the SAPJ2EE engine.</quote>

This puzzles me a little bit...

Does it mean that I should not use the JCo inside of WebAS Java 6.40? What should I use instead?

Could someone enlighten this for me? Any help would be appreciated!

- Matthias

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Fueller,

You can use JCO for your R/3 connectivity.It is perfectly fine to use JCO from j2ee applications.

You can also get sample code for this from JCO API.

Regards,

Bhavik

Former Member
0 Kudos

Hi Matthias,

No, you can use JCos for the situation you describe. There is a standalone JCo piece out there, although I've not seen it.

Open the Visual Administrator of your 6.40 J2EE engine. Navigate: Server -> Services -> JCo RFC Provider. Create your Jco setting here and test.

One catch here though - Jco's are not resilient. If you J2EE engine loses connection with the 46C back-end, you have to restart your Jco on the J2EE to build the connection back. SAP has stated "this is the way it is" - but you should know as a good troubleshooting tool.

Best of luck,

Tim

Former Member
0 Kudos

Hi Tim,

thanks for the info. However, I don't know if the JCo RFC provider is really the right tool...

As I mentioned, I want to go from JAVA to ABAP. The SAP help on the JCo RFC provider states the following:

<i>In the J2EE Engine the RFC functions are implemented by the JCo RFC Provider service, which is used for processing <b>ABAP to Java</b> requests.</i>

Link: http://help.sap.com/saphelp_nw04/helpdata/en/6a/82343ecc7f892ee10000000a114084/frameset.htm

Could you give an example (Java source code) of how to use the JCo RFC provider to call an ABAP function module from a J2EE component?

Thanks,

Matthias

Former Member
0 Kudos

Hi Matthias,

have a look at thread and see if it helps.