Skip to Content
author's profile photo Former Member
Former Member

Problems using using connector framework

Hi,

I am trying to use the connector framework, rather than creating direct JCO connection to system.

I have consulted the following links (got them here on SDN):

<<https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/using sap adapter for connector framework>>

<<https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/connect to sap systems.htm>>

****************************

Bottom line i use:

...

Object connectorservice =

PortalRuntime.getRuntimeResources().getService(IConnectorService.KEY);

IConnectorGatewayService cgService = (IConnectorGatewayService) connectorservice;

if (cgService == null) {

response.write("Error in get Connector Gateway Service <br>");

}

try {

ConnectionProperties p = new ConnectionProperties(request.getLocale(), request.getUser());

connection = cgService.getConnection(alias, p);

} catch (Exception e) {

}

...

The connection is always null. I have checked and I can, through EP run a transaction using this system and it works.

Thanks,

Azriel

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 28, 2004 at 02:07 PM

    Is the user mapped for this system? Is the alias really correct?

    Regards,

    Armin

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 31, 2004 at 10:18 AM

    There are no exceptions anywhere.... All seems great.

    I fail to get it. This is the case for a LoadBalancing, system, connection string system, and a regular R3 system (I have ITS defined for it)

    Add a comment
    10|10000 characters needed characters exceeded

    • Sorry for the late reply, I have been on vacation ... I only use the "com.sap.portal.ivs.connectorservice" as a SharingReference in the portalapp.xml file.

      I hope you have solved the problem or that the other posts in this thread might have helped you?

      By the way, I don't think any questions are trivial.

  • author's profile photo Former Member
    Former Member
    Posted on Feb 08, 2005 at 03:40 PM

    Hi,

    I strongly recommend using the following document: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/jca on ep6 building portal applications.zip from the SDN

    It also holds the PAR file with the portalapp.xml with the shared reference.

    Best Regards,

    Ran

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.