Connector Framework with IPortalComponentRequest

Hi,
I am using the following code to connect to BE system:
               IConnection connection = null;
               IConnectorGatewayService service = (IConnectorGatewayService) PortalRuntime.getRuntimeResources().getService(IConnectorGatewayService.KEY);
               ConnectionProperties props = new ConnectionProperties(request.getLocale(),request.getUser());
               String destination = Util.getBESystemID(request);
               connection = service.getConnection(destination, props);
I am getting ConnectorException in the function service.getConnection(destination, props)
I am using 'Administrator' as portal user and 'nra' as BE system user and have no BE problems while getting the data from BE using JCo Client Service.
Please let me know what the problem might be?
This is first time im using connector service. I am coding for migrating to connector framework from Jco client service.
Thanks for your help in advance.
Regards
Ramesh.

Hi Ramesh,
Using <i>JCA</i> has nothing to do with <i>JCO destinations</i>.
It's a different way to connect.
When you create an RFC Model in Web-Dynpro you use <i>JCO destinations</i>.
When you program with <i>JCA</i> you use the definitions of the system you defined in
System Admimistration -> System Configuration -> System Landscape.
When opening this system, one of the options is 'Test Connection'.
Hope that helps,
Yoav.

Similar Messages

  • Issue with - Connector Framework  SAP EP 7.0

    HI
    Need assitance on usage of connector framework to connect to SAP R/3 using SSO.
    I am trying to call a BAPI from a jsp iView using sap connector framework.
    Release :  EP (SAP NetWeaver 7.0 (2004s) SPS 12).
    Steps I did so far :
    1. imported following jars in my project :
    a. activation.jar
    b. connector.jar
    c. GenericConnector.jar
    d. jaas.jar
    e. jta.jar
    f. portal_services_api_lib.jar
    2. declared import of class:
    <%@ page import = "com.sapportals.portal.ivs.cg.*" %>
    <%@ page import = "com.sapportals.connector.connection.IConnection" %>
    <%@ page import = "com.sapportals.connector.execution.structures.*" %>
    <%@ page import = "com.sapportals.connector.execution.functions.IInteraction" %>
    <%@ page import = "com.sapportals.connector.execution.functions.IInteractionSpec" %>
    3. appended portalapp.xml with :
      <application-config>
        <property name="SharingReference" value=",com.sap.portal.htmlb,com.sap.portal.pagebuilder,com.sap.portal.themes.lafservice,com.sap.portal.navigation.service,com.sap.portal.navigation.helperservice,com.sap.portal.license.runtime,com.sap.portal.common.commonservices,SAPJ2EE::library:com.sap.portal.common,com.sap.portal.ivs.connectorservice"/>
      </application-config>
    4. added following code :
         IConnectorGatewayService cgService = (IConnectorGatewayService) PortalRuntime.getRuntimeResources().getService(IConnectorGatewayService.KEY);
         IConnection connection = cgService.getConnection("ABC", request);
    <b>     IInteraction ix = connection.createInteractionEx();</b>
    5. Verfied connectivity of system alias ABC with connetion test from portal.
    When I test the repective iview after deployment it fails on the bold line with an error 'unable to deploy jsp'. I could verify that cgService and connection objects were initialized.
    Will appreciate expert comments/suggestions on the issue.
    Thanks and cheers,
    Amit.

    Hi,
    When you select that property, you get a value field in the bottom of the screen to enter the Cutom values.
    You can give the value there and click on the Set button.
    Also check the dbpool properties for this error code.
    Regards,
    Venkat

  • Connecting EP7.0 to iSeries backend system using the connector framework

    Hello All,
    We are trying to setup a backend connection in EP7.0 to an AS/400 Legacy database using the JDBC Connector framework.
    We use the driver and url syntax from OSS note 773401 "Configuring Portal JDBC System connection properties"
    Driver:
    com.sap.portals.jdbc.db2.DB2Driver
    URL: jdbc:sap:db2://<server>:<port>;DatabaseName=<database_name>
    When performing a connection check using the Support Platform, we can see on the legacy system that the connection is being established but for some reason the Portal doesn't get a confirmation and runs in to an endless loop...
    Does anyone have a experience with such a connection?
    Can we use the standard db2 driver class as mentioned in note 773401 or do we need to create/deploy our own?
    Thanks in advance
    Ron

    Hello All,
    We are trying to setup a backend connection in EP7.0 to an AS/400 Legacy database using the JDBC Connector framework.
    We use the driver and url syntax from OSS note 773401 "Configuring Portal JDBC System connection properties"
    Driver:
    com.sap.portals.jdbc.db2.DB2Driver
    URL: jdbc:sap:db2://<server>:<port>;DatabaseName=<database_name>
    When performing a connection check using the Support Platform, we can see on the legacy system that the connection is being established but for some reason the Portal doesn't get a confirmation and runs in to an endless loop...
    Does anyone have a experience with such a connection?
    Can we use the standard db2 driver class as mentioned in note 773401 or do we need to create/deploy our own?
    Thanks in advance
    Ron

  • JCO or SAP Connector Framework

    Hello
    I have seen in these links that JCO is deprecated:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/40/003c41325fa831e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/89/8a185c148e4f6582560a8d809210b4/content.htm
    Developers are supposed to use SAP Connector Framework, but it seems that this is a Framework only useful from a Portal Application. What I want to do is to invoke RFCs in a R3 System from a webapp using struts. I have done this using JCO.
    Should I implement it using another solution?
    Thanks in advance

    Hi Marcos,
    You can, of course, use SAP JCO in simple Java Project by importing needed Jars.
    I provide you a sample of connection class with method that you can use for calling a function.
    You can use method "showFunctionParameters()" to test your connection...
    regards
    package echoFunction;
    import java.io.IOException;
    import java.util.Properties;
    import javax.swing.JOptionPane;
    import com.sap.mw.jco.IFunctionTemplate;
    import com.sap.mw.jco.JCO;
    public class JcoConnection {
         private final String REPO_NAME = "REPO_01";
         private JCO.Repository repository;
         private JCO.Function function;
         private JCO.Client connection;
         private JCO.ParameterList paramImport;
         private JCO.ParameterList paramExport;
         private JCO.ParameterList paramTables;
         public JcoConnection() {
              // constructor
         public void connect(String sapClient, String userId, String passWord,
                   String language, String server, String systemNumber) {
              connection = JCO.createClient(sapClient, userId, passWord, language,
                        server, systemNumber);
              connection.connect();
              repository = new JCO.Repository(REPO_NAME, connection);
         public void connect(Properties properties) {
              connection = JCO.createClient(properties);
              connection.connect();
              repository = new JCO.Repository(REPO_NAME, connection);
         public void disConnect() {
              connection.disconnect();
         public void useFunction(String functionName) {
              IFunctionTemplate ift = repository.getFunctionTemplate(functionName
                        .toUpperCase());
              function = new JCO.Function(ift);
              paramImport = function.getImportParameterList();
              paramExport = function.getExportParameterList();
              paramTables = function.getTableParameterList();
         public void execute() throws JCO.AbapException {
              connection.execute(function);
         public void setInputValue(String paramName, String valueInput) {
              paramImport.setValue(valueInput, paramName);
         public String toString() {
              return connection.getAttributes().toString();
         public static void main(String[] args) {
              JcoConnection sapConn = new JcoConnection();
              try {
                   sapConn.connect(Utilities.loadPropertyFile("logon.properties"));
                   sapConn.useFunction("STFC_CONNECTION");
                   sapConn.setInputValue("REQUTEXT", "Echo text");
                   sapConn.execute();
              } catch (IOException ex) {
                   ex.printStackTrace();
              } catch (Exception ex) {
                   ex.printStackTrace();
              sapConn.disConnect();
              JOptionPane.showMessageDialog(null, sapConn.showFunctionParameters());
         public String showFunctionParameters() {
              String paramText = "";
              paramText = "ECHOTEXT: t";
              paramText += function.getExportParameterList().getString("ECHOTEXT")
                        + "n";
              paramText += "RESPTEXT: t";
              paramText += function.getExportParameterList().getString("RESPTEXT");
              return paramText;
    package echoFunction;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.util.Properties;
    public class Utilities {
         public static Properties loadPropertyFile(String filePath)
                   throws IOException {
              Properties properties = new Properties();
              properties.load(new FileInputStream(filePath));
              return properties;

  • Oracle Management Connector Framework

    Hi,
    I'm following a guide on using the Oracle Management Connector Framework to access information within OEM. I've installed OEM 10.2.0.3 and it is running fine. However i do not have the connecotr framework installed yet.
    The guide i am following says:
    "Download the Connector Framework installable files from OTN by clicking
    Downloads, then Enterprise Manager."
    But after going to the OTN site and following the links it takes me to the download for OEM again. Does anyone know where i can get the connector framework from?
    Many thanks,
    Lewis.

    OK. The framework comes with the EM Download or CD. So what you need is how to install or access it.
    See "Installing the Connector Framework" in this document
    Release 3
    http://download.oracle.com/docs/cd/B16240_01/doc/em.102/b32521/toc.htm
    http://download.oracle.com/docs/cd/B16240_01/doc/relnotes.102/b31145/toc.htm
    Release 2
    http://download-uk.oracle.com/docs/cd/B16240_01/doc/em.102/b32521/toc.htm
    http://download-uk.oracle.com/docs/cd/B16240_01/doc/relnotes.102/b31145/toc.htm

  • Can I use Text Layout Framework with Flex 3 SDK?

    Greetings,
    I have to develop a complex custom widget, with custom text wrapping behaviour. Text Layout framework seem to offer fine level of control, but we are trying to keep our project in Flash player 9, and therefore we are using Flex 3 sdk.
    Can I use the framework with flex sdk 3 and therefore flash player 9?
    Best Regards
    Seref

    For that you need to install flex sdk 3.5 framework and choose your defauls framework to flex 3.5 it will work and as well instal flash player 10

  • 3rd gen 40g dock connector touchwheel with 4 buttons above wheel

    i have old 3rd gen 40g dock connector touchwheel with 4 buttons above wheel. does not have firewire port on top , just hold switch and funky headphone jack for wired remote control . battery has long since died but still runs fine off wall current charger which has fire wire connector on wall socket end. i try to plug ipod into my laptop with usb cable to charge and update the ipod and i get the battery sign with exclamation mark in triangle on ipod screen and computer doesnt charge or recognize the ipod connected. my laptop does not have firewire port. is there a way that i can connect this old ipod to new laptop to charge and or update ipod with my new library? i dont care if battery is dead , i just leave on wall current in my office to play but would love to be able to update the library on the old boy. i have new shuffle/nano and itouch for traveling.

    an update - it seems to be the 2 skip buttons, play and menu, and also the centre ok button not working at all. the wheel responds slowly. something just occured to me and i tried to use the remote which came with my ipod. this works fine with no problems but is annoying as i can't select certain songs, i have to start at the beginning and skip to where i want to get.
    please help

  • Needed classes for sap connector framework

    Hello,
    when i installed sap netweaver developer studio 2.0.5 i become all needed classes for sap connector framework?
    Or i have to install the pdk? What are in the pdk for developer studio because the needed wizards are there (portal, sap connector ...)
    Thanks,
    Frank

    Torben, try to use class finder plugin as described here /people/maksim.rashchynski/blog/2006/08/14/the-story-about-how-2-eclipse-plugins-helped-me-to-make-a-lot-of-points-on-sdn-forum
    To save you some time:
    C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\tcconnconnectorframework\*.jar
    C:\usr\sap\J2E\JC00\j2ee\cluster\server0\apps\sap.com\com.sapportals.connectors.sap\connector\connectors\SAPCFConnector.rar\SAPCFConnector.jar

  • AIR Update framework with Flash Builder

    Hi,
    I am not sure if this is the right place but since this problem happens with the new Flash Builder 4 and AIR, I am putting it here :
    When I run the Air update framework with the new flash builder , i get this exception when I call appUpdater.initialize() in the same given in http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&product Id=4&postId=9543
    The error is
    TypeError: Error #1007: Instantiation attempted on a non-constructor.
        at mx.controls::ProgressBar/createChildren()
        at mx.core::UIComponent/initialize()[E:\dev\beta1\frameworks\projects\framework\sr c\mx\core\UIComponent.as:6510]
        at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\UIComponent.as:6402]
        at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\beta1\frameworks\projects\framework\src\mx\core\Container.as:3879]
        at mx.core::Container/addChildAt()[E:\dev\beta1\frameworks\projects\framework\src\ mx\core\Container.as:2541]
        at mx.core::Container/addChild()[E:\dev\beta1\frameworks\projects\framework\src\mx \core\Container.as:2459]
        at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_ApplicationUpdaterVBox10_c ()
        at mx.core::DeferredInstanceFromFunction/getInstance()[E:\dev\beta1\frameworks\pro jects\framework\src\mx\core\DeferredInstanceFromFunction.as:105]
        at mx.states::AddChild/createInstance()
        at mx.states::AddChild/set targetFactory()
        at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_AddChild8_i()
        at ApplicationUpdaterDialogs/_ApplicationUpdaterDialogs_State7_c()
        at ApplicationUpdaterDialogs()
        at _ApplicationUpdaterDialogs_mx_managers_SystemManager/create()
        at mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\beta1\frameworks\p rojects\framework\src\mx\managers\SystemManager.as:3581]
        at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()[E:\dev\beta1\frameworks\projects\framework\src\mx\managers\SystemManager.as:3 400]
        at mx.managers::SystemManager/docFrameListener()[E:\dev\beta1\frameworks\projects\ framework\src\mx\managers\SystemManager.as:3258]
    The code is the exact same give in the example i mentioned above.
     This works fine in my Flex Builder 3. 
    Thanks
    Hironmay Basu

    the issue is already reported here:
    http://bugs.adobe.com/jira/browse/SDK-22886?page=com.atlassian.jira.plugin.system.issuetab panels:all-tabpanel
    As a workaround, you can try using:
    http://www.websector.de/blog/2009/09/09/custom-applicationupdaterui-for-using-air-updater- framework-in-flex-4/

  • Using Entity Framework with SQL Azure - Reliability

    (This is a cross post from http://stackoverflow.com/questions/5860510/using-entity-framework-with-sql-azure-reliability since I have yet to receive any replies there)
    I'm writing an application for Windows Azure. I'm using Entity Framework to access SQL Azure. Due to throttling and other mechanisms in SQL Azure, I need to make sure that my code performs retries if an SQL statement has failed. I'm trying to come up with
    a solid method to do this.
    (In the code below, ObjectSet returns my EFContext.CreateObjectSet())
    Let's say I have a function like this:
      public Product GetProductFromDB(int productID)
         return ObjectSet.Where(item => item.Id = productID).SingleOrDefault();
    Now, this function performs no retries and will fail sooner or later in SQL Azure. A naive workaround would be to do something like this:
      public Product GetProductFromDB(int productID)
         for (int i = 0; i < 3; i++)
            try
               return ObjectSet.Where(item => item.Id = productID).SingleOrDefault();
            catch
    Of course, this has several drawbacks. I will retry regardless of SQL failure (retry is waste of time if it's a primary key violation for instance), I will retry immediately without any pause and so on.
    My next step was to start using the Transient Fault Handling library from Microsoft. It contains RetryPolicy which allows me to separate the retry logic from the actual querying code:
      public Product GetProductFromDB(int productID)
         var retryPolicy = new RetryPolicy<SqlAzureTransientErrorDetectionStrategy>(5);
         var result = _retryPolicy.ExecuteAction(() =>
               return ObjectSet.Where(item => item.Id = productID).SingleOrDefault;
         return result;
    The latest solution above is described as ahttp://blogs.msdn.com/b/appfabriccat/archive/2010/10/28/best-practices-for-handling-transient-conditions-in-sql-azure-client-applications.aspx Best Practices for Handling Transient Conditions in SQL Azure Client
    Application (Advanced Usage Patterns section).
    While this is a step forward, I still have to remember to use the RetryPolicy class whenever I want to access the database via Entity Framework. In a team of several persons, this is a thing which is easy to miss. Also, the code above is a bit messy in my
    opinion.
    What I would like is a way to enforce that retries are always used, all the time. The Transient Fault Handling library contains a class called ReliableSQLConnection but I can't find a way to use this with Entity Framework.
    Any good suggestions to this issue?

    Maybe some usefull posts
    http://blogs.msdn.com/b/appfabriccat/archive/2010/12/11/sql-azure-and-entity-framework-connection-fault-handling.aspx
    http://geekswithblogs.net/iupdateable/archive/2009/11/23/sql-azure-and-entity-framework-sessions-from-pdc-2009.aspx

  • How to install Connector framework in WAS (j2ee)??

    I am connecting to mdm server through NWDS (ejb /dynpro) using connector framwork
    But i could not refer the package com.sapportals.connector.connection and sub sequent interfaces in that.
    I am basically dynpro guy and dont know how to use this connector framework.
    Please help in step by step installation of this for dev and runtime.
    thanks in advance.
    Hari.

    Hi
      To implement the connector framework, you should include the following jar files in your project, they are:
    <b>portal_services_api_lib.jar
    com.sap.portal.ivs.connectorservice_api.jar
    GenericConnector.jar</b>
    For the above jar files, check it under your NWDS IDE plugins folder
    (OR)
    If you have the Portal Development Kit installed on your portal server, you can find
    this library in Java Development --> Downloads --> Portal Libraries --> libraries.zip.
    Otherwise, look in:
    http://<server>:<port>/irj/servlet/prt/portal/prtroot/com.sap.
    portal.support.browse.default,
    and then follow this path:
    ROOT/WEBINF/
    portal/portalapps/com.sap.portal.ivs.connectorservice/lib
    Click the download link to download a zip file which contains this jar.
    Regards,
    Venkatesh. K

  • Wanted 'Using Sap Adapter for Connector Framework' document

    dear friends
    I want to display ABAP reports in iView without Transaction iView.
    From the below forum link
    /community [original link is broken]
    i came to know i can get the help from 'Using Sap Adapter for Connector Framework' document, but the link is giving
    404
    The requested resource is not available.
    can anybody help me to find out the document
    thanx in advance
    please reply me at the earliest.
    kantha

    have a look here - should help:
    http://help.sap.com/saphelp_nw04s/helpdata/en/f2/db49421c0b3c54e10000000a1550b0/frameset.htm
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/f2/db49421c0b3c54e10000000a1550b0/frameset.htm">sap help portal</a>
    you may also download PDK, there are some samples in it.
    Best Oliver

  • Must I use spring Framework with JSF2 and Hibernate?

    Hi all,
    I'm starting to develop a web portal and I would use JSF2 and Hibernate.
    Now I don't know JSF2 so I searched some tutorial.
    I found a tutorial on JSF2 that seems very complete but in this tutorial I found a section where the author use Hibernate for the "model section", JSF2 for the "view section" and Spring for the "controller section"!
    Now I have a doubt, can I develop a web portal without Spring MVC or I can't develop any controller's component with JSF2?
    Thank you for your replies!

    For Ram, do you mean that JSF2 isn't a MVC framework with your reply?
    For Kayaman, the author did some examples how implements some frameworks with JSF2 and he do 3 examples:
    1) JSF2 and JDBC;
    2) JSF2 and Spring;
    3) JSF2, Spring and Hibernate!
    However, after this thread, I found a forum in linked to the tutorial and I asked why they use JSF2 and Spring together! Now Im waiting the answer!
    For Gimbla2: well, I'm novice on JSF2 but I develop for some years with ADF and JBO framework!
    You are right to tell me "On the official sites you can find all informations" but I would know some things from some one that used both frameworks!
    Thanks again to all.
    Edited by: Filippo Tenaglia on 20-giu-2011 14.16

  • Integration of exception framework with the JAZN repository????

    hi all,
    I am using soa 10.1.3.3.1. FaultMangement Framework. Here we are having one option to edit the payload in human intervention.
    my quetion is can we Integratage the exception framework with the JAZN repository to control access for Human Intervention policy,
    i mean to say, whenever enduser is found with fault payload, the enduser must able to edit it and continue form that poin of time..., but here only oc4jadmin or bpeladmin can controll the access of human intervention .....
    is there any way to give this privilages to some specified users????
    any help can be greatly appritiated...... thanks in advance.

    Hi,
    Thanks for your responce.
    yes, you are right, we can achieve that by a new user JAZN and assign a role "BPMSSystemAdmin". But by doing so, we are giving the total control to the user. he can edit the data for the other instances also. i don't want to happen that.
    my requirement is , the end user just able to edit the data and can continue, and also if he is not responded in the stipulated time auto esclation to the admin. he should not have privilage to chage the rule or edit the payload for other instances....
    can it be possible?
    please help me..,
    if there is no such option, please tell me the ulternate way to achive this requirement...

  • SAP Connector Framework Libraries

    I want to develop a Portal Component that uses the SAP Connector Framework. I installed the Eclipse Plugin und downloaded the libraries.zip from the EP. I can't find some libraries: GenericConnector.JAR and Connector.JAR
    Could anybody tell me where to find these libraries?

    Hi,
    you can find the two jar files within your portal installation:
    GenericConnector.JAR under ...\<SID>\j2ee\cluster\server0\bin\ext\com.sap.genericconnector
    and the connector.jar file under
    ...\<SID>\j2ee\j2eeclient
    Best regards,
    Marion

Maybe you are looking for

  • Possible to view quicktime in full screen on external monitor?

    Hey All! Im wondering if there is any way to view quicktime movies in full screen (or use front row for that matter) on an external desktop set up us as an extended desktop (as opposed to mirror). This seems like quite a dumb thing to not be able to

  • Sales Opportunity number field

    In Open Items report (Sales Orders) is it possible to have column displaying Sales opportunity number that the sales order was created from? I have looked through form settings but cannot find this field?

  • Sharepoint 2010 question : Error while deploying wsp file in using managment shell (power script)

    When I tried to deploy the wsp's using managment shell (power shell scripts) everything looks good. When I go and take a look the "manage farm solutions" thru sharepoint central admin, I see the deployment failed in two servers. Error is Could not lo

  • TS4002 my email won't let me in

    i cannot get into my email and ive tried it all

  • Photo problem display

    Anyone here encountered any problem uploading photos in your Nano? Mine, after uploading the photos it did not displayed properly. It looks/shows like negative film. I tried to sync it to my pc w/o Itunes (10) and was able to view the photos correctl