Using hierarchyial property files definitions for localization

Hi,
I am interested in knowing about tools or techniques using which I can establish a hierarchial properties files.
Eg: I have "Ok" buttons being used all over my application. I want to have a common file that defines the key value pair for OK and not repeat the value in each module specific properties file. Some thing like Java inheritance.
Appreciate help regarding the same.

Thanks Gautam for your reply.
Yes, I have tried. But as I mentioned above ATG DUST provides mechanism for unit testing that does not conform the unit-testing philosophy (yes, it is my IMHO and there probably should holly-war begin :-) ).
My idea is to create 'pure' unit tests with component properties harcoded in Java class files.
Edited by: 951305 on 7.8.2012 7.58
Edited by: 951305 on 7.8.2012 7.59

Similar Messages

  • [svn:bz-trunk] 17010: Bug: Watson #2652870 - use a property file to drive the custom configuration tokens as opposed to setting it in the command line

    Revision: 17010
    Revision: 17010
    Author:   [email protected]
    Date:     2010-07-22 02:52:41 -0700 (Thu, 22 Jul 2010)
    Log Message:
    Bug: Watson #2652870 - use a property file to drive the custom configuration tokens as opposed to setting it in the command line
    QA: Yes
    Doc: Yes - in custom tokens section, talk about the new token.file option
    Checkintests: Pass
    Details: Changed TokenReplacer to look for a token.file JVM option. If it's specified (eg. -Dtoken.file=/User/matamel/Desktop/token.properties), then TokenReplacer looks for a properties file where token name and values are specified. This allows someone to specify a file for custom tokens. Custom tokens can still be specified as straight JVM option and in case where a token is defined both as a JVM option and in a token properties file, JVM option takes precedence.
    Modified Paths:
        blazeds/trunk/modules/common/src/flex/messaging/config/TokenReplacer.java

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • How to use useMaxValue property in ODI for XML?

    Hello All,
    I am using 11.1.1.5 version of ODI. I want to use "useMaxValue" for which description is given as follows by oracle.
    When this property is set to true, elements for which maxOccurs is not specified in the XSD are considered as maxOccurs ="unbounded". Otherwise, the driver assumes that maxOccurs=1 when maxOccurs is not specified.
    when I use this property as useMaxValue in the JDBC url for XML technology I get the following error.
    ODI-1227: Task SrcSet0 (Loading) fails on the source XML connection XML FILE.
    Caused By: java.sql.SQLException: ODI-40717: Unknown parameter : usemaxvalue
    I am trying to get multiple records for the same elements in XML for this I am using this property. Is there any other way to get it done?
    Thanks in Advance!

    please try uimv or useimplicitmaxvalue. I justed tried, both works well. I will file a doc bug to track the issue, maybe document need change, maybe code, waiting bug updates.
    Edited by: tina.wang on Oct 7, 2012 9:28 AM

  • Using a Logical File definition in LSMW

    Hi all,
    is there any way that we can use a Logical File (defined in transaction FILE) as an application server file in the "specify files" step, instead of having to enter the physical path/file?
    Thanks in advance,
    Justin

    Hello,
    Check pages 46 and 47 of the following document :
    [http://sapabap.iespana.es/manuales/pdf/lsmw.pdf|http://sapabap.iespana.es/manuales/pdf/lsmw.pdf]
    You can only use a logical filename for subsequent programs (example direct input programs) not for the actual input file of your LSMW.
    Wim

  • How to use accumulate in file functinality for Essbase adapter

    Hi Folks,
    I need to load Head count file to a Planning application via FDM.
    In which for a specific location i need to use "Accumulate in File" while loading data, which is not available for Essbase adapter.
    Please some one help me to implement the functionality in FDM.
    Thanks in advance.

    Use an Essbase Load Rule as the FDM method to load (Integration Setting --> Enable String Load) the data and in the Load Rule itself set the data optoion to 'Add to existing' 

  • Partitioning previously used Windows NT File System for use with Mac and PC

    With reference to this thread I found when searching for a solution: Can Windows NT File System(NTFS) format external hard drive work on iMac?
    Below is the comment which led to me creating this new thread.
    "rkaufmann87Sep 8, 2014 8:26 AM Re: Can Windows NT File System(NTFS) format external hard drive work on iMac?
    in response to djj19
    djj19 wrote:
    Hi there,
    I am about to follow your advice also for the same issue, the worry I have is that when I select partition 1, it says "To erase and partition the selected disk..." and so I am worried that if I do this it will erase the current contents of the hard disk drive (which were copied there from PCs in previous use).
    If so, is there a way to use the hard disk drive with a mac without erasing the contents?
    Thanks
    Your case is different and NO do not partition the EHD yet unless you are prepared to completely erase your PC data. Before progressing though, do you intend to share the EHD with a PC and your Mac? If so this is not advisable but it is possible, however you will need to compromise. Please answer that question first and then we can proceed with some advice.
    BTW it's generally not a good idea to ask a question in a thread that has already been answered, particularly one that is 3+ years old! In such a case it's normally better to create your own thread. "
    The answer to the question in the above comment is that ideally I would like to use with both Mac and PC, why is this not advisable?
    Please discuss my best options. I am wondering if I could transfer the current contents of the disk drive elsewhere, partition (which would erase) the disk drive, then put back the contents along with the new files which I have been trying to put on in the first place?
    If this were to work would I then be tied down to only using this disk drive with a Mac?
    Thank you.
    Message was edited by: djj19

    Ideally it is best to have seperate (discreet) EHD's for a PC and Mac due to their differences in HD formatting. However, this is not always feasable but there are alternative solutions availble. Among those are:
    Creating and useing a Dropbox account that can be shared by PCs, Macs, IOS and Android devices. Dropbox allows for 2GB of free storage and additional storage is available for a small monthly fee.
    Another possiblity is formating an EHD so that it may be shared by both a PC and Mac, this format is FAT 32. The downside of doing this is the size of the files written to the HD are limited to 4GB.

  • When using SSL Word Files ask for username and password.

    I have SharePoint Foundation 2013 setup and it works great.  I need to allow users access when they are not connected to our local network, so for testing purposes I added a domain signed certificate and assigned it to IIS on 443. Internally when
    I try to access the site IE now ask me for a username and password and when I open a word file Word then ask me for a username password again. If it didn't do it in http why is it happening with https and how can I fix it?  Externally I know users will
    have to login but they should have to only login in once right?

    After doing some more research it seems that it is just not possible to use Windows authentication along with FQDN without being prompted for username and password in SharePoint.  Can anyone confirm this? I am sorry what a bad design of a program. 
    Did anyone think at Microsoft that organizations might want employees to work from outside of their network in the year 2013 using the username and passwords they already have.

  • Using Windows Azure File Service for Symbols Server

    Hi,
    I am trying to understand how to use the Windows Azure File Service (http://blogs.msdn.com/b/windowsazurestorage/archive/2014/05/12/introducing-microsoft-azure-file-service.aspx) for a Symbols Service.  I have not been able to find any documentation
    to help guide me with this specifically.  Most of the guides I have found discuss creating a VM and File Server in Azure.
    Thanks!

    Hi,
    Azure Files can only be used from an Azure VM within the same region as the storage account.
    it will work when setup a symbol server for azure VMs, if you trying to setup a symbol server for external client machines then this won’t work.
    Regards
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Specifying property file name for ant tasks

    How can I make the ant tasks look at a properties file other than
    kodo.properties?
    Thanks,
    Tom

    Tom,
    You can specify a properties file like so:
         <schematool ...>
              <config properties="my.properties"/>
         </schematool>
    -Patrick
    Tom Davies wrote:
    How can I make the ant tasks look at a properties file other than
    kodo.properties?
    Thanks,
    Tom
    Patrick Linskey [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Reading an external property file for adapter configurations (How-To)

    One thing that has bugged me is having to change an Adapter's property settings in the context file and then build and re-deploy the bundle to effect those changes. This really becomes a problem when you want to test a bundle in different server environments (Development, QA, Staging) and then finally deploy that same bundle to Production. Here at EnerNOC, all those environments have different message servers and database schema names, making it a real challenge to insure you're building the same bundle each time for the different environments.
    I played with a number of different ideas, but I wanted the solution to be Spring based. I finally settled on a rather simple solution to use external property files with the <util:properties/> tag of Spring, and then injecting the bean created from this into the adapters requiring different configurations.
    First, in the context file, I needed to add a new Spring namespace - http://www.springframework.org/schema/util:
    +<beans xmlns="http://www.springframework.org/schema/beans"+
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"*
    xmlns:osgi="http://www.springframework.org/schema/osgi"*
    xmlns:wlevs="http://www.bea.com/ns/wlevs/spring"*
    xmlns:util="http://www.springframework.org/schema/util"*
    xsi:schemaLocation="*
    http://www.springframework.org/schema/beans*
    http://www.springframework.org/schema/beans/spring-beans.xsd*
    http://www.springframework.org/schema/osgi*
    http://www.springframework.org/schema/osgi/spring-osgi.xsd*
    http://www.springframework.org/schema/util*
    http://www.springframework.org/schema/util/spring-util-2.5.xsd*
    http://www.bea.com/ns/wlevs/spring*
    http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd">*
    Next, I defined a bean for my property file:
    +*<util:properties id="serverProperties" location="file:./applications/MyApplication/server.properties"/>*+
    And then finally, I modified my adapter to inject a Properties object and use that to define the other properties in the Adapter:
    +*<wlevs:adapter id="MyMessageAdapter" class="com.enernoc.cep.message.adapter.MyMessageAdapter" >*+
    +*<wlevs:instance-property name="properties" ref="serverProperties"/>*+
    +*<wlevs:listener ref="HAInputAdapter"/>*+         
    +*</wlevs:adapter>*+
    With this change, I can now build and deploy a bundle once to whatever servers I choose, and modify the server.properties file in each environment to make the necessary changes for message servers and databases. In a multi-server enviroment this becomes really handy as our deploy script needs to only create and push server.properties files and not new bundles.
    As a nice-to-have feature someday, it would be great if Oracle could enable their <wlevs:/> namespace to recognize the Spring PropertyPlaceholderConfigurer feature, so that we could use placeholder variables for property values of <wlevs:/> specific tags.
    Edited by: Jim Leary on Feb 28, 2011 4:11 PM
    Edited by: Jim Leary on Feb 28, 2011 4:14 PM
    Edited by: Jim Leary on Feb 28, 2011 4:15 PM
    Edited by: Jim Leary on Feb 28, 2011 4:16 PM
    Edited by: Jim Leary on Feb 28, 2011 4:17 PM
    Edited by: Jim Leary on Feb 28, 2011 4:18 PM
    Edited by: Jim Leary on Feb 28, 2011 4:19 PM

    Jim,
    You can use com.bea.wlevs.spring.support.ConfigurationPropertyPlaceholderConfigurer, which is based on org.springframework.beans.factory.config.PropertyPlaceholderConfigurer. For example,
    <bean class="com.bea.wlevs.spring.support.ConfigurationPropertyPlaceholderConfigurer">
    <property name="location" value="file:config/test.properties"/>
    </bean>
    <wlevs:adapter id="myAdapter" class="oracle.cep.sample.MyTestAdapter" >
    <wlevs:instance-property name="serverAddress" value="${serverAddress}"/>
    </wlevs:adapter>
    Manju.

  • How to use property file - sql query define in property file

    Hi All,
    Anybody please tell me how to use property file.
    I have placed sql query in propery file and I have to access this in my file.
    well so far this is my code but don't know how to implement in the following ...
    pstmt = con.prepareStatement("select * from registration where username=?");
    instead of writting the query I want to use the property file.
    so far I have developed the following code...
    FileInputStream fis = new FileInputStream("querysql.property");
    Properties dbProp = new Properties();
    dbProp.load(fis);is the code correct... or is there another way to access property file
    Please help.
    please reply soon....
    Thanks

    Before answering, check if it's already been done here http://www.jguru.com/forums/view.jsp?EID=1304182

  • Error Reading Property File in Portal Component

    Hello,
    I have created a portal component that calls an api that is located in a jar file.  The documentation on the Portal Component Structure specifies putting the jar file in the PORTAL-INF/lib directory, which I have done.  The problem is, my jar file reads a property file using ResourceBundle, but it doesn't find the property file.  I have placed the property file in the jar file, and throughout the portal component structure, but it just can't find it.  Has anyone else done something similar?  If so, where did you put your property file(s) for external jars that are used in the portal component.
    EP6 SP2 Patch27
    thanks,
    Keith

    Hi,
    I had similar issues and moved the property files to PORTAL-INF/classes.
    Best Regards
    Frank

  • How to read values from Property file into BPEL process local variable?

    I would like to use a Property file with some parameters e.g.
    <myparm1>12345</myparm1>
    How can I read from a BPEL process such a Property file and assign it into e.g. local variable "intparm1"?
    Where (in which directory) should I put this XML Property file to have it always available for reading?
    Peter

    Hi,
    You can also use
    ora:readFile( ) function as follow :
    ora:readFile(xml file location (ex. "file:///D:\\SOA\\FileAdapters\\readFile\\test\\test.xml"),xsd file location (ex."file:///D:\\SOA\\FileAdapters\\readFile\\test\\test.xsd"))
    inside the assign activity and assign this to the variable you want.
    regards
    arababah
    Edited by: arababah on Aug 10, 2009 12:55 AM

  • E-Commerce Gateway Question about Interface File Definition.

    Hello Gurus,
    Does anyone know if Oracle e-Commerce Gateway (11.5.10.2) deliver the Interface File Definition for Inbound Purchase Orders (850/ORDERS) - _'IN: Purchase Orders (850/ORDERS)'_ out of the box?
    I see Interface File Definition for OPM Purchase Order along with a bunch of other trx sets (like ASNI, INI, INO) but not Purchase Orders (850/ORDERS) in the instance that I am working... so just wanted to verify.
    Thanks
    Dave

    Following are some of the pros of using XML Gateway:
    1) XML is being accepted and more and more technologies are moving towards XML, so that "seems" to a future ready solution
    2) XML processing is real-time.
    3) Most of the maps for universally accepted standards are seeded in Oracle.
    4) You can use Oracle Supplier Network(Free service provided by Oracle) with your XML gateway to transmit/receive xml documents to a supplier who may or may not be accepting the format you are generating(e.g. if your PO is in OAG standard and your supplier is accepting cXML format, OSN takes care of translating your document)
    You might want to consider these points while deciding the technology.
    Nitin S. Darji

  • Property File  condition

    Hi
    I did one  file to file scenario  by using a property file.. that is.. my property file contain simple 2 lines of code..  that is...
    ABAP = FIRST RECEIVER 
    BW = SECOND RECEIVER
    It's working fine..   based onthat employee department wise it was sending the details to particular recever..  if  the Employee Department is ABAP then  his details was going to First Receiver..
    if  the Employee Department is  BW  then  his details was going to Second Receiver..
    It was working fine...
    <b>but now i want to specify one more condition.. that is... other that these two department emplyee details all i want to send one more receiver (Third Receiver)</b>for this.. what can i do.. where can we  write the condition.. and  message mapping what  can  do..
    plz suggest me..
    thansk
    Babu

    HI BABU,
    Just open it there will be + symboll for AND condition,
    [ ] symbol for OR condition, here we can add as many as VALUE for checking condition.
    GO to xpath condition TAB.
       Click on ICON or F4 help button you will get popup window thier u can use the conditions
    IF u think it's best answer reward it

Maybe you are looking for

  • OBIEE 11g bi_server2 issue

    Hi, I have clustered the environment(horizontal clustering) so Admin server will be 1 and we will have 2 bi_server which is bi_server1 and bi_server2. Here i am trying to "How To Start WebLogic Admin And OBIEE 11g Managed Servers Without Prompting Ad

  • ConfigMgr 2012 R2 and DMZ Questions

    I am working with a client who's security team has been a challenge.  They do not want to open any of the RPC Dynamic Range ports needed for communication between certain roles on the Primary Site server and a server they want setup in one of their D

  • RFC as sender

    hi i am trying to do RFC to JDBC scenario My question is when I execute the RFC in SE37 transaction code, how does my output of the function module goes to SAP XI to so that the data goes to JDBC. Please explain me how to execute the function modue i

  • Create user like ias_admin user but with less previlege in Oracle 10g AS

    Hi Friends, I am using Oracle 10g AS(10.1.2.0.2). I am using ias_admin user to admistrate it. Is it possible to create one more user like ias_admin but with less previleges like Read-only previlege and if so whats the procedure. Please suggest Regard

  • Imovie does "not respond " when trying to input videos from iphoto?

    On My IMAC when I click on iPhoto Videos to be able to use in a slide show the iMovie application quits responding and the curser spins until I force quit iMovie. What's going on? Thanks