Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP to JAVA

Former Member
0 Likes
517

We have a ABAP program that executes a Java program using JCo and imports the results.

We Run the ABAP program in one System (Sys-A), which will call the JCO Server program and open the JCO server instance in Sys-A. The Java server program returns the results from Sys-A.

We Run the ABAP program in another System (Sys-B) which will call the JCO Server program and open the JCO server instance in Sys-B. The Java server program returns the results from Sys-A.

Now as per step 1 and 2, the JCO Server instance is open in both the systems.

When we Run the ABAP program again and again, this time the ABAP program does not open any JCO server instance as the server instance in both the systems are already open, After 3-4 execution the results(Note: The results are hard coded in Java Server Program) from Java server program (Sys-A) overlaps with the results from another Java server program (Sys-B). Meaning Sys-A gets the results from Sys-Bs Java server program and vice versa.

Is there a way to avoid this cross talk.

Thanks,

1 ACCEPTED SOLUTION
Read only

abdul_hakim
Active Contributor
0 Likes
479

Hi

Once you are done with your work in Java system then jus disconnect the connection from your ABAP System(meant your SAP JCO Connection).There is no need to keep your connection open once you are done with your job.

Cheers,

Hakim

3 REPLIES 3
Read only

abdul_hakim
Active Contributor
0 Likes
480

Hi

Once you are done with your work in Java system then jus disconnect the connection from your ABAP System(meant your SAP JCO Connection).There is no need to keep your connection open once you are done with your job.

Cheers,

Hakim

Read only

Former Member
0 Likes
479

For business reasons we cannot close the connection. Is there a way around?

Read only

0 Likes
479

Hello Prakash!

I'm searching the way to access a database server runing MySQL. People sugest me use JDBC. However im not clear about what components are neccesary - SAP Netweaver Developer Studio ? others ? JCo ?-.

I'll appreciate your orientation.

Regards,

Manuel H.