Multiple Toplink Mapping files

Hi All,
I have 8 modules in my project, I would like to maintain separate toplink mapping file and persistence-config.xml file for each module.
Ex: in struts we can have separate struts-config.xml file for each module like  struts-admin-config.xml, struts-moderator-config.xml, struts-dashboard-config.xml files and we will configure those information in web.xml file for Actionservlet input params.
Is it possible to have multiple toplink mapping files and persistence configuration files for each module in a project.
Thanks & Regards,
B.V.Suresh Babu.

Thanks a lot for your direction!
I am using xtreme framework alongwith Toplink. I use codegen tool to generate extreme BOM (business object model) classes. I an unable to introduce my logic as you suggested to use Direct Mapping.
I am not able to find more details and/or complete example to use any of your suggested approach. Please do send me any stuff you can send for the same.
Regards,
Raghav

Similar Messages

  • Composite Key in Toplink Mapping File - equivalent to Hibernate?

    Hi,
    I have a POJO TestEntity which refers to primary key TestEntityKey. In Hibernate mapping hbm file, we define the entry as:
              <composite-id name="id" class="TestEntityKey">
                   <key-property name ="testEntityCode" column = "TEST_ENT_CODE" type = "string" />
              </composite-id>
    Please confirm how to create the composite id in Toplink means kindly help that how to map my id to key:
    <opm:primary-key>
         <opm:attribute-name>id</opm:attribute-name>
    <opm:field table="TEST_ENTITY_B" name="TEST_ENT_CODE" xsi:type="opm:column"/>
    </opm:primary-key>
    Thanks!

    Hey.. Thanks!
    I am clear about the concept about defining annotation based composite key. Also, I read in the documentation that I'll be needing to define as direct, aggregate or one-to-one. But, I am not able to define and run the same in the project mapping xml of toplink.
    It would be great if you can share some sample code for defining the same. For e.g. in my mentioned example, there is TestEntity POJO having 'id' as the attribute which gets populated with the testEntityCode of the TestEntityKey POJO. Please suggest the same for the same:
    <opm:primary-key>
    <opm:attribute-name>id</opm:attribute-name>
    <opm:field table="TEST_ENTITY_B" name="TEST_ENT_CODE" xsi:type="opm:column"/>
    </opm:primary-key>
    Thanks!

  • NullPointerException during export or validate of toplink map file

    Hi,
    I'm working on an Oracle/Toplink 10.1.3 project (similar to say SR Demo). I'm trying to write ant scripts
    to build and deploy everything.
    All is working except for one step. When you build the model in JDeveloper, it creates a data map XML file. E.g. in the
    SR DEmo it produces SRMap.xml from SRMap.mwp.
    There is a good document explaining the steps here...
    http://www.oracle.com/technology/products/ias/toplink/doc/1013/main/_html/mw008.htm
    When I implemented these steps in the build.xml file, I get a NullPointerException during the validate or export.
    I tried implementing the steps in SR DEmo's build.xml file and seem to get the same problem. Here's what I'm doing...
    I created a new file, toplink-ant-lib.xml
    <?xml version="1.0"?>
    <antlib>
    <taskdef name="mappings.export" classname="oracle.toplink.workbench.ant.taskdefs.ExportDeploymentXMLTask"/>
    <taskdef name="mappings.validate" classname="oracle.toplink.workbench.ant.taskdefs.MappingsValidateTask"/>
    <taskdef name="session.validate" classname="oracle.toplink.workbench.ant.taskdefs.SessionValidateTask"/>
    <typedef name="ignoreerror" classname="oracle.toplink.workbench.ant.typedefs.IgnoreError"/>
    <typedef name="ignoreerrorset" classname="oracle.toplink.workbench.ant.typedefs.IgnoreErrorSet"/>
    <typedef name="loginspec" classname="oracle.toplink.workbench.ant.typedefs.LoginSpec"/>
    </antlib>
    I then added the following targets to build.xml in the SR Demo...
    <target name="init">
    <property file="build.properties"/>
    <property name = "toplink.mwp.dir" value = "${srdemo.home}/DataModel/toplink/SRMap"/>
    <property name = "toplink.sessions.dir" value = "${srdemo.home}/DataModel/src/META-INF"/>
    <path id = "database.classpath">
    <pathelement path = "${toplink.home}/jlib/dms.jar"/>
    <pathelement path = "${toplink.home}/jlib/OracleThinJDBC.jar"/>
    </path>
    <path id = "toplink.classpath">
    <pathelement path = "${toplink.home}/jlib/toplink.jar"/>
    <pathelement path = "${j2ee.lib}/ejb.jar"/>
    <pathelement path = "${jdeveloper.home}/lib/xmlparserv2.jar"/>
    <pathelement path = "${toplink.home}/jlib/antlr.jar"/>
    </path>
    <path id = "mw.classpath">
    <pathelement path = "${toplink.home}/jlib/tlmwcore.jar"/>
    <pathelement path = "${toplink.home}/jlib/toplinkmw.jar"/>
    </path>
    <path id = "mwplatforms.classpath">
    <pathelement path = "${toplink.home}/config"/>
    </path>
    <typedef file = "toplink-ant-lib.xml"
    classpathref = "mw.classpath"
    uri = "toplinklib" />
    </target>
    <!-- ===================================================== -->
    <!-- Define task parameter -->
    <!-- ===================================================== -->
    <target name="parameter.definition" depends="init">
    <toplink:ignoreerrorset id = "ignoreErrors">
    <toplink:ignoreerror code = "0233" />
    </toplink:ignoreerrorset>
    <toplink:loginspec id = "loginSpec"
    url = "jdbc:cloudscape:stagedb;create=true"
    driverclass = "COM.cloudscape.core.JDBCDriver"
    user = "scott"
    password="tiger" />
    </target>
    <!-- ==================================================== -->
    <!-- Validate the MW Project -->
    <!-- ===================================================== -->
    <target name="validate.project" depends="parameter.definition">
    <toplink:mappings.validate
    projectfile = "${toplink.mwp.dir}/SRMap.mwp"
    reportfile = "${toplink.mwp.dir}/problem-report.html"
    reportformat = "html"
    property = "mw-valid"
    classpathref = "mwplatforms.classpath" >
    <toplink:classpath refid = "mw.classpath" />
    <toplink:classpath refid = "toplink.classpath" />
    <toplink:ignoreerrorset refid = "ignoreErrors"/>
    </toplink:mappings.validate>
    </target>
    I've left out the actual export target as the validate seems to throw the same exception. Here's what I get when I switch on verbose
    [toplink:mappings.validate] An error occured while validating project: java.lang
    .NullPointerException
    BUILD FAILED
    C:\apps\JDeveloper\jdev\samples\SRDemoSample\BuildAndDeploy\build.xml:147: An er
    ror occured while validating project: java.lang.NullPointerException
    at oracle.toplink.workbench.ant.taskdefs.ProjectTask.execute(ProjectTask
    .java:69)
    at oracle.toplink.workbench.ant.taskdefs.MappingsValidateTask.execute(Ma
    ppingsValidateTask.java:51)
    at oracle.toplink.workbench.ant.taskdefs.MappingsValidateTask.execute(Ma
    ppingsValidateTask.java:36)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
    at org.apache.tools.ant.Main.runBuild(Main.java:673)
    at org.apache.tools.ant.Main.startAnt(Main.java:188)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
    Caused by: An error occured while validating project: java.lang.NullPointerExcep
    tion
    at oracle.toplink.workbench.ant.ProjectValidator.execute(ProjectValidato
    r.java:58)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at oracle.toplink.workbench.ant.taskdefs.ProjectTask$TaskRunner.execute(
    ProjectTask.java:214)
    at oracle.toplink.workbench.ant.taskdefs.ProjectTask$TaskRunner.access$1
    00(ProjectTask.java:154)
    at oracle.toplink.workbench.ant.taskdefs.ProjectTask.execute(ProjectTask
    .java:65)
    ... 12 more
    Caused by: java.lang.NullPointerException
    at oracle.toplink.workbench.mappingsmodel.mapping.relational.MWCollectio
    nMapping.legacy50PostPostProjectBuild(MWCollectionMapping.java:517)
    at oracle.toplink.workbench.mappingsmodel.MWModel.legacy50PostPostProjec
    tBuild(MWModel.java:503)
    at oracle.toplink.workbench.mappingsmodel.descriptor.MWMappingDescriptor
    .legacy50PostPostProjectBuild(MWMappingDescriptor.java:1081)
    at oracle.toplink.workbench.mappingsmodel.descriptor.relational.MWTableD
    escriptor.legacy50PostPostProjectBuild(MWTableDescriptor.java:1376)
    at oracle.toplink.workbench.mappingsmodel.MWModel.legacy50PostPostProjec
    tBuild(MWModel.java:503)
    at oracle.toplink.workbench.mappingsmodel.project.MWProject.legacy50Post
    ProjectBuild(MWProject.java:1337)
    at oracle.toplink.workbench.mappingsio.ProjectReader.readLegacyProject(P
    rojectReader.java:246)
    at oracle.toplink.workbench.mappingsio.ProjectReader.read(ProjectReader.
    java:102)
    at oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOMa
    nager.java:59)
    at oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOMa
    nager.java:55)
    at oracle.toplink.workbench.ant.ProjectValidator.execute(ProjectValidato
    r.java:40)
    ... 19 more
    --- Nested Exception ---
    An error occured while validating project: java.lang.NullPointerException
    at oracle.toplink.workbench.ant.ProjectValidator.execute(ProjectValidato
    r.java:58)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at oracle.toplink.workbench.ant.taskdefs.ProjectTask$TaskRunner.execute(
    ProjectTask.java:214)
    at oracle.toplink.workbench.ant.taskdefs.ProjectTask$TaskRunner.access$1
    00(ProjectTask.java:154)
    at oracle.toplink.workbench.ant.taskdefs.ProjectTask.execute(ProjectTask
    .java:65)
    at oracle.toplink.workbench.ant.taskdefs.MappingsValidateTask.execute(Ma
    ppingsValidateTask.java:51)
    at oracle.toplink.workbench.ant.taskdefs.MappingsValidateTask.execute(Ma
    ppingsValidateTask.java:36)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
    at org.apache.tools.ant.Main.runBuild(Main.java:673)
    at org.apache.tools.ant.Main.startAnt(Main.java:188)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
    Caused by: java.lang.NullPointerException
    at oracle.toplink.workbench.mappingsmodel.mapping.relational.MWCollectio
    nMapping.legacy50PostPostProjectBuild(MWCollectionMapping.java:517)
    at oracle.toplink.workbench.mappingsmodel.MWModel.legacy50PostPostProjec
    tBuild(MWModel.java:503)
    at oracle.toplink.workbench.mappingsmodel.descriptor.MWMappingDescriptor
    .legacy50PostPostProjectBuild(MWMappingDescriptor.java:1081)
    at oracle.toplink.workbench.mappingsmodel.descriptor.relational.MWTableD
    escriptor.legacy50PostPostProjectBuild(MWTableDescriptor.java:1376)
    at oracle.toplink.workbench.mappingsmodel.MWModel.legacy50PostPostProjec
    tBuild(MWModel.java:503)
    at oracle.toplink.workbench.mappingsmodel.project.MWProject.legacy50Post
    ProjectBuild(MWProject.java:1337)
    at oracle.toplink.workbench.mappingsio.ProjectReader.readLegacyProject(P
    rojectReader.java:246)
    at oracle.toplink.workbench.mappingsio.ProjectReader.read(ProjectReader.
    java:102)
    at oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOMa
    nager.java:59)
    at oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOMa
    nager.java:55)
    at oracle.toplink.workbench.ant.ProjectValidator.execute(ProjectValidato
    r.java:40)
    ... 19 more
    --- Nested Exception ---
    java.lang.NullPointerException
    at oracle.toplink.workbench.mappingsmodel.mapping.relational.MWCollectio
    nMapping.legacy50PostPostProjectBuild(MWCollectionMapping.java:517)
    at oracle.toplink.workbench.mappingsmodel.MWModel.legacy50PostPostProjec
    tBuild(MWModel.java:503)
    at oracle.toplink.workbench.mappingsmodel.descriptor.MWMappingDescriptor
    .legacy50PostPostProjectBuild(MWMappingDescriptor.java:1081)
    at oracle.toplink.workbench.mappingsmodel.descriptor.relational.MWTableD
    escriptor.legacy50PostPostProjectBuild(MWTableDescriptor.java:1376)
    at oracle.toplink.workbench.mappingsmodel.MWModel.legacy50PostPostProjec
    tBuild(MWModel.java:503)
    at oracle.toplink.workbench.mappingsmodel.project.MWProject.legacy50Post
    ProjectBuild(MWProject.java:1337)
    at oracle.toplink.workbench.mappingsio.ProjectReader.readLegacyProject(P
    rojectReader.java:246)
    at oracle.toplink.workbench.mappingsio.ProjectReader.read(ProjectReader.
    java:102)
    at oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOMa
    nager.java:59)
    at oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOMa
    nager.java:55)
    at oracle.toplink.workbench.ant.ProjectValidator.execute(ProjectValidato
    r.java:40)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at oracle.toplink.workbench.ant.taskdefs.ProjectTask$TaskRunner.execute(
    ProjectTask.java:214)
    at oracle.toplink.workbench.ant.taskdefs.ProjectTask$TaskRunner.access$1
    00(ProjectTask.java:154)
    at oracle.toplink.workbench.ant.taskdefs.ProjectTask.execute(ProjectTask
    .java:65)
    at oracle.toplink.workbench.ant.taskdefs.MappingsValidateTask.execute(Ma
    ppingsValidateTask.java:51)
    at oracle.toplink.workbench.ant.taskdefs.MappingsValidateTask.execute(Ma
    ppingsValidateTask.java:36)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
    at org.apache.tools.ant.Main.runBuild(Main.java:673)
    at org.apache.tools.ant.Main.startAnt(Main.java:188)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
    Total time: 6 seconds
    C:\apps\JDeveloper\jdev\samples\SRDemoSample\BuildAndDeploy>
    The problem seems similar to the one described in the toplink forums here...
    NullPointerException while trying to export project in workbench
    I tried opening SRMap.mwp in Toplink Workbench, and I get an exception on load...
    oracle.toplink.workbench.framework.OpenException: java.lang.NullPointerException
         at oracle.toplink.workbench.mappingsplugin.MappingsPlugin.open(MappingsPlugin.java:290)
         at oracle.toplink.workbench.framework.internal.FrameworkApplication.open(FrameworkApplication.java:687)
         at oracle.toplink.workbench.framework.internal.FrameworkNodeManager.openCallback(FrameworkNodeManager.java:341)
         at oracle.toplink.workbench.framework.internal.RunnableProjectLoader.run2(RunnableProjectLoader.java:76)
         at oracle.toplink.workbench.framework.internal.RunnableProjectLoader.run(RunnableProjectLoader.java:63)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.NullPointerException
         at oracle.toplink.workbench.mappingsmodel.mapping.relational.MWCollectionMapping.legacy50PostPostProjectBuild(MWCollectionMapping.java:517)
         at oracle.toplink.workbench.mappingsmodel.MWModel.legacy50PostPostProjectBuild(MWModel.java:503)
         at oracle.toplink.workbench.mappingsmodel.descriptor.MWMappingDescriptor.legacy50PostPostProjectBuild(MWMappingDescriptor.java:1081)
         at oracle.toplink.workbench.mappingsmodel.descriptor.relational.MWTableDescriptor.legacy50PostPostProjectBuild(MWTableDescriptor.java:1376)
         at oracle.toplink.workbench.mappingsmodel.MWModel.legacy50PostPostProjectBuild(MWModel.java:503)
         at oracle.toplink.workbench.mappingsmodel.project.MWProject.legacy50PostProjectBuild(MWProject.java:1337)
         at oracle.toplink.workbench.mappingsio.ProjectReader.readLegacyProject(ProjectReader.java:246)
         at oracle.toplink.workbench.mappingsio.ProjectReader.read(ProjectReader.java:102)
         at oracle.toplink.workbench.mappingsio.ProjectIOManager.read(ProjectIOManager.java:59)
         at oracle.toplink.workbench.mappingsplugin.MappingsPlugin.open(MappingsPlugin.java:286)
         ... 5 more
    That's using Toplink Workbench 10g Release 3 (10.1.3.0.0)
    I'm using 10.1.3 JDeveloper with the latest (SU3) patch.
    Any ideas would be apprecated!!!
    Kind regards,
    Ciaran.

    Hi Karen,
    Thanks for the response.
    So are you saying we cannot build/deploy our project outside of the JDeveloper IDE?
    What we were trying to do is to automate the build and deployment using ant scripts. Then we could run say nightly checkout/build/deploy script to a test machine as part of a continious integration process.
    We can build all the code and even remote deploy it fine using ant, however we cannot build this data map XML file outside of the JDeveloper environment. I guess a workaround would be to check-in the generated XML file into our source code control. This sounds risky to me and also, our SCC system sets non checked-out files to be read-only and JDeveloper gives an error if it cannot write to that file.
    Any ideas?
    Cheers,
    Ciaran.

  • How to upgrade mapping files of  TOPLink 2.5.1 to the latest?

    We are planning to update our TOPLink 2.5.1 to the latest,but we don't know whether Oracle has some tools or new features in TOPLink 9.0.3 that directly migrate the mapping files of TOPLink 2.5.1 to the TOPLink 9.0.3?
    Thanks very much!

    Hi, Mr Smith
    I have same problem as Mr. Tai .
    I want to contact you with email, but the mail box [email protected] or [email protected] are invalid with my outlook report.
    So below is my email contents, and my mail address is [email protected] .
    Mr Smith:
    I met some confusions in upgrading our system from TOPLINK2.5.1 to TOPLINK Release 2(Oracle9.0.3).
    And because I didn't use TOPLINK tools before this project, I spent one week to know the structure of our system. Unfortunately, Our company isn't a supported Oracle customer. We just bought Oracle product, didn't buy support service.
    First of all, I'll describ our system structure. The system is Weblogic5.1 + Toplink 2.5.1 + Oracle8.1 .Using Toplink we mapping our EJB to Oracle. The results of this procedure aremany .table, .descriptor, .topclass under the mapping forlder, and weblogic-ejb-jar.xml, topling-cmp-XX.xml, ejb-jar.xml under the deploy forlder. That's all.
    So, after our ant-build, we copy these results to Weblogic server directory, and compile with EJB, deploy them. It's correct?
    OK, as my considering, I install TOPLINK Release 2 , use Renamer tool to rename my source code from old TOPLINK library to oracle.toplink, complie them again. And create new project in TOPLINK 9.0.3 , import classes, login Database correctly. Do mapping as in TOPLINK2.5.1. Generate packagename.ClassDescriptor.xml under Descriptor, forlder ClassRepository, Class, Table, Database generate xml files also.
    Do the above process correct? OK, let's assume it' correct. But how can I modify my ant-build , you know the structure is difference between Weblogic 5.1 and Weblogic 6 or 7. Additionally, I don't know where should I copy new TOPLINK library to Weblogic directory. Yes, I know old TOPLINK library location, but I think it has difference.
    So , please tell me I can use Weblogic5.1 + TOPLINK 9.0.3 + Oracle 8.1 , is it right? I will be appreciated if you can give me some detail steps in upgrading TOPLINK.
    And perhaps we need to upgrade out system from TOPLINK 2.5.1 to TOPLINK 4.x first?
    Thanks for your view.
    Yours
    Denver Yang
    Software Engineer
    E-MA Logistics Systems (Shanghai) Limited
    Tel: 86-21-6361-1177 Ext.140

  • How can i using datasource in toplink's map file

    In the TopLink map :
    <toplink:login xsi:type="toplink:database-login">
    <toplink:platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</toplink:platform-class>
    <toplink:user-name>test</toplink:user-name> <toplink:password>C23487CFA591952D44310804F3D591CB</toplink:password>
    <toplink:sequencing>
    <toplink:default-sequence xsi:type="toplink:native-sequence">
    <toplink:preallocation-size>1</toplink:preallocation-size>
    </toplink:default-sequence>
    </toplink:sequencing>
    <toplink:driver-class>oracle.jdbc.driver.OracleDriver</toplink:driver-class>
    <toplink:connection-url>jdbc:oracle:thin:@192.168.0.1:1521:testdb</toplink:connection-url>
    <toplink:bind-all-parameters>true</toplink:bind-all-parameters>
    </toplink:login>
    How can i modify it using datasource?

    The login information stored in the map file is good for direct connection and design time login information.
    For your runtime login information I would use the sessions configuration (sessions.xml). It provides complete deployment configuration:
       <session>
          <name>my-session</name>
          <!-- This references the ORM map XML file -->
          <project-xml>META-INF/employee-basic.xml</project-xml>
          <session-type>
             <server-session/>
          </session-type>
          <login>
             <datasource>jdbc/TopLinkDS</datasource>
             <uses-external-connection-pool>true</uses-external-connection-pool>
             <uses-external-transaction-controller>true</uses-external-transaction-controller>
          </login>
          <external-transaction-controller-class>oracle.toplink.essentials.transaction.oc4j.Oc4jTransactionController</external-transaction-controller-class>
          <enable-logging>true</enable-logging>
          <logging-options>
             <log-exceptions>true</log-exceptions>
             <print-thread>false</print-thread>
             <print-date>false</print-date>
          </logging-options>
       </session>Doug

  • Multiple Toplink project modules

    Hi
    We have been using Toplink for more than 4 years and have developed a single, extensive domain model. However, this domain model is used in multiple application projects which is increasingly hindering development speed. We would like, no need to cut up this single domain model into smaller separate projects and, in the same time, still have a single runtime model so that class associations keep working across these different projects.
    I have seen the post by Allessandro Rizzi (Importing projects on the topic of importing projects, and from that post I gather that it is doable, but a lot of hassle.
    Since JPA seems to support exactly the scenario I have in mind, I could consider moving to JPA but you will understand that this is an enormous undertaking on a domain model that is 4 years old and contains over 500 classes.
    So I would like to be able to keep using the Toplink API (instead of the JPA) *but* with some of the features that are in the JPA like the very nice packaging options and the runtime merging of different 'persistence units'.
    Is this possible, now or in the future?

    So I would like to be able to keep using the Toplink
    API (instead of the JPA) *but* with some of
    the features that are in the JPA like the very nice
    packaging options and the runtime merging of
    different 'persistence units'.JPA does help your situation in that you can either place mappings on Entities directly as annotations or 'chunk' the mappings for subsets of Entities into mapping XML files. You wouldn't be merging persistence units but the persistence unit would be 'merging' the annotations and the mapping files.
    Is this possible, now or in the future?Yes, you can use the TopLink API with JPA defined Entities. I'd blogged about doing this in TopLink Essentials but the same is true for TopLink 11 and EclipseLink.
    --Shaun                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • REP-52005: The specified key userlogin does not exist in the key map file.

    Hi,
    I am using oracle 11g report server. I am getting the error of REP-52005: The specified key userlogin does not exist in the key map file.
    I updated the user_string in cgicmd.dat file. My cgicmd.dat file content is below
    ; OracleAS Reports Services                       ;
    ; CGICMD.DAT                                      ;
    ; Example CGICMD.DAT Mapping file                 ;
    ; Syntax: 
    ;      KEY : VALUE
    ; Where:
    ; KEY - the first argument of the rwservlet URL request (case sensitive).
    ; VALUE - command line parameters and/or special parameters.
    ; Keys can be referenced in the following ways:
    ;    1. Parameter on command line to the reports servlet
    ;          e.g. http://machine/servlet/rwservlet?KEY
    ;    2. Parameter on command line to a reports jsp
    ;          e.g. http://machine/mydir/myreport.jsp?KEY
    ;    3. Within a reports jsp - in the rw:report custom tag
    ;          e.g. <rw:report parameters="KEY">
    ; In addition to the Reports Server command line parameters, VALUE can include special parameters
    ; represented as "%X", where X identifies the parameter. Currently recognized special
    ; parameters:
    ;  %0 - %9 - 0..9 arguments from original rwservlet URL request. Note that %0 refers to the key itself.
    ;  %* - entire contents (all arguments) of original rwservlet URL request.
    ;  %D - request users to input database userid everytime they run the report.
    ;  %P - request for report parameter form in HTML format. It generates the PARAMFORM=HTML
    ;       construction on the first submission of the URL and PARAMFORM=NO upon parameter form submission.
    ; CGICMD.DAT Usage Notes
    ;   1. Multiple keys in this file MUST be separated by an EXTRA empty line.
    ;   2. Extra spaces are ignored. Multi-line entries allowed.
    ;   3. Lines starting with ";" character are treated as a comments.
    ;   4. Comments within a key or key value are NOT allowed.
    ;   5. NLS language support is provided and can be used (encoding should match the one
    ;      used in HTML request - no language conversion of any kind is attempted.
    ;   6. For %P special parameter, HTML format is by default mapped to the HTMLTABLE format in this release.
    ;      The HTML format in the future may be mapped to the HTMLCSS format.
    ;;;;;;;;;;;; Example Key Entries
    ;  Example 1:  Run a simple breakb report and output to HTML
    orqa: report=breakb.rdf destype=cache desformat=html server=repserver
    ; Example 2: prompt for userid the first time, then use database userid stored in the cookie subsequently.
    report_defaultid: report=breakb.rdf destype=cache desformat=html server=repserver
    ; Example 3: use %D to require user authentication every time
    report_secure: report=breakb.rdf destype=cache desformat=html server=repserver1 %D
    ; Example 4:  Take all arguments from URL and send it to the reports server
    run: %*
    ; Example 5:  Run breakb report with HTML parameter form.
    breakbparam : report=breakb.rdf destype=cache desformat=html server=repserver userid=scott/tiger@mydb %P
    ; Example 6: take all URL arguments, and also generate a HTML parameter form  
    runp: %* %P
    ; Example 7: Run an Express Report. Replace <MYHOST> with the name of the machine running the Express server. The
    ; builder on-line help explains the rest of the parameters (the /sl, st etc. etc.)
    express: report=my_expr_rep express_server="server=ncacn_ip_tcp:<MYHOST>/sl=1/st=1/ct=0/sv=1/" desformat=htmlcss userid=scott/tiger@mydb destype=cache server=repserver
    ;;;;;;;;;;;; Keys for Reports Demos
    ; Using default/in-process server.
    ; JSPs
    ;charthyperlink_ias: userid="scott/tiger@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=%DBHOSTNAME%)(PORT=%DBPORT%))(CONNECT_DATA=(SID=%DBSID%)))" %*
    ;charthyperlink_ids: userid=scott/tiger@ %*
    ;barcodeweb:         userid=oe
    ;parmformjsp:        userid=oe
    ;tutorial:           userid=oe
    ; Paper Reports
    ;xmldata:            userid=oe report=inventory_report.rdf destype=cache p_filelocation="http://%HOSTNAME%:%OC4JPORT%/reports/examples/xml_pds/scripts/" desformat=pdf
    ;barcodepaper:       userid=oe report=shippingmanifest.rdf destype=cache desformat=pdf
    ;distributionpaper:  userid=oe report=inventory_report_dist.rdf distribute=yes destination=exampledistribution.xml
    ;pdfenhancements:    userid=oe report=utf8test.rdf destype=cache desformat=pdf
    userlogin : userid=SYMFINBTOTEST@fin10r21 %*
    As in the above file i have added a key as userlogin at the end of the file. But the reports server does not take the key that i have given. I followed the same steps provided in oracle docs. I used "showmap" to check the cgicmd file that is used by the reports
    http://aspirevm8-17.aspiresys.com:9002/reports/rwservlet/showmap?server=bluQubeReportsAtLocalEnv&destype&userid=SYMFINBT…
    It shows me the content of the cgicmd.dat file and it also shows my updations. But in the "Parsed Map File Entries" it does not show my key value pair
    Parsed Map File Entries
    Return to Top
    Key Name
    Value
    runp
    %* %P
    breakbparam
    report=breakb.rdf destype=cache desformat=html server=repserver userid=scott@mydb %P
    report_defaultid
    report=breakb.rdf destype=cache desformat=html server=repserver
    run
    report_secure
    report=breakb.rdf destype=cache desformat=html server=repserver %D
    express
    report=my_expr_rep express_server="server=ncacn_ip_tcp:<MYHOST>/sl=1/st=1/ct=0/sv=1/" desformat=htmlcss userid=scott@mydb destype=cache server=repserver
    orqa
    report=breakb.rdf destype=cache desformat=html server=repserver
    Please help me to to make the key being populated here and being used by the reports server.
    Thanks,
    Priya

    uncomment #KEYPMAPFILE=CGICMD.DAT. remove the #
    then for development set
    reloadkeymap=yes (same file - rwservlet.properties).
    Now it should reload everytime. (otherwise for every change u need to restart oc4j_bi_forms)
    (For * production* may be you want to set reloadkeymap=no once all testing is done)
    see cgicmd.dat for many examples of using keymap file
    [ All Docs for all versions ]
    http://otn.oracle.com/documentation/reports.html
    [ Publishing reports to web - 10G ]
    http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
    http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
    [ Building reports - 10G ]
    http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
    http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
    [ Forms Reports Integration whitepaper 9i/10g ]
    9i - http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    10g - http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsrw10g.pdf
    http://www.oracle.com/technology/products/forms/techlisting10g.html
    ---------------------------------------------------------------------------------

  • Issue in reading multiple time properties file

    Use Case:
    I have a page in which i have to show some Outage Messages on page. So I have configured outage message in properties files. This message should me rendered each time when it finds that properties file in class path or it finds the values w.r.t their keys.
    So what I decide that I shall write java method and call this method on Loading the page but here what happen is that whenever that page is load each time that reader file will call , that will create memory leak .
    So, anyone help me on this. What will be the best approach for that reading multiple times properties file?
    I will be grateful for any help you can provide
    Thanks

    Hi,
    have a bean at applicationScope, somewhat like this
    import java.util.HashMap;
    public class ApplnProperties {
        private HashMap _propMap;
        public HashMap getPropMap() {
            if(_propMap == null){
                //read the properties file and populate _propMap
            return _propMap;
    }here we put condition _propMap == null so it would be called only once during application lifecycle.
    and on page you can refer the prop map like following
    #{beanName.propMap['KEY1']}Regards,

  • Automatic merging of map files in RoboHelp?

    [Hope this isn't a double post; my first attempt ended in
    network error and forum doesn't seem to have that post]
    My group is charged with developing a help system using
    RoboHelp 7. Output type will be WebHelp. The interface between
    context-sensitive Help system and the target application will be a
    single project's output and a single map file. The plan for help
    development is to divide the work up into multiple layers of
    projects. The final output will be the result of multiple project
    merges from the bottom layer up.
    RH7 enables this methodology with the WebHelp merge
    module...except that it doesn't automatically merge sub projects'
    map ID files (individual BSSCDefaults.h) into the master project's
    map ID file BSSCDefaults.h. I can use a different name for the sub
    projects' map files and import them into the master project, but
    this still does not result in the master's map file being modified.
    The map IDs remain dispersed across the multiple map files within
    the master project.
    Is there a way to get an automatic concatenation of map ID
    files?

    Thanks for the suggestion. I was hoping that the answer would
    be other than that it's a manual procedure outside of RH7, but
    that's the conclusion given my previous [admittedly brief]
    searching within this site and thinking more about the RH paradigm
    (as explained in the Grainge article as well as the other Adobe
    articles).
    For now, I'm going to have the team use the following process
    while we're shaking out our development methodology:
    - each author follows the established naming convention for
    Topic IDs and use his/her assigned map number range when creating
    map IDs which should guarantee that the IDs are unique across all
    projects
    - each author will export his/her projects' map file (for
    java applications) to a subfolder within their project
    - rename the resultant BSSCDefaults.properties file to a
    globally unique filename
    - copy that project-unique properties file to the specified
    folder
    - one person/admin will concatenate the individual properties
    files into a single file to be used by the application developers
    Comments?
    ayf

  • Multiple message through FIle Adapter using XI 2.0

    I have scenario to create multiple message using File adapter .My file structure will be like
    EMPID     NAME     SKILLS
    001     A      ABAP
    001     A      XI
    002     B      JAVA
    Now I want to post first 2 records in one message and last record in other message.
    Can we do it in XI 2.0.Any help appreciated

    Hi Suraj.
    Thank you very mutch for your reply.
    Excuse me...my mapping is done for message type and idoc.
    My problem is that when the interface start, on the sxmb_moni I see an error like this:
    Creating Java mapping com.sap.xi.tf._MM_XmlOrderToIdocMapping_ --- Using MappingResolver with context URL //srvsapdev/sapmnt/CX1/SYS/global/xi/mapping/gestione_magazzini/7fa9c9e15a7811dab710f3e3ac10826e/ --- Load of com/sap/xi/tf/_MM_XmlOrderToIdocMapping_.class from //srvsapdev/sapmnt/CX1/SYS/global/xi/mapping/gestione_magazzini/7fa9c9e15a7811dab710f3e3ac10826e failed. --- Class not found: com.sap.xi.tf._MM_XmlOrderToIdocMapping_ --- java.lang.ClassNotFoundException at RUMappingJava.load(): Could not load class: com.sap.xi.tf._MM_XmlOrderToIdocMapping_ Class not found: com.sap.xi.tf._MM_XmlOrderToIdocMapping_ --- com.sap.aii.ibrun.server.map.MappingRuntimeException: at com.sap.aii.ibrun.server.map.MappingRuntimeException.code_STYLESHEET_OR_CLASS_NOT_FOUND
    ..where 'gestione_magazzini' is my namespace and 'MM_XmlOrderToIdocMapping' is my message mapping.
    Can you help me to undestand the problem?
    Thanks,
    Gianluca

  • Splitting multiple IDoc XML files into single IDoc messages for R/3

    Hi all. I have a problem splitting IDoc XML files coming in to XI. I currently have an interface that takes in single store sale IDoc transactions (type WPUBON01) in an IDoc XML file. I then have some complex graphical mapping on the IDoc before sending to R/3 via the IDoc adapter. This works fine. However, we now wish to include multiple sales in one file i.e. many WPUBON01 IDocs. I could use message splitting to do this BUT the mapping is so complex, I do not wish to have to change it to enable the processing of many IDocs in one file instead of just one.
    What I want to do: have one mapping splitting a multiple IDoc XML file into single IDoc messages and then another taking these single messages as before and performing the mapping. I cannot find a way to do this in one interface; the main problem I'm having is getting XI to split the multiple IDocs into many single IDoc messages within XI itself. I'd be very grateful for any advice on the best way to do this.
    Thankyou.
    Stuart Richards (Halfords, UK)

    Bhavesh,
    Thanks again for a clear explanation... I'm moving forwards but still struggling. I've been on this all afternoon today (after a break on other things) and just cannot get my message to split properly (though the SOAP adapter problem I had earlier is now fixed!). If my initial IDoc XML file contains this format:
    <WPUBON01><IDOC>....</IDOC>
                          <IDOC>....</IDOC>
                          <IDOC>....</IDOC></WPUBON01>
    .. I'm not sure what the cardinaility on the first message mapping and interface mapping should be. I'd have thought the source interface would be 1 and the target would be 0..unbounded but this isn't working. I'm trying different things but I get different errors each time. Currently, I have the above cardinality in my first interface and I'm passing in the following data:
    <WPUBON01><IDOC><EDI_DC40><TABNAM>EDI_DC40</TABNAM><MANDT /><DOCNUM /><DOCREL>620</DOCREL><DIRECT>2</DIRECT><IDOCTYP>WPUBON01</IDOCTYP><MESTYP>WPUBON</MESTYP><MESCOD>ST6</MESCOD><SNDPOR>WPUX</SNDPOR><SNDPRT>KU</SNDPRT><SNDPRN>0518</SNDPRN><RCVPOR /><RCVPRT>KU</RCVPRT><RCVPRN>0518</RCVPRN><REFINT>00000003832292</REFINT></EDI_DC40><E1WPB01 SEGMENT="1"><POSKREIS>0518</POSKREIS><KASSID>29</KASSID><VORGDATUM>20071029</VORGDATUM><VORGZEIT>160633</VORGZEIT><BONNUMMER>1001</BONNUMMER><KASSIERER>100</KASSIERER><CSHNAME> </CSHNAME><BELEGWAERS>GBP</BELEGWAERS><E1WPB02 SEGMENT="2"><VORGANGART /><QUALARTNR>ARTN</QUALARTNR><ARTNR>000000065601301390</ARTNR><VORZEICHEN>-</VORZEICHEN><MENGE>1</MENGE><AKTIONSNR>0000000000</AKTIONSNR><REFBONNR> </REFBONNR><E1WPB03 SEGMENT="3"><VORZEICHEN /><KONDITION>PN10</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03><E1WPB03 SEGMENT="4"><VORZEICHEN></VORZEICHEN><KONDITION>ZPN1</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03></E1WPB02><E1WPB02 SEGMENT="5"><VORGANGART /><QUALARTNR>ARTN</QUALARTNR><ARTNR>000000065601301390</ARTNR><VORZEICHEN>-</VORZEICHEN><MENGE>1</MENGE><AKTIONSNR>0000000000</AKTIONSNR><REFBONNR> </REFBONNR><E1WPB03 SEGMENT="6"><VORZEICHEN /><KONDITION>PN10</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03><E1WPB03 SEGMENT="7"><VORZEICHEN></VORZEICHEN><KONDITION>ZPN1</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03></E1WPB02><E1WPB02 SEGMENT="8"><VORGANGART /><QUALARTNR>ARTN</QUALARTNR><ARTNR>000000065601301390</ARTNR><VORZEICHEN>-</VORZEICHEN><MENGE>1</MENGE><AKTIONSNR>0000000000</AKTIONSNR><REFBONNR> </REFBONNR><E1WPB03 SEGMENT="9"><VORZEICHEN /><KONDITION>PN10</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03><E1WPB03 SEGMENT="10"><VORZEICHEN></VORZEICHEN><KONDITION>ZPN1</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03></E1WPB02><E1WPB02 SEGMENT="11"><VORGANGART /><QUALARTNR>ARTN</QUALARTNR><ARTNR>000000065601301390</ARTNR><VORZEICHEN>-</VORZEICHEN><MENGE>1</MENGE><AKTIONSNR>0000000000</AKTIONSNR><REFBONNR> </REFBONNR><E1WPB03 SEGMENT="12"><VORZEICHEN /><KONDITION>PN10</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03><E1WPB03 SEGMENT="13"><VORZEICHEN></VORZEICHEN><KONDITION>ZPN1</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03></E1WPB02><E1WPB02 SEGMENT="14"><VORGANGART /><QUALARTNR>ARTN</QUALARTNR><ARTNR>000000065601301390</ARTNR><VORZEICHEN>-</VORZEICHEN><MENGE>1</MENGE><AKTIONSNR>0000000000</AKTIONSNR><REFBONNR> </REFBONNR><E1WPB03 SEGMENT="15"><VORZEICHEN /><KONDITION>PN10</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03><E1WPB03 SEGMENT="16"><VORZEICHEN></VORZEICHEN><KONDITION>ZPN1</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03></E1WPB02><E1WPB06 SEGMENT="17"><VORZEICHEN></VORZEICHEN><ZAHLART>PTCS</ZAHLART><SUMME> </SUMME><KARTENNR /><ZUONR>1001</ZUONR></E1WPB06></E1WPB01></IDOC><IDOC><EDI_DC40><TABNAM>EDI_DC40</TABNAM><MANDT /><DOCNUM /><DOCREL>620</DOCREL><DIRECT>2</DIRECT><IDOCTYP>WPUBON01</IDOCTYP><MESTYP>WPUBON</MESTYP><MESCOD>ST6</MESCOD><SNDPOR>WPUX</SNDPOR><SNDPRT>KU</SNDPRT><SNDPRN>0518</SNDPRN><RCVPOR /><RCVPRT>KU</RCVPRT><RCVPRN>0518</RCVPRN><REFINT>00000003832293</REFINT></EDI_DC40><E1WPB01 SEGMENT="1"><POSKREIS>0518</POSKREIS><KASSID>29</KASSID><VORGDATUM>20071029</VORGDATUM><VORGZEIT>160634</VORGZEIT><BONNUMMER>1002</BONNUMMER><KASSIERER>100</KASSIERER><CSHNAME> </CSHNAME><BELEGWAERS>GBP</BELEGWAERS><E1WPB02 SEGMENT="2"><VORGANGART /><QUALARTNR>ARTN</QUALARTNR><ARTNR>000000065601301390</ARTNR><VORZEICHEN>-</VORZEICHEN><MENGE>1</MENGE><AKTIONSNR>0000000000</AKTIONSNR><REFBONNR> </REFBONNR><E1WPB03 SEGMENT="3"><VORZEICHEN /><KONDITION>PN10</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03><E1WPB03 SEGMENT="4"><VORZEICHEN></VORZEICHEN><KONDITION>ZPN1</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03></E1WPB02><E1WPB02 SEGMENT="5"><VORGANGART /><QUALARTNR>ARTN</QUALARTNR><ARTNR>000000065601301390</ARTNR><VORZEICHEN>-</VORZEICHEN><MENGE>1</MENGE><AKTIONSNR>0000000000</AKTIONSNR><REFBONNR> </REFBONNR><E1WPB03 SEGMENT="6"><VORZEICHEN /><KONDITION>PN10</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03><E1WPB03 SEGMENT="7"><VORZEICHEN></VORZEICHEN><KONDITION>ZPN1</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03></E1WPB02><E1WPB02 SEGMENT="8"><VORGANGART /><QUALARTNR>ARTN</QUALARTNR><ARTNR>000000065601301390</ARTNR><VORZEICHEN>-</VORZEICHEN><MENGE>1</MENGE><AKTIONSNR>0000000000</AKTIONSNR><REFBONNR> </REFBONNR><E1WPB03 SEGMENT="9"><VORZEICHEN /><KONDITION>PN10</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03><E1WPB03 SEGMENT="10"><VORZEICHEN></VORZEICHEN><KONDITION>ZPN1</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03></E1WPB02><E1WPB02 SEGMENT="11"><VORGANGART /><QUALARTNR>ARTN</QUALARTNR><ARTNR>000000065601301390</ARTNR><VORZEICHEN>-</VORZEICHEN><MENGE>1</MENGE><AKTIONSNR>0000000000</AKTIONSNR><REFBONNR> </REFBONNR><E1WPB03 SEGMENT="12"><VORZEICHEN /><KONDITION>PN10</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03><E1WPB03 SEGMENT="13"><VORZEICHEN></VORZEICHEN><KONDITION>ZPN1</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03></E1WPB02><E1WPB02 SEGMENT="14"><VORGANGART /><QUALARTNR>ARTN</QUALARTNR><ARTNR>000000065601301390</ARTNR><VORZEICHEN>-</VORZEICHEN><MENGE>1</MENGE><AKTIONSNR>0000000000</AKTIONSNR><REFBONNR> </REFBONNR><E1WPB03 SEGMENT="15"><VORZEICHEN /><KONDITION>PN10</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03><E1WPB03 SEGMENT="16"><VORZEICHEN></VORZEICHEN><KONDITION>ZPN1</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03></E1WPB02><E1WPB06 SEGMENT="17"><VORZEICHEN></VORZEICHEN><ZAHLART>PTCS</ZAHLART><SUMME> </SUMME><KARTENNR /><ZUONR>1002</ZUONR></E1WPB06></E1WPB01></IDOC><IDOC><EDI_DC40><TABNAM>EDI_DC40</TABNAM><MANDT /><DOCNUM /><DOCREL>620</DOCREL><DIRECT>2</DIRECT><IDOCTYP>WPUBON01</IDOCTYP><MESTYP>WPUBON</MESTYP><MESCOD>ST6</MESCOD><SNDPOR>WPUX</SNDPOR><SNDPRT>KU</SNDPRT><SNDPRN>0518</SNDPRN><RCVPOR /><RCVPRT>KU</RCVPRT><RCVPRN>0518</RCVPRN><REFINT>00000003832294</REFINT></EDI_DC40><E1WPB01 SEGMENT="1"><POSKREIS>0518</POSKREIS><KASSID>29</KASSID><VORGDATUM>20071029</VORGDATUM><VORGZEIT>160634</VORGZEIT><BONNUMMER>1003</BONNUMMER><KASSIERER>100</KASSIERER><CSHNAME> </CSHNAME><BELEGWAERS>GBP</BELEGWAERS><E1WPB02 SEGMENT="2"><VORGANGART /><QUALARTNR>ARTN</QUALARTNR><ARTNR>000000065601301390</ARTNR><VORZEICHEN>-</VORZEICHEN><MENGE>1</MENGE><AKTIONSNR>0000000000</AKTIONSNR><REFBONNR> </REFBONNR><E1WPB03 SEGMENT="3"><VORZEICHEN /><KONDITION>PN10</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03><E1WPB03 SEGMENT="4"><VORZEICHEN></VORZEICHEN><KONDITION>ZPN1</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03></E1WPB02><E1WPB02 SEGMENT="5"><VORGANGART /><QUALARTNR>ARTN</QUALARTNR><ARTNR>000000065601301390</ARTNR><VORZEICHEN>-</VORZEICHEN><MENGE>1</MENGE><AKTIONSNR>0000000000</AKTIONSNR><REFBONNR> </REFBONNR><E1WPB03 SEGMENT="6"><VORZEICHEN /><KONDITION>PN10</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03><E1WPB03 SEGMENT="7"><VORZEICHEN></VORZEICHEN><KONDITION>ZPN1</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03></E1WPB02><E1WPB02 SEGMENT="8"><VORGANGART /><QUALARTNR>ARTN</QUALARTNR><ARTNR>000000065601301390</ARTNR><VORZEICHEN>-</VORZEICHEN><MENGE>1</MENGE><AKTIONSNR>0000000000</AKTIONSNR><REFBONNR> </REFBONNR><E1WPB03 SEGMENT="9"><VORZEICHEN /><KONDITION>PN10</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03><E1WPB03 SEGMENT="10"><VORZEICHEN></VORZEICHEN><KONDITION>ZPN1</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03></E1WPB02><E1WPB02 SEGMENT="11"><VORGANGART /><QUALARTNR>ARTN</QUALARTNR><ARTNR>000000065601301390</ARTNR><VORZEICHEN>-</VORZEICHEN><MENGE>1</MENGE><AKTIONSNR>0000000000</AKTIONSNR><REFBONNR> </REFBONNR><E1WPB03 SEGMENT="12"><VORZEICHEN /><KONDITION>PN10</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03><E1WPB03 SEGMENT="13"><VORZEICHEN></VORZEICHEN><KONDITION>ZPN1</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03></E1WPB02><E1WPB02 SEGMENT="14"><VORGANGART /><QUALARTNR>ARTN</QUALARTNR><ARTNR>000000065601301390</ARTNR><VORZEICHEN>-</VORZEICHEN><MENGE>1</MENGE><AKTIONSNR>0000000000</AKTIONSNR><REFBONNR> </REFBONNR><E1WPB03 SEGMENT="15"><VORZEICHEN /><KONDITION>PN10</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03><E1WPB03 SEGMENT="16"><VORZEICHEN></VORZEICHEN><KONDITION>ZPN1</KONDITION><KONDVALUE>1.00</KONDVALUE><CONDID /><QUALCONDID /></E1WPB03></E1WPB02><E1WPB06 SEGMENT="17"><VORZEICHEN></VORZEICHEN><ZAHLART>PTCS</ZAHLART><SUMME> </SUMME><KARTENNR /><ZUONR>1003</ZUONR></E1WPB06></E1WPB01></IDOC></WPUBON01>
    In the message monitor, I get a chequered flag. Great. However, I get the dreaded error 500 in the SOAP receiver comm channel:
    SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 500 Internal Server Error
    Exception caught by adapter framework: SOAP Error
    Delivery of the message to the application using connection AFW failed, due to: SOAP Error.
    Any ideas as to what this might be?! I'm getting there.... if I get a solution out of this, I promise to write the blog myself!
    Cheers
    Stuart

  • Posting  multiple records from file to idoc

    Hi Exerts,
       i have done scenario to post one record from file to IDOC, to post multiple records from file to idoc what are the options to be modified in the scenario.
    thanks,
    dhanush

    Hi Dhanush,
      You need to change the occurance of idoc to 0 to unbounded ie need to opt idoc packaging.
      Just download the xsd of you idoc to the desktop and change the occurance tag as "<xsd:element name="IDOC" type="COND_A.COND_A02" maxOccurs="unbounded" />" and then reimport it into External definition and use it in your message mapping and then map it with you source structure.
    Regards,
    Prasanthi.

  • Mapping file samples wanted

    Is there any sample that shows how to use mapping file with TopLink JPA? Thanks.

    We do plan to add more samples that illustrate the use of the ORM XML. Currently we do have some examples within our how-to's on the JPA site.
    http://www.oracle.com/technology/products/ias/toplink/jpa/how-to-index.html
    Doug

  • CFS and memory mapped file

    I would like to know if it is possible to memory map (mmap) a file that is residing on a cluster file system (CFS or GFS).
    If I remember correctly, memory mapping a file residing on NFS has issues.
    Thanks,
    Harsh

    I'm using SC 3.1u4 on Solaris 9. I ran in to a problem with memory mapped files on CFS.
    I've multiple processes (on one cluster node) sharing such a file that was created using the following command:
    mmap ((caddr_t)0,SOME_SIZE,(PROT_READ | PROT_WRITE), (MAP_SHARED | MAP_NORESERVE),fd,0);
    Issuing msync with MS_INVALIDATE as the third argument is ok. But when some other process tries to read the memory the node seems to hang.
    I can't examine the processes using pstack or truss as both of them get hung too. Only way out of this mess is to reboot the node.
    I can't imagine this problem hasn't been seen before. Is there a patch for it?

  • Point Toplink map to exactly same schema but differnt schema

    Hi all,
    We want to point our Toplink mapping which is generated using a test schema to "real data schema" which has exact same structure.
    Is it possible to do it.?
    May be it will make more sense if I say, we want to edit WSDL of Database adapter and expect same adapter to go to the new schema connection (which we put there after editing the wsdl).
    I hope I explained and its the right place to ask the question.
    thanks in advnace

    Hi there,
    the best place to ask DBAdapter questions is probably Integration - Adapters.
    Integration - Adapters
    If in design time you create your database connection with one username but import tables belonging to a second username, then the toplink-mappings.xml will contain explicit schema references. This can cause troubles switching from development to production.
    At this point best thing you can do is edit toplink_mappings.xml and search and replace i.e. "SCOTT." with "". That will reduce any qualified table references in that file with unqualified ones, i.e. SCOTT.EMP -> EMP.
    If your (subsequent) problem is at runtime logging in as one user but wanting to interact with tables belonging to a second user, then in application-deployments/default/DbAdapter/oc4j-ra.xml, and in connectors/DbAdapter/DbAdapter/META-INF/ra.xml you could configure the property tableQualifier="<secondUserName>". However you will still need to make sure there are no explicit schema references in toplink_mappings.xml before this advanced 'tableQualifier' setting can take effect. This 'tableQualifier' setting was what Doug was referring to.
    Thanks
    Steve

Maybe you are looking for