1 Reply Latest reply on Jun 24, 2004 8:30 AM by fhefter

    SAPJCA Example

    fhefter Newbie


      could someone make a short guide how to set up SAPJRA with JBOSS?

      I found so many wrong examples and nothing worked well.
      Currently I have trouble to see the "eis/SAPJRA" JNDI entry from within a bean.
      I think the setup of the *.rar file of SAP has not been completed or does not suite well for JBoss.

      Also the example on the doc folder of JBoss 3.2.4 has mistakes.

      I will start this trial here with a, for my opinion, errorfree sapr3-ds.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <!-- ==================================================================== -->
      <!-- ConnectionManager setup for SAP R3 -->
      <!-- Author: David Jencks (d_jencks@users.sourceforge.net) -->
      <!-- Author: Chris Pinfold (chrisp@yambay.com) -->
      <!-- Author: Juraj Lenharcik (nort@nort.de) ;-) -->
      <!-- Author: Frank Hefter (java@frankhefter.de) -->
      <!-- ==================================================================== -->
      Required Properties (All properties are of type String if not other defined):
      Properties (SAPClient, UserName, Password, Language) should be always defined.
      Additionally either (ServerName, PortNumber) or (MessageServer, SystemID, Group) or (SharedMemory, ProfileName) should be defined.
      These default-values used internally by Resource Adapter.
      Properties (UserName, Password, Language) will be overridden when creating the actual connection if UserManagement mantained and
      your application uses Container managed authentication.
      a) connection to single App. Server: SAPClient=000, UserName=tester, Password=***,ServerName=us7400,PortNumber=01.
      b) connection to cluster: SAPClient=000, UserName=tester, Password=***, MessageServer=b20main.wdf.sap-ag.de, SystemID=B20, Group=PUBLIC.
      c) connection to the R/3 which placed with SAP J2EE Engine on the same machine (only for WebAS 620/630 non-standalone installations):
      SharedMemory=true, ProfileName=D:\\usr\\sap\\C11\\SYS\\profile\\C11_JC00_pwdf0700, where SharedMemory of type Boolean.
      ... for more see files in rar / startup comments
      <config-property name="SAPClient" type="java.lang.String">100</config-property>
      <config-property name="UserName" type="java.lang.String">MyName</config-property>
      <config-property name="Password" type="java.lang.String">MyPassword</config-property>
      <config-property name="Language" type="java.lang.String">EN</config-property>
      <config-property name="ServerName" type="java.lang.String">server100.company.com</config-property>
      <config-property name="PortNumber" type="java.lang.String">3364</config-property>
      <!-- <config-property name="GatewayServerName" type="java.lang.String">a</config-property>
      <config-property name="GatewayServiceNumber" type="java.lang.String">sapgw62</config-property>
      <config-property name="MessageServerName" type="java.lang.String">a</config-property>
      <config-property name="SystemName" type="java.lang.String">a</config-property>
      <config-property name="GroupName" type="java.lang.String">a</config-property> -->

        • 1. Re: SAPJCA Example
          fhefter Newbie

          Hi again!

          Don't I need a mbean entry in the *-ds.xml?
          If so, when and when not?

          I wrote a stateless bean to test this SAPJRA.

          Why can't I lookup the bean even when I see it in JNDIView.list() under "Ejb Module:"?
          java:comp namespace of the R3StatusBean bean:
          +- env (class: org.jnp.interfaces.NamingContext)
          | +- eis (class: org.jnp.interfaces.NamingContext)
          | | +- SAPJRA[link -> R3StatusBeanLocal] (class: javax.naming.LinkRef)

          Any help would be appreciated,