Skip to Content
avatar image
Former Member

Connecting to ECC6 through Java code

Hi all,

We are having a batch jobs which calls an java application. This application connects to SAP Legacy 4.7 with JNDI name and fetches the data from 4.7 and loads to SQL DB. The application picks data from SQL table.

Now we need to collect data from ECC6 as well as from Legacy system. We have following queries:

1. Is it possible to fetch data from ECC6 as well as from 4.7  with same batch job?

2. We do not know what will be the JNDI name for ECC6, how to configure it or is there any other way to connect to ECC6 through Java.

Please help.

Regards,

Ashwin Mathuria.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Dec 23, 2014 at 11:37 AM

    Hi Ashwin,

    Please see the response below

    1. Yes, you can fetch data from ECC6 as you have to write one more connection class to your ECC system.

    2. I don't think you need JNDI, you can have the direct connection through JCO.

    It will be good if you can provide some more detail about your setup so I can understand your requirement better.

    Thanks,

    Hamendra

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Ashwin,

      In that case, the best appraoch would be to create a JNDI datasource for ECC in weblogic as well and then you can write a peace of code to connect with ECC as well.

      Thanks,

      Hamendra