cancel
Showing results for 
Search instead for 
Did you mean: 

JCO Connection to backend

Former Member
0 Kudos

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();

"

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.