Skip to Content
avatar image
Former Member

JCO Connection to backend

Hi Gurus!

We are trying to connnect from our B2B application to the backend, not using the property files but going through the JCO standard connection.

Although we have implemented the code in our cutsom JAVA class that is handling the connection for the custom code, we are not able to connect to the backend. Here a sample code suggested by SAP that we have followed. Can anybody suggest a way to fix this?

thanks in advance!!

" DestinationService dstService = (DestinationService)

ctx.lookup(DestinationService.JNDI_KEY);

if (dstService == null)

throw new NamingException("Destination Service not available");

RFCDestination dst =

(RFCDestination) dstService.getDestination("RFC", "RFC_NAME");

int maxPoolSize = dst.getMaxPoolSize();

long maxWaitTime = dst.getMaxWaitTime();

Properties jcoProperties = dst.getJCoProperties();

/**

  • Code example for establishing a direct connection */

JCO.Client client = JCO.createClient(jcoProperties);

client.connect();

"

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 15, 2008 at 10:31 PM

    Hello,

    I am not sure if you asked the right group in SAP. Unless the ISA connection design has been totally revamped, the reply from SAP doesn't look correct in the contect of SAP E-Commerce application (B2B).

    Can you please elaborate a little more on

    trying to connnect from our B2B application to the backend

    ? Are you using SAP E-Commerce (Web Channel, ISA) B2B and enhancing the application?

    Easwar Ram

    http://www.parxlns.com

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      The point is thta we are using a custom-designed solution to use our custom code in the backend, defining a connection via "client" in JAVA application and basing the connection on the use of property files. We would like - now - to call SAP using the standard JCO connectors.

      Thanks for answering.

  • avatar image
    Former Member
    Oct 17, 2008 at 03:29 PM

    Hi,

    Check this article to find custom connections to backends.

    [Example Program|http://help.sap.com/saphelp_nw04/helpdata/en/d2/561106b8b3bc449f890cddfdc8d3e2/frameset.htm]

    Regards,

    Sateesg Chandra

    Add comment
    10|10000 characters needed characters exceeded