Skip to Content
avatar image
Former Member

connection establishment doubt

Hi Experts,

we have one application with JCo mechanism. For this application,

we are using one properties file, which holds ABAP connection information. From this connection information(sapconn.props), we created connection pool and fetching data from the back end. Now my requirement is, instead of this properties file, we want to use one SLD, from this i would like to fetch connection information and establish a connection pool. How can we implement this one...?

Is there any API to read the ABAP connection informaation from visual admin (JCo RFC provider) ?

Thanks

maha

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Sep 25, 2008 at 02:39 PM

    Hi Maha

    Please could you provide more detailed information on what you need.

    Here's a basic explanation of one option (there are many different ways to do this):

    You can create a Destination in NWA (go to Configuration Management > Destinations). From here you can create an RFC destination to any system. It also allows you to define security requirements (e.g. use a technical user for the connection, or user mapping as defined in the UME, etc.)

    Once your destination has been created, you can retrieve it in code and create an interaction with the system. See this link for code samples: [http://help.sap.com/saphelp_nw04s/helpdata/en/f2/db49421c0b3c54e10000000a1550b0/frameset.htm]

    Cheers

    Stuart

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Maha

      Unfortunately I can't help with a JCo example, as I've never used it. The recommendation from SAP is to use JCA instead... the explanation is on the link I provided in my previous post:

      The connector framework has connection management. This overcomes a common problem that occurs when using the JCo client service, where the developer hat to take care about connection management himself. Therefore it is strongly recommended not to use JCo client service any more and migrate existing EP 5.0 applications that use the JCo client service to Connector Framework.

      There's a code sample using JCA in that link as well.

      I would strongly recommend that you refactor your application to use JCA instead of JCo. I'm not sure if SAP would certify it if it's using a technology that you're actively advised not to use.

      Cheers

      Stuart

  • avatar image
    Former Member
    Sep 29, 2008 at 11:10 AM

    Maha,

    Did you check [this?|http://help.sap.com/saphelp_nw04/helpdata/en/17/d609b48ea5f748b47c0f32be265935/frameset.htm]. You need to use DestinationService to do this.

    Bala

    Add comment
    10|10000 characters needed characters exceeded