Breaking up xml configurations?

Hi,
I'm wondering if there's an easy way to break up xml cache configurations into different (partial) xml files so that they can be easily included into other (master) xml files. That way one can easily reuse definitions without requiring to apply a single change to several files. Here's my current need:
I want to have several nodes that ultimately need to work/share a single distributed map. However there are two types of node participants:
WRITE-type nodes which can only do puts to the map
READ-type nodes which can only do reads
On top of this the storage is only enabled on the READ-type nodes (that's fine since I can do it using the init-param tags based on passed properties.)
Now, the key here is that I want the WRITE-type to use a distributed scheme and READ-type nodes to have a nead cache configuration with a back-scheme coinciding with the WRITE-type map. In both cases the real distributed cache is the same.
I don't seem to get away with this config unless I have 2 different config files for READ and WRITE types.
Am I missing anything? I would really like to avoid coding this into the application.
Also I was thinking that maybe I could use the include capabilities of xml, but either Coherence does not follow the XML standard or I've messed up something..
Anybody has had a similar problem? Am I the only one that wants to access a distributed map from different cache configurations?

Hi,
You can use, for example, property name to override scheme name:
<code>
<cache-mapping>
<cache-name>someCacheName</cache-name>
<scheme-name system-property="some.property">default-scheme-name</scheme-name>
</cache-mapping>
</code>
That will allow you to use a single configuration file and specify an actual scheme by using -Dsome.property=name override.
Regards,
Dimitri

Similar Messages

  • XI have to break/split XML-File into N times a XML Message

    Hello,
    Can anyone help with this one. I guess this is not an easy exercise but I need to solve it urgently.
    XI gets a XML-file from a system.
    This file has N times a element <XBT>.
    Every time XI gets such a file the number of <XBT> is different.
    XI haves to break this xml into N xml messages according to element ><XBT> in order to send them to Sap sequentially.
    For example the following XML file have to split up into 2 xml files (the elements XBT occurs 2 times)
    How can this be done?
    <mt_BubaBestand>
    <b><XBT></b>
      <Algemeen>
         <Verkooporganisatie>5000</Verkooporganisatie>
         <Distributiekanaal>50</Distributiekanaal>
         <Productgroep>50</Productgroep>
         <Ordernummer>123123</Ordernummer>
         <Verkoopgroep/>
         <Documentdatum>20061207</Documentdatum>
         <Medewerker_nr>e60217</Medewerker_nr>
         <Medewerker_naam>Hermans</Medewerker_naam>
         <CRM_nr/>
         <CIFDedicated/>
         <Klantgroep/>
      </Algemeen>
    <b></XBT></b>
    <b><XBT></b>
      <Algemeen>
         <Verkooporganisatie>5000</Verkooporganisatie>
         <Distributiekanaal>50</Distributiekanaal>
         <Productgroep>50</Productgroep>
         <Ordernummer>123123</Ordernummer>
         <Verkoopgroep/>
         <Documentdatum>20061207</Documentdatum>
         <Medewerker_nr>e60217</Medewerker_nr>
         <Medewerker_naam>Hermans</Medewerker_naam>
         <CRM_nr/>
         <CIFDedicated/>
         <Klantgroep/>
      </Algemeen>
    <b></XBT></b>
    </mt_BubaBestand>

    This is pretty standard procedure if you are posting these messages to R/3.  As was pointed out in the weblogs above, when using IDocs you don't need to do any tricky configuration.  Just make sure that your XML structure is set correctly (ie:  1 to unbounded, etc) to the limits that you want, and XI will automatically loop the mapping process for each instance of the <XBT> item that it detects in the source message.  You mentioned:
    <i>For example the following XML file have to split up into 2 xml files (the elements XBT occurs 2 times)</i>
    Well, you don't actually split it into two XML files per say, XI just processes the source message straight to multiple IDocs using the IDoc adapter.

  • Page Break In XML Publisher RTF Templates Are Not Working

    Please refer to the Metalink Doc below:
    Subject:      Page Break In XML Publisher RTF Templates Are Not Working.
    Doc ID:      559111.1      
    Type:      PROBLEM
    Modified Date:      24-MAR-2008      
    Status:      MODERATED
    In this Document
    Symptoms
    Cause
    Solution
    References
    This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process, and therefore has not been subject to an independent technical review.
    Applies to:
    Oracle XML Publisher - Version: 5.6.3
    This problem can occur on any platform.
    Symptoms
    Using XML Publisher version 5.6.3 in 11.5.10.
    Find <?split-by-page-break:?> syntax is ignored.
    EXPECTED BEHAVIOR
    Expect page breaks to occur at point set by "split-by-page-break:" code.
    STEPS
    The issue can be reproduced at will with the following steps:
    1. Create a template.
    2. Call split-by-page-break: inside a loop.
    3. Output is not formatted correctly, page break call is ignored,
    Cause
    Unpublished BUG 5011628 SPLIT-BY-PAGE-BREAK NOT WORKING IF ADDED SORT WITHIN DYNAMIC GROUP
    Unpublished BUG 5011628 matches the client issue as it is a call to split-by-page-break inside a loop.
    Fix is in ScalableStringList.java version 115.4.
    This is delivered in <Bug 6165466> XDOFX:CHR(N) FUNCTION FAILING.
    Solution
    To implement the solution, please execute the following steps:
    1. Apply Patch 6165466 when it is released.
    2. Test your report.
    References
    Bug 6165466 - XDOFX:CHR(N) FUNCTION FAILING
    Keywords
    XML~PUBLISHER; LOOP; DYNAMIC~GROUP; PAGE~BREAK;
    Help us improve our service. Please email us your comments for this document. .

    Hi JDev,
    Check this out:
    http://oracle.anilpassi.com/xml-publisher-developing-reports-printed-on-pre-printed-stationary-2.html
    Hope this might help.
    Thanks

  • How to generate an XML Configuration File for EBS Source Type

    Hi,
    We have installed SES, I want to integrate it to enable for searching repository contracts.
    In the sources I have selected oracle.apps.okc.repository.textsearch.server.RepHeaderSearchExpVO.
    For this source I need to specify the Configuration URL.
    Here I need to provide the path for configuration XML file. But before that I need to generate the XML Configuration file.
    Is there any steps on how we can create this XML file.
    like I would want to know how we can create the XML file and on which folder on the server should I be putting it
    Thanks

    Hi there,
    We are running into same issue and need the exact same information. Can someone help with this question on priority?
    Thanks,
    Darshan

  • Problem with XML configuration

    Hello gurus!
    I have a problem because I'm trying to get a value from the WF container to expose it through SWFVISU as a dynamic parameter. The way I tried to do this was to manipulate the UWL XML to create a custom attribute and declaring the value comes from the container, but since I modified this, anything in SWFVISU is not responding. Even if I delete the pcd of some task and then call this task, everything works normally and no changes are noticed. Somebody told me that I have to return to my original XML configuration and I deleted my new XML configuration, cleared cache and the problem persists. Any ideas on what am I missing about this?
    Regards IA

    Hi,
    >but since I modified this, anything in SWFVISU is not responding.
    What do you mean by this? Are you expecting that the changes you do in your XML would somehow appear in SWFVISU? (This will not happen.)
    Please upload the custom XML again to the portal (with priority medium or high). Refresh the cache, and log out from the portal. Log in again, and create new test case (=start new workflow). These are all just steps to ensure that the changes you have done to the XML will apply.
    What is the result? Is the custom attribute working? If it is not, I would check any examples that you can find in SAP Help or SDN about dynamic attributes, and compare them to your own XML. If you still cannot find the problem, post your XML task configuration here (and explain what you are trying to achieve), and probably someone will help you.
    Regards,
    Karri

  • JSF 1.2 web.xml configuration parameters

    Actually, I know these JSF 1.2 web.xml configuration parameters:
    javax.faces.CONFIG_FILES
    javax.faces.DEFAULT_SUFFIX
    javax.faces.LIFECYCLE_ID
    javax.faces.STATE_SAVING_METHOD
    Are there any more available?
    (I have to study its performance implications in conjunction with RichFaces ones).

    The JSF 1.2 specification document would contain the information you're looking for.

  • XML configuration file to link to frames in Flash - As2.0

    How can I set the url or link attribute from the XML configuration file to link to frames in my movie instead opening a HTML page? I am using Actionscript 2.0
    Thank you.

    What type of file is using this xml data?  If it is being read by the AS2 file, then your data should resemble either frame labels or frame numbers.

  • Log4j: XML configuration file problem

    Hello,
    I set up some logging in my existing application with log4j and an xml configuration file. Now I made some changes to my package structure, and some problems occured. So I thougt of setting the logging level of one of my loggers (named myapp.iointerface.DBAccess in the config file). So the only change I did was adding a <param name="Level" value="TRACE"/> to my logger. Now, log4j complains when it reads the configruation file:
    log4j:WARN Continuable parsing error 36 and column 11
    log4j:WARN The content of element type "logger" must match "(level?,appender-ref*)".My config file:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
    <log4j:configuration debug="false" xmlns:log4j="http://jakarta.apache.org/log4j/">
         <appender name="RootConsole" class="org.apache.log4j.ConsoleAppender">
              <param name="Threshold" value="DEBUG"/>
              <param name="Target" value="System.err"/>
              <layout class="org.apache.log4j.PatternLayout">
                   <param name="ConversionPattern" value="%d{dd MM yyyy HH:mm:ss} %p %C %nIn Zeile Nummer: %L %m %n%n"/>
              </layout>
         </appender>
         <appender name="LoginInfo" class="org.apache.log4j.FileAppender">
              <param name="Threshold" value="TRACE"/>
              <param name="File" value="${user.dir}/login_info.log"/>
              <layout class="org.apache.log4j.PatternLayout">
                   <param name="ConversionPattern" value="%d{dd MM yyyy HH:mm:ss} %p %C %nIn Zeile Nummer: %L %m %n%n"/>
              </layout>
         </appender>
         <appender name="DBConnectionInfo" class="org.apache.log4j.FileAppender">
              <param name="Threshold" value="TRACE"/>
              <param name="File" value="${user.dir}/db_connection.log"/>
              <layout class="org.apache.log4j.PatternLayout">
                   <param name="ConversionPattern" value="%d{dd MM yyyy HH:mm:ss} %p %C %n%m %n%n"/>
              </layout>
         </appender>
         <logger name="myapp.windows.MainFrameController" additivity="false">
              <appender-ref ref="LoginInfo"/>
         </logger>
         <logger name="myapp.iointerface.DBAccess" additivity="false">
              <param name="Level" value="TRACE"/>
              <appender-ref ref="DBConnectionInfo"/>
         </logger>
         <root>
              <param name="Level" value="DEBUG"/>
              <appender-ref ref="RootConsole"/>
         </root>
    </log4j:configuration>Does anybody know what's wrong with that? I don't understand and found nothing googling it netiher. The strange thing is, that logging messages with level TRACE are recorded in the destination file, but the level id DEBUG.
    Thx,
    Julien

    If you look at the error, the parser expects level and not Level
    So :
    <param name="Level" value="TRACE"/>should be :
    <param name="level" value="TRACE"/>Same goes for :
    <param name="Level" value="DEBUG"/>That will solve the problem (even though it is not a critical error)!

  • Is it possible to call a web service via UWL XML configuration?

    Hello
    Is it possible to call a web service via UWL XML configuration?
    If yes then an example would be great.
    Roy

    Hi Roy,
    Yes, yes it is possible.
    Yesterday only I came across the following document which will answer your questions:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20f4843e-314f-2a10-2a88-8c4afa20dda6?overridelayout=t…
    ~Ashvin

  • XML Configuration or Annotations in Hibernate

    I have been kicking Hibernate around for a couple of days and would like y'alls 2 cents. A bean can have its metadata set up in a *.hbm.xml configuration file or the same can be done via annotations, what has worked best and what have been the disadvantages of each?
    I have used xml configuration in the past and having an xml file for each bean class got to be an annoyance once there were more then just a few beans to manage. With annotations the xml file would not be needed and the information would be in the bean class. I like this idea but since I have never used annotations extensively what issues have been encountered by y'all.

    There are issues are around transparency. The idea of a POJO was originally that the code wasn't coupled to a framework. Annotations effectively do couple you to the framework again, but you have to ask "is this actually a bad thing?". Unless you're in the habit of chopping and changing persistence frameworks, then it's not so bad. I had an issue recently whereby I was generating classes from XML schemas as part of the build process, and couldn't easily put Hibernate annotations onto the classes without a manual step. I did actually find a JAXB Maven plugin that did it, but I went with XML config for persistence anyway as it gave me some extra control that the generated code didn't, namely some properties were transient as regards persistence, but still necessary on the beans
    And there's the other reason you might not want to use annotations: when your DB schema changes, you have to recompile and re-deploy the code. How much of an issue that is, is entirely dependent upon your situation. It usually happens anyway

  • Line Break in XML?

    When I use "<br>" within my XML database, I get this
    error:
    "Expected end of tag 'br'(9,43)"
    I have tried <br>, </br>, <br></br>
    and searched... but haven't yet found a solution.
    Should I be using some kind of hex code?
    Thanks in advance for the assistance!
    Dan

    I spent a whole bloody day trying to solve this one!  Thanks for the advice here guys....
    Here's the "How to..." instructions I made for myself (I will need this later as a function of age)....
    Inserting <br /> line breaks in XML content:
    It's necessary to add a line of code directly after the dataset at the top of the (spry) htm page that sets the columnType:
    var dsRegInfoElem = new Spry.Data.XMLDataSet("regisinfo.xml", "sites/level1/site",{distinctOnLoad:true});
    dsRegInfoElem.setColumnType('datetime','html');<!--This line is necessary for the line breaks in the xml CDATA sections to work-->
    Make sure the xml tag that will contain the CDATA wrap is identified (here it's the <datetime> tag).
    Then, in the XML file, add the CDATA wrap just inside the tag like this:
    <datetime><![CDATA[texttexttexttext]]></datetime>
    Now just insert the <br /> where I need it!
    <datetime><![CDATA[texttext<br />texttext]]></datetime>

  • Setting time in  adf-faces-config.xml configuration file

    Hello check this link
    http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_convertDateTime.html
    this specifies "Timezone can be set per web-app in adf-faces-config.xml configuration file. If timeZone is not set on the converter, then timezone will be defaulted to the value set in adf-faces-config.xml configuration file. If it is not set in the configuration file, then it will be defaulted to GMT."
    how to set timezone in adf-faces-config.xml configuration file please specify
    Regards
    Mayur Mitkari

    where in adf-faces-config.xml i can add this line , and howThis might help: http://docs.oracle.com/cd/E24382_01/web.1112/e16181/af_global.htm#BJECDDDE

  • Annotated configuration vs XML configuration

    I have to decide whether to move ahead and use Annotations for an application for a major enhancement task.
    XML configurations can be replaced with annotations for the following items:
    1. Spring related (EJB configurations, bean configurations (layers of dependent java classes getting injected))
    2. Hibernate related (getting rid of HBM XMLs)
    But, developers are not that keen to move ahead with the annotation thing, since during development they will have to re-compile every time there is a minor configuration change.
    Now, what I can foresee is that when the application is in production, there will be few (maybe none) configuration changes. So the XML files stay unchanged anyways and beats the no-need-to-re-compile logic!
    And yes, Client wants to shift to the latest and greatest of Spring and Hibernate. So just giving them new third party jars packaged with the application without introducing the usage of the new features, seem to be irrelevant!
    So how do I balance both ends and decide, keeping the developers at ease during development phase? Will it be a good idea to migrate from XMLs to Annotations as a separate developmental activity once the business enhancements are taken care of?
    Sorry if I was not able to express myself clearly. Please do revert in that case as well.

    LearningCurve wrote:
    I have to decide whether to move ahead and use Annotations for an application for a major enhancement task.
    XML configurations can be replaced with annotations for the following items:
    1. Spring related (EJB configurations, bean configurations (layers of dependent java classes getting injected))
    2. Hibernate related (getting rid of HBM XMLs)
    But, developers are not that keen to move ahead with the annotation thing, since during development they will have to re-compile every time there is a minor configuration change.Sounds like idiocy to me.
    First when I work on my computer nothing gets changed, period, until I decide to change. Thus I don't need to 'rebuild' anything because of some other change until I decide it is appropriate.
    Second I commonly rebuild everything from scratch for every single build. I simply do not trust the dependency checking system. And it is isn't like I am running on a 286 with 640k of memory. Builds often run so fast that I sometimes need to rebuild several times because I looked away momentarily and when I looked back the build is finished and I am not sure I started it.
    Third, what sort of "minor" change will require a rebuild every time such that it isn't accompanied by code changes as well? It is a 'minor' change to add a new column to the database but if the developer is updating to the code that uses that then they should be updating the database as well, and I can't imagine that taking less time than a complete rebuild.
    Fourth sounds like a bunch of cowboy programmers that like to stick their fingers in everything. Certainly where I have worked someone (me) would be solely responsible for the database layer. I wouldn't be making a "minor" change that didn't have code and database impacts.
    And yes, Client wants to shift to the latest and greatest of Spring and Hibernate. So just giving them new third party jars packaged with the application without introducing the usage of the new features, seem to be irrelevant!
    That isn't a reason. With no other requirement than "let it be new" that isn't point in favor. If the client is going to be actively messing with the code of the system then someone better looking into understanding exactly what it is that the client expects to be delivered.

  • Single XML configuration file for all the SSIS packages(including parent and child packages)

    Hi
    I have some 16 ssis packages. source Db and destination Db for these packages are common. I am calling these child packages in a master package.
    I want to use only one XML config file for this master.
    How do i use same for all child packages?
    and can i do it with parent package variable?

    I created a master package with a variable master, and in value i have entered the configuration file path.
    Hi vjp dinu,
    You should create variables in the parent package to pass values to variables in each child package rather than pass the file path of the XML Configurations file of the parent package.
    As Visakh mentioned, you can achieve your goal by creating corresponding variables in the parent package for each child package, and enable Package Configurations for the parent package so that you can control the values through the XML Configurations file
    for the variables of the parent package.
    Supposing there is a variable FilePath in child package 1, a variable ServerName in child package 2, then, we need to create two variables pFilePath, pServerName in the parent package. After configuring the Parent package variable in each child package (e.g.
    mapping pFilePath to FilePath, pServerName to ServerName), you can enable XML Configurations for the parent package, and expose the value property for both pFilePath and pServerName variables. In this way, you can modify the XML Configurations file of the
    parent package and the specified values will passed to the child packages.
    Reference:
    http://microsoft-ssis.blogspot.com/2011/06/passing-variables-from-parent-package.html 
    Regards,
    Mike Yin
    TechNet Community Support

  • Server.xml configuration files

    Hi all,
    The server.xml configuration files have a common defintion for different servers? or each server has its own definition.
    Thanks.

    each has its own.

Maybe you are looking for

  • Urgent:Need help on UIX page in partial page rendering not working in Mozil

    Hi , I have designed two page (customxslt and seedxlst)that have <form name="UploadXlst" usesUpload="true" method="get"> to upload the file. Base on a dropdown value yes or no on seedxlst i am calling other page customxslt .But when i click on submit

  • Missing patch files when applying patch

    Hello I have been trying to apply the Oracle 8.1.5 patch and I have followed the instructions given. On running the script (sh linux815patch.sh)it goes through the motions of installing the patch for about a second and then stops with a message "miss

  • Starting with a Blank Page

    Anyway I can start with a blank white page and create my way and not one of the templates. Why don;t they give us a blank white page as a selection from the templates. This is also very annoying with iDVD too!

  • Lightroom 4. Adjustment brush.

    The adjustment brush only paints red. The color cannot be changed. Can I somehow reset?

  • Resizing circle: strange results

    Hi, I'm getting weird results after resizing a simple circular icon in Photoshop CS6 on Mac OS X 10.8. I'm resizing from 128 px to 60 px. The final icon is not totally circular: it has some excrescences on four sides. Tried every possible resampling