SAP simulated Resource adapter

Hi Folks,
I don't have an access to a real SAP backend at this moment, Though a using a SAP R/3 Simulated adapter to test some use cases. I am not sure how do I create one.
Tried searching in this forum.
Can anybody help with a SAP simulated adapter snippet.
Thanks
Roger

Folks,
I solved this, For someone who is hitting hard his head on wall like me for this issue, here is the trick.
Choose simulated as the resource name from the resource list, which brings the resource wizard, put the name of the file where you want to write
the result xml file. Now on the next screen where you need to define the exact mapping, For my case I went to the orginal sap adapter and took the mapping
and given those same values and then save it. Bingo!
You have a brand new SAP simulated resource adapter.
I guess this is same for any simulated adapter, Just make sure to pull the orginal adapter mapping to this simulated one.
Cheers
Roger

Similar Messages

  • Access BAPIs Using the SAP Java Resource Adapter

    Hi experts,
    Can someone tell me how to Access BAPIs Using the SAP Java Resource Adapter?

    hi Shweta,
    Please refer the step by step procedure:
    1. Start the deploy tool of the SAP J2EE Application Server with the DeployTool.bat in the directory //<SAP J2EE Engine Installation Directory/.../j2ee/deploying.
    2. Choose Project &#8594; New Project and enter a name for the new project.
    3. Click on the Deployer tab.
    4. From the menu path, choose Deploy &#8594; EAR &#8594; Load Module and select the sapjra.rar file.
    5. For the newly created node sapjra.rar, choose Server Settings &#8594; Identity Subjects and select Caller Impersonation as authentication type, so that the J2EE user data is used to log on to the ABAP system.
    6. Make sure that the J2EE Application Server is running. Connect to the J2EE Application Server with Deploy &#8594; Connect.
    7. Deploy the sapjra.rar using the menu Deploy &#8594; Deployment &#8594; Deploy Module.
    8. Enter SAPJRADemo as application name and start the application.
    9. Close the deploy tool.
    10. Start the Visual Administrator again.
    11. Select the Cluster tab and switch to <Server Node> &#8594; Services &#8594; Connector Container.
    12. Click on the Runtime tab and choose sap.com/SAPJRADemo &#8594; eis/SAPJRADemoFactory.
    13. Choose Managed Connection Factory &#8594; Properties. On this page, you need to specify the logon data for the ABAP system. There is already some dummy data visible in the property list if no real system data has been specified so far.
    14. To change the value of a property, select the property in the list, change the value underneath it, and add the changes using the Add button. At the end, do not forget to save all changes by pressing the button Save Changes. The user configured for the SAP JRA must be the user authorized to read metadata of function modules.

  • Resource Adapter for Java EE 5 (JCA 1.5)

    Hello,
    are there Resource Adapter which are implemented in compliance with the Java EE 5 standard according to the Java Connectivity Architecture 1.5 which could be deployed on the AS of SAP NetWeaver CE 7.1? If yes where could I get this?
    Regards,
    Armin

    Hi Armin,
        SAP Java Resource Adapter (SAP JRA) 1.5 is implemented according  latest java connector specification. It is deployed by default on SAP NetWeaver CE 7.1 and  you can use it. Jndi name for out bound resource adapter is "eis/SAPJRAFactory".
    Best regards,
      Nikolai.

  • Resource Adapter ans Logging

    Does anyone know, how to let the server set a LogWriter for a resource adapter?
    What is the meaning of the <property> elements in sun-ra.xml?
    Thanks,
    Guido

    Hi Armin,
        SAP Java Resource Adapter (SAP JRA) 1.5 is implemented according  latest java connector specification. It is deployed by default on SAP NetWeaver CE 7.1 and  you can use it. Jndi name for out bound resource adapter is "eis/SAPJRAFactory".
    Best regards,
      Nikolai.

  • BAPI resource adapter

    Hi All,
    Did anybody worked on the BAPI resource adapter?
    If anybody is having any idea, please share your ideas or please tel where I can get the information about BAPI.
    I need to configure SAP R/3 using BAPI adapter.
    Thanks in advance

    Hi Armin,
        SAP Java Resource Adapter (SAP JRA) 1.5 is implemented according  latest java connector specification. It is deployed by default on SAP NetWeaver CE 7.1 and  you can use it. Jndi name for out bound resource adapter is "eis/SAPJRAFactory".
    Best regards,
      Nikolai.

  • RFC calls with SAP JCO and IBM resource adapter for SAP - basic tuning

    Hi experts,
    we are working on a java portal connected to a backend system SAP by calling RFCs.
    On our first integration tests, it appears to be quite slow fetching data from SAP by calling the remote functions from the custom portal. We are using SAP JCo 3.0.6 and IBM resource adapter for SAP 7.0.0.3 to integrate SAP with our portal.
    Is there any basic tuning to achieve to improve performances or any hint of where to tune in SAP ?
    Any help would be greatly appreciated.
    Thanks a lot,
    Jamal

    Hi Jamal,
    I understand you have already checked performance issues in the SAP Server. We had some problems with certain RFC calls and it turned out to be a badly developed ABAP sentence.
    I'd recommend you to use httpwatch or another tool to check the response times from the browser, so you can point accurately where the is.
    Regards
    Francisco

  • Strange Lookup Error (SAP Resource Adapter)

    Hi all,
    I received a quite stange error (Below you can see the relavent part of the logfile).
    While the first attempt to get the ConnectionFactory of the SAP JRA succeeds, the second one fails. As you can see,  context and parameters of the lookup are exactly the same. Does anybody has experiences with this problem?
    Thanks a lot
    Nadine
    <b>1st attempt</b>
    DEBUG SAPEngine_Application_Thread[impl:3]_18 com.xxx.ik.ejb.srouter.util.SystemRouterUtil - return jca
    name: java:comp/env/SAPJCA
    INFO SAPEngine_Application_Thread[impl:3]_18 com.xxx.ik.ejb.sap.generic.bo.SAPGenericBO - search for
    JCA Adapter: java:comp/env/SAPJCA
    DEBUG SAPEngine_Application_Thread[impl:3]_18 com.xxx.ik.ejb.sap.generic.bo.SAPGenericBO -
    connectionfactory: com.sap.mw.jco.jra.JRA$ConnectionFactoryImpl@1d4445d
    <b>2nd attempt</b>
    DEBUG SAPEngine_Application_Thread[impl:3]_1 com.xxx.ik.ejb.srouter.util.SystemRouterUtil - return jca
    name: java:comp/env/SAPJCA
    INFO SAPEngine_Application_Thread[impl:3]_1 com.xxx.ik.ejb.sap.generic.bo.SAPGenericBO - search for JCA Adapter: java:comp/env/SAPJCA
    ERROR SAPEngine_Application_Thread[impl:3]_1 com.xxx.ik.ejb.sap.generic.bo.SAPGenericBO -
    com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at java:comp, the whole lookup name is java:comp/env/SAPJCA.

    Hi Vladimir,
    First of all, thanks a lot for your answer.
    I'm sure the application was not restarted or redeployed (as only about one minute has passed between the two attempts). During the processing of our application, this resource adapter (and the class that calls it) is used two times.
    I searched the JNDI tree as you recommended and found:
    * ejbContexts [Context]
        * t-systems.com [Context]
          * Integrationkernel [Context]
            * sap [Context]
              * generic [Context]
                * SAPGenericEJB [Context]
                  * java:comp [Context]
                    ORB
                    HandleDelegate
                    UserTransaction
                    * env [Context]
                      SAPJCA
    As I am only migrating this application, I just had a deeper look into method calls.
    The application consists of a web app which calls ejbs. The EJBs in turn are just Wrapper for the so called BusinessObjects (Beans). In the first attempt the SAPGenericEJB calls the SAPGenericBO which does the lookup. In the second attempt, the SAPGenericBO is called directly from a workflow-engine. Could it be, that this causes the problem? If so, what can I do? Define the resource reference in the WF-Module too? Thanks...
    Nadine
    Message was edited by: Nadine Kress

  • Inqmy resource adapter for SAP with Bea Weblogic Server

              Hi everybody,
              Anybody have tried to use INQMY resource adapter for SAP with Bea weblogic server
              It works well with INQMY server, but with BEA I'm getting a lot of problems creating
              the connections.
              Thanks in advance.
              Xavi.
              

    All,
              Here are the steps we (used for internal testing) had to perform to get
              IN-Q-MY adapter for SAP to work with WebLogic:
              The wli.adapter.inqmy.sapr3.spi package contains extensions to the
              In-Q-My J2EE Connector Architecture classes to overcome some limitations
              in the base implementation classes. To get around these issues, we had
              to extend their R3ManagedConnectionFactory, R3ConnectionManager, and
              R3ConnectionFactory classes.
              * The javax.resource.spi.ManagedConnectionFactory implementation
              does not over-ride the equals and hashCode methods correctly. This
              causes problems with WLS 6.1.
              * There is a bug in their javax.resource.spi.ConnectionManager
              implementation for non-managed uses of the adapter. Consequently, their
              adapter cannot be used in a non-managed scenario.
              * The javax.resource.cci.ConnectionFactory class does not support
              the getConnection() method that does not take any arguments (it throws a
              null pointer exception).
              I am attaching the classes discussed above.
              Cheers,
              Chris
              Torsten Friebe wrote:
              > Hi,
              >
              > does anybody know where to get a trail version - if one exists - of IN-Q-MY
              > application server or the resource adapter?
              >
              > Thanks, regards
              > Torsten
              >
              > "Xavi" <[email protected]> schrieb im Newsbeitrag
              > news:[email protected]...
              >
              >>Hi everybody,
              >>
              >>Anybody have tried to use INQMY resource adapter for SAP with Bea weblogic
              >>
              > server
              >
              >>?
              >>
              >>It works well with INQMY server, but with BEA I'm getting a lot of
              >>
              > problems creating
              >
              >>the connections.
              >>
              >>Thanks in advance.
              >>Xavi.
              >>
              >>
              >
              >
              package wli.adapter.inqmy.sapr3.spi;
              import java.io.Serializable;
              import javax.resource.ResourceException;
              import javax.resource.cci.Connection;
              import javax.resource.cci.ConnectionSpec;
              import javax.resource.spi.ConnectionManager;
              import javax.resource.spi.ConnectionRequestInfo;
              import javax.resource.spi.ManagedConnection;
              import javax.resource.spi.ManagedConnectionFactory;
              import com.inqmy.r3adapter.R3ConnectionSpec;
              import com.inqmy.r3adapter.R3ManagedConnectionFactory;
              * Extends the In-Q-My implementation to allow for getConnection() with no
              * connection spec, i.e. use the default configured connection parameters.
              public class R3ConnectionFactory
              extends com.inqmy.r3adapter.R3ConnectionFactory
              implements com.bea.connector.IProxyMarker {
              private R3ConnectionSpec m_cspec;
              public R3ConnectionFactory(ConnectionManager cm, R3ManagedConnectionFactory mcf)
              throws ResourceException {
              super(cm, mcf);
              String strClientNumber = mcf.getClientNumber();
              if (strClientNumber == null) {
              throw new javax.resource.spi.IllegalStateException("ClientNumber not set for "+mcf);
              String strLanguage = mcf.getLanguage();
              if (strLanguage == null) {
              throw new javax.resource.spi.IllegalStateException("Language not set for "+mcf);
              String strUserName = mcf.getUserName();
              if (strUserName == null) {
              throw new javax.resource.spi.IllegalStateException("UserName not set for "+mcf);
              String strPassword = mcf.getPassword();
              if (strPassword == null) {
              throw new javax.resource.spi.IllegalStateException("Password not set for "+mcf);
              m_cspec = new R3ConnectionSpec(strClientNumber, strLanguage, strUserName, strPassword);
              public Connection getConnection(ConnectionSpec connectionSpec)
              throws ResourceException {
              if (connectionSpec == null) connectionSpec = m_cspec;
              return super.getConnection(connectionSpec);
              package wli.adapter.inqmy.sapr3.spi;
              import java.io.Serializable;
              import javax.resource.ResourceException;
              import javax.resource.spi.ConnectionManager;
              import javax.resource.spi.ConnectionRequestInfo;
              import javax.resource.spi.ManagedConnection;
              import javax.resource.spi.ManagedConnectionFactory;
              * Extends the In-Q-My implementation to over-ride the
              * allocateConnection method to return a CCI connection vs. a ManagedConnection
              public class R3DefaultConnectionManager
              implements ConnectionManager, Serializable {
              public R3DefaultConnectionManager() {}
              public Object
              allocateConnection(ManagedConnectionFactory mcf, ConnectionRequestInfo cri)
              throws ResourceException {
              ManagedConnection mc = mcf.createManagedConnection(null, cri);
              return mc.getConnection(null, cri);
              package wli.adapter.inqmy.sapr3.spi;
              import javax.resource.spi.ConnectionManager;
              import javax.resource.spi.ConnectionRequestInfo;
              import javax.resource.spi.ManagedConnection;
              import javax.security.auth.Subject;
              * Extends the In-Q-My implementation to get around some problems encountered
              * while running on WebLogic:
              * <ul>
              * <li>Must over-ride default implementation of equals and hashCode method</li>
              * <li>Needed to provide my version of the CCI ConnectionFactory</li>
              * <li>Needed to provide my version of the default ConnectionManager for the
              * non-managed scenario use case</li>
              * </ul>
              public class R3ManagedConnectionFactory
              extends com.inqmy.r3adapter.R3ManagedConnectionFactory {
              private int m_iHashCode;
              transient private com.inqmy.r3adapter.R3ConnectionRequestInfo t_cri = null;
              public R3ManagedConnectionFactory() {
              super();
              java.rmi.server.UID uid = new java.rmi.server.UID();
              m_iHashCode = uid.hashCode();
              public Object createConnectionFactory() {
              // need to install our own default connection manager because In-Q-My
              // version causes a ClassCastException in CCI ConnectionFactory
              // getConnection
              return createConnectionFactory(new R3DefaultConnectionManager());
              public ManagedConnection createManagedConnection(Subject subject, ConnectionRequestInfo cri)
              throws javax.resource.ResourceException {
              // need to check for null on the ConnectionRequestInfo object because the
              // In-Q-My R3ManagedConnection ctor does not check for null
              if (cri == null) cri = getDefaultConnectionRequestInfo();
              return new com.inqmy.r3adapter.R3ManagedConnection(this, subject, cri);
              public Object createConnectionFactory(ConnectionManager connectionManager) {
              // need to supply a connection factory that can deal with getConnection
              // that does not take a ConnectionSpec
              try {
              return new R3ConnectionFactory(connectionManager, this);      
              } catch (javax.resource.ResourceException re) {
              re.printStackTrace();
              throw new java.lang.IllegalStateException(re.getMessage());
              com.inqmy.r3adapter.R3ConnectionRequestInfo getDefaultConnectionRequestInfo()
              throws javax.resource.spi.IllegalStateException {
              if (t_cri == null) {
              String strClientNumber = this.getClientNumber();
              if (strClientNumber == null) {
              throw new javax.resource.spi.IllegalStateException("ClientNumber not set for "+this);
              String strLanguage = this.getLanguage();
              if (strLanguage == null) {
              throw new javax.resource.spi.IllegalStateException("Language not set for "+this);
              String strUserName = this.getUserName();
              if (strUserName == null) {
              throw new javax.resource.spi.IllegalStateException("UserName not set for "+this);
              String strPassword = this.getPassword();
              if (strPassword == null) {
              throw new javax.resource.spi.IllegalStateException("Password not set for "+this);
              t_cri = new com.inqmy.r3adapter.R3ConnectionRequestInfo(strClientNumber, strLanguage, strUserName, strPassword);
              return t_cri;
              public boolean equals(Object obj) {
              if (obj == null) return false;
              if (obj == this) return true;
              if (!this.getClass().isInstance(obj)) return false;
              R3ManagedConnectionFactory mcf = (R3ManagedConnectionFactory)obj;
              return compare(getClientNumber(), mcf.getClientNumber()) &&
              compare(getLanguage(), mcf.getLanguage()) &&
              compare(getUserName(), mcf.getUserName()) &&
              compare(getPassword(), mcf.getPassword()) &&
              compare(getServerName(), mcf.getServerName()) &&
              compare(getSystemNumber(), mcf.getSystemNumber());
              protected final boolean compare(final Object obj1, final Object obj2) {
              if (obj1 == obj2) return true;
              if (obj1 != null) {
              return obj1.equals(obj2);
              } else {
              if (obj2 == null) {
              return true;
              } else {
              return false;
              public int hashCode() { return m_iHashCode; }
              

  • SAP JRA in Adapter module

    We are developing an Adapter module for "File Sender Adapter" and in that we have a requirement to call an RFC. We are trying to use SAP JRA (Java Resource Adapter) for doing this as we do not want to hard code the password in the module by using direct JCO connections.
    Using JRA we are able to invoke RFC in our adapter module but the message payload does not go to the next module (Standard module) in the chain. We identified that as soon as we get the connection handle using statement:
           Connection connection = connectionfactory.getConnection();
    message is not going to next module in the chain. We are also not getting any error or exception anywhere. It is just that the message is not getting processed. Any help or idea would be appreciated.
    Regards

    Hi Amol
    I was not able to this today as I do not having authorization in our development system for exposing RFC as webservice and waiting for the authorization.
    I want to know if I expose the RFC as webservice in development server, will it be transported via normal ABAP transport procedure in the landscape (will this require any change in config etc.) or I need to expose it separately in different server.
    James

  • Java Resource Adapter

    Hi guys,
          Can any one send me good links on How to develop a Java resource adapter. Can we develop Java resource adapter in NDS?
    Regards,
    Gowtham K.

    Hi Gowtham
    Here you go,
    http://help.sap.com/saphelp_nw04/helpdata/en/61/1d88424466d665e10000000a155106/frameset.htm
    cheers
    Sameer

  • Commit error of resource adapter in Application Resources of nwa

    Hi All,
    I am trying to configure SAP RFC with MII Message Listener XMIIRFC02
    While i am updating(XMIIRFC01) SAP details in Resource Adapter of Application Resource in nwa(SAP NetWeaver )
    And when i click the save button its showing below error.
    "Saving Resource Adapter: XMIIRFC02 failed due to: Configuration changes for resource adapter not committed"
    And if i check the Log Details, its showing below exception
    Exception: 
    [EXCEPTION]
    com.sap.engine.services.connector.exceptions.ConnectorException: Connector remote administration exception.
    Any idea regarding this error
    Thanks in advance
    Kind Regards,
    Praveen Reddy M
    Edited by: praveen2425 on Feb 27, 2012 1:57 PM

    Hi Michael,
    Thanks for your responses,
    Its showing for all and here i am trying to update SAP details in the XMIIRFC02 properties of Resource Adapters
    @Sarathi
    I have checked all the things, even i have reentered all the SAP details but no luck
    Before doing all this i have done in SAP netweaver for XMIIRFC02 in below navigation
    Configuration Management --> Infrastructure --> Application Resources --> select Resource Adapter --> select XMIIRFC02 --> go to properties and update all the details of SAP
    Is this process can work and update the message listener XMIIRRC02 with SAP server and client
    And while i am clicking update button of message listener XMIIRFC02 from MII Menu Screen, Its showing popup error message 
    "Cannot update Configuration; JRA XMIIRFC02 must be configured in SAP NetWeaver Administrator before it is used"
    Thanks,
    Kind Regards,
    Praveen Reddy M
    Edited by: praveen2425 on Feb 29, 2012 7:48 AM

  • ClassCastException by using deployed resource adapter

    Dear community team,
    I try to create an connection for my web application (war file) running on SAP Web Application Server to access an enterprise information system (Apache JackRabbit) by using JCA and deployed resource adapter. The resource adapter "jackrabbit-jca-1.3.3.rar " is provided Apache Jackrabbit.
    http://jackrabbit.apache.org/downloads.cgi
    I changed some deployment descriptor configuration and deployed it successfully by using Deployment Tools. With the Visual Administrator I also could check the JNDI object and finded an entry in connector container.
    The JNDI lookup worked fine and it returned a object type "JCARepositoryHandle" (I could analyse its type and attributes in debugging modus).If I tried to cast the object "JCARepositoryHandle", I got an ClassCastException.
    Do you have any adoption why I only saw the returned object "JCARepositoryHandle" in debugging modus but it wasnt possible cast and to use it.
    If you need any more information, please let me know.
    Thanks for your support.
    PS: Please have also a look in the attached source an configuration files:
    Java servlet class
    ===================================================================
    Connection connection = null;
          Context initctx = null;
             try {
              //get the initial JNDI context
              Hashtable env = null;
              initctx = new InitialContext();
             // perform JNDI lookup to get the connection factory
             JCARepositoryHandle rep = (JCARepositoryHandle)initctx.lookup("deployedAdapters/jcr/Repository/shareable/jcr/Repository");
    connector-j2ee-engine.xml
    ===================================================================
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE connector-j2ee-engine SYSTEM 'connector-j2ee-engine.dtd'>
    <connector-j2ee-engine>
         <jndi-name>jcr/Repository</jndi-name>
         <pool-params>
              <max-connections-number>10</max-connections-number>
              <max-time-to-wait-connection>120</max-time-to-wait-connection>
              <expiration-control>
                   <connection-lifetime>900</connection-lifetime>
                   <run-cleanup-thread>300</run-cleanup-thread>
              </expiration-control>
         </pool-params>
    </connector-j2ee-engine>
    ra.xml
    ===================================================================
    <?xml version="1.0" encoding="UTF-8"?>
        <!DOCTYPE connector PUBLIC
            '-//Sun Microsystems, Inc.//DTD Connector 1.0//EN'
            'http://java.sun.com/dtd/connector_1_0.dtd'>
        <connector>
          <display-name>Jackrabbit JCR Adapter</display-name>
          <vendor-name>Apache.org</vendor-name>
          <spec-version>1.0</spec-version>
          <eis-type>JCR Adapter</eis-type>
          <version>1.6</version>
          <license>
            <description>Not required</description>
            <license-required>false</license-required>
          </license>
          <resourceadapter>
            <managedconnectionfactory-class>org.apache.jackrabbit.jca.JCAManagedConnectionFactory</managedconnectionfactory-class>
            <connectionfactory-interface>javax.jcr.Repository</connectionfactory-interface>
            <connectionfactory-impl-class>org.apache.jackrabbit.jca.JCARepositoryHandle</connectionfactory-impl-class>
            <connection-interface>javax.jcr.Session</connection-interface>
            <connection-impl-class>org.apache.jackrabbit.jca.JCASessionHandle</connection-impl-class>
            <transaction-support>XATransaction</transaction-support>
            <config-property>
              <config-property-name>HomeDir</config-property-name>
              <config-property-type>java.lang.String</config-property-type>
              <config-property-value>C:/temp/repository</config-property-value>
            </config-property>
            <config-property>
              <config-property-name>ConfigFile</config-property-name>
              <config-property-type>java.lang.String</config-property-type>
              <config-property-value>C:/temp/repository/repository.xml</config-property-value>
            </config-property>
            <reauthentication-support>false</reauthentication-support>     
          </resourceadapter>
        </connector>

    The reason for the ClassCastException was the class loader issue.

  • Remedy resource adapter very urgent

    Hi all,
    we recently did the idm upgrade 7.1 to 8.1.1.2. all the resource adapters are working fine. but, remedy resource adapter test connection is successful, the account is not creating. in the trace files. i am seeing this error. please some help me as soon as possible. that will be great for me. thanks in adavace.
    JAVA.LANG.NULLPOINTEREXCEPTION AT COM.WAVESET.ADAPTER.AGENTRESOURCEADAPTER.GETRESINFO(AGENTRESOURCEADAPTER.JAVA:1621) AT COM.WAVESET.ADAPTER.AGENTRESOURCEADAPTER.DOCREATEORUPDATEREQUEST(AGENTRESOURCEADAPTER.JAVA:1347) AT COM.WAVESET.ADAPTER.AGENTRES...
    Thanks,

    Hey,
    Answer is NO. If your not using proxies then you can't use XI adapter go for RFC adapter.
    Itz not a big deal jzu go through these
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/e80440a832e369e10000000a155106/content.htm
    File to RFC
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    <b>Cheers,
    *RAJ*
    *REWARD POINTS IF FOUND USEFULL*</b>

  • Sample JAVA code using Resource Adapter for RFC Connections

    Hi Java Knowledgeable Ones.
    I have successfully deployed the SAP Netweaver J2ee Engine "Resource Adapter for RFC Connections to ABAP Systems" to my Web Application Server.  Now I need to develop a JAVA application that would utilize this deployed resource adapter.  The resource adapter specifies the SAPClient, UserName, and password.  I am thinking that the JAVA code to invoke this connection would therefore not need to provide this information as it should be available in the resource adapter.
    Do you have sample code that you could send to me showing how to do this?
    Thanks,
    Kevin

    Hi Kevin,
    this is actually no good style! You should not open the connection with the adaptor knowing the password. Usually it should work via a connection that uses only basic rights  and the user has already authenticated and is using his security ticket.
    For security handling see:
    http://help.sap.com/saphelp_nw04/helpdata/en/61/f8bc3d52f39d33e10000000a11405a/frameset.htm
    Regards,
    Benny

  • Multiple EARs packaging the same resource adapter -- Weblogic Application S

    Hello,
    I had a question regarding JNDI and deploying multiple applications (EAR's) which package the same resource adapter running on Webloigc Application Server 9.1. I have an EAR file, ear1, which contains a resource adapter with connection factory with JNDI name say 'xyz' specified in the weblogic-ra.xml file. I have another EAR file, ear2, which again packages the same resource adapter with the same connection factory with JNDI name 'xyz'. Upon activating the 2nd EAR file, I get an exception 'javax.naming.NoPermissionException: A Resource Adapter may only be accessed from within the same application from which it was deployed.', as seen below:
    <May 8, 2006 10:29:27 AM PDT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating distribute task for application 'JMS2JMS_eInsightweblogic2'.>
    <May 8, 2006 10:29:27 AM PDT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: java.lang.AssertionError: Internal Error occurred, Assertion Failed: No Initial Context for Jndi: javax.naming.NoPermissionException: A Resource Adapter may only be accessed from within the same application from which it was deployed.
    at weblogic.connector.deploy.ConnectorModule.prepare(ConnectorModule.java:217)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:90)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:318)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:53)
    Truncated. see log file for complete stacktrace
    javax.naming.NoPermissionException: A Resource Adapter may only be accessed from within the same application from which it was deployed.
    at weblogic.connector.outbound.RAOutboundManager.getConnectionFactory(RAOutboundManager.java:721)
    at weblogic.connector.deploy.JNDIHandler.getConnectionFactory(JNDIHandler.java:1017)
    at weblogic.connector.deploy.JNDIHandler.lookupObject(JNDIHandler.java:871)
    at weblogic.connector.deploy.JNDIHandler.getObjectInstance(JNDIHandler.java:845)
    at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
    Truncated. see log file for complete stacktrace
    It seems like the 2nd EAR is trying to go across and lookup the connection factory from the 1st EAR. Does weblogic bind the RA's connection factory jndi name in the global jndi and is not specific to each EAR? Is there some flag or switch I can turn on to make the JNDI specific to each EAR?
    My weblogic deployment descriptor for the ra looks like the following:
    <weblogic-connector xmlns="http://www.bea.com/ns/weblogic/90"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.bea.com/ns/weblogic/90
    http://www.bea.com/ns/weblogic/90/weblogic-ra.xsd">
    <jndi-name>JMS2JMS_eInsightDeployment4_stcbpelra</jndi-name>
    <enable-access-outside-app>false</enable-access-outside-app>
    <enable-global-access-to-classes>false</enable-global-access-to-classes>
    <outbound-resource-adapter>
    <connection-definition-group>
    <connection-factory-interface>javax.resource.cci.ConnectionFactory</connection-factory-interface>
    <connection-instance>
              <b><jndi-name>BPELConnectionFactory</jndi-name></b>
              <connection-properties>
              <pool-params>
              <initial-capacity>0</initial-capacity>
              <max-capacity>10000</max-capacity>
              <capacity-increment>1</capacity-increment>
              <shrinking-enabled>true</shrinking-enabled>
              <shrink-frequency-seconds>60</shrink-frequency-seconds>
              <match-connections-supported>false</match-connections-supported>
              </pool-params>
              <properties>
                   <property>
                        <name>BPELConnectionFactory</name>
                        <value>BPELConnectionFactory</value>
                   </property>
              </properties>
              </connection-properties>
         </connection-instance>
    </connection-definition-group>
    </outbound-resource-adapter>
    </weblogic-connector>

    Thanks for the reply... in my case this would be done by the active synch process so no GUI form is required. I will be getting a list of application ID for the user by LDAP AS. One i get it i will have to parse it and get the list of application user id. I am passing those ID;s to a workflow where I am forming the resource name as you mentioned
    for example:
    If i get user1#user2#user3 from AS i am separating them based on # using split and getting 3 different user id;s
    now i am forming a string with the resource name and passing it to the sub process in which i am checking out the user object, setting the user attributes and checking in the new view.
    user1#LDAP
    user2#LDAP|1
    user3#LDAP|2
    Problem ; When i run this user1 is getting created in LDAP but user2 and user3 are not. There entry is getting created in IDM.
    When I open the IDM object I get a yellow triangle (warning) and if I open the user object and hit save button IDM creates the user account on the LDAP.
    any help for further solving this problem would be appreciated.
    Regards,

Maybe you are looking for

  • PDF file VIEW & PRINT differences: Preview 4.2 & Acrobat 9.3

    My original two-page OpenOffice document (.odt file extension) exported to PDF file format (.pdf file extension). I used Acrobat 9.3 to force the document to display both pages as continuous facing - so far, so good. I've found two issues - neither o

  • Cannot run FF due to Application security component. What is it?

    During download of FF 4.0, saw this block: "Could not initialize the application's security component. The most likely cause is problems with files in your application's profile directory. Please check that this directory has no read/write restrictio

  • PS6b1: "The GPU Sniffer Crashed" Win7 X64

    PS CS6B1 reports "Photoshop detected an error in your display drive" and disables GPU settings when running on Win7 x64 system with Asus EAH 6970 (AMD Radeon 6970) graphics card.  I verfied that the latest Asus/AMD drivers are installed and working p

  • Intercompany sales third party FI entries

    Hello all, Can somone please tell me how do the FI enteris flow in case of Intercompany third party sales. Here Customer XYZ places order on company code 1000 and then comany code 1000 order company code 2000 to directly deliver this material to the

  • Extracting JPEG preview image from DNG file

    My company is using the DNG SDK to support raw or DNG files for users of our digital asset management software. We extract a jpeg preview/thumbnail from ALL file types we support. My question is: how can we extract a jpeg preview from a DNG file, usi