ADF: Load the custom properties

Hello.

I use JDeveloper 11.1.1.7.0

I work in my ADF Application, and I need to add the classic external properties file: path to the models, maximum number of something, keywords... So, my custom business app settings.

Well, I tried to change the classpath in the startWeblogic.cmd, to add the path of the config file, so I did it in my code:

this.getClass().getClassLoader().getResource(configFilename);

but it did not work.

I tried to request a plan, but it did not work. Maybe I did this in a bad way?

ADF - config.xml is generated when you run a page and, if I change it before running, then my changes are overwritten.

ADF - settings.xml, this could be a solution? Could someone give me an example?

Any help is very much appreciated. Thanks to you all

If your properties file is contained in your web application, you can try something similar to this:

FacesContext ctx = FacesContext.getCurrentInstance ();

ServletContext servletContext = ctx.getExternalContext () .getContext () (ServletContext);

String filePath = servletContext.getRealPath("/config/yourConfigFile.properties");   It's relative to the context root virtual path web app

If the configuration file is external to your web application, you can pass the file path as parameter(-DYourArgName=path) JVM (or admin) managed server starts (by editing the scripts startWeblogic or setDomainEnv) and then retrieve this value in the code with:System.getProperty("YourArgName");

Dario

Tags: Java

Similar Questions

  • Add the custom properties to the standard UI element

    Hello

    is it possible to add custom properties similar to id or objectName to a standard user interface elements such as textfield and radiogroup?

    Best regards

    Wildcat

    You can use
    string myValue property: "myValue".
    (or the value later to access it as name.myValue = "123")

  • How to load the opencard.properties when you use OpenCardFramework as a Jar?

    Hello

    I use the OpenCardFramework as a plug-in in eclipse project, when the other project to use, the opencard.properties is not found.
    So I put the opencard.properties file in the [java.home]/lib/opencard.properties folder, it works.]

    But I want to put opencard.properties file in another project, then how to load the file.

    Thanks in advance!

    CardTerminals.waitForChange
    CardTerminal.waitForCardPresent
    CardTerminal.waitForCardAbsent

  • Sent to the customer properties

    Hello world

    At the push of Google and Apple can be sent with the message (payload), properties (name / value) to the client application on the device.
    Is it possible to Blackberry?

    Thank you

    Sorry for my English

    With the BlackBerry, the message payload can be anything you want. Size of the message total is limited to 8 k but with Push Public (BIS), and you should keep this little with BES as well.

  • ASD ask an element of the catalog and custom properties

    Just curious if anyone else encountered problems with properties custom when you use ASD and demand action from point of catalog.  For example we are defining the name of business group in a custom using {custom.vCAC.BusinessGroup.Name} as the value of a custom property property.  Weventually hen requesting a plan detailed in the traditional way, it is calculated and the name of group in this area.  But when you ask the same through the ASD action plan, it is not evaluated.  I get "{custom.vCAC.BusinessGroup.Name} ' as text in the field."  Someone at - he found a solution to this?  Thank you


    Mike

    Custom properties are not sent by default with ASD... you get 5 "global variables"...

    _asd_tenantRef

    _asd_subtenantRef

    _asd_catalogRequestId

    _asd_requestedFor

    _asd_requestedBy

    _asd_subtenantRef is the id of the business group...

    You could catch the name like that...

    var vCACCAFEBusinessGroupId is System.getContext () .getParameter ('__asd_subtenantRef');.

    var vCACCAFEBusinessGroupObject = vCACCAFEEntitiesFinder.getBusinessGroup (vCACCAFEHost, vCACCAFEBusinessGroupId);

    var businessGroupName = vCACCAFEBusinessGroupObject.name;

    L System.log (businessGroupName)

    To get to the back of the custom properties, you could do that

    customProperties var = new Properties ();

    customProperties = vCACCAFEBusinessGroupObkect.getCustomProperties ();

    This property returns an array of properties...

    You can then loop through each object properties in the table and get the key/value

    Hope that helps somehow!

  • Executable cannot find the custom error code file

    I'm building a LabVIEW 2013 application on a Windows 7 computer and deploying it to a Windows XP computer. My application has a custom error code file, stored in -- errors.txt, but my executable on the Windows XP machine can't find the custom error file and returns only the string of appeal for all errors that occur.

    When you use is not an installer, I tried to copy the error code at all locations listed here: http://digital.ni.com/public.nsf/allkb/6077DBEDA4F9FEE3862571F600449501 but the application still does not load the custom errors. I have the box checked to "Error Codes customized Include" in the construction specifications.

    When an executable of construction and the development of Windows 7 to XP, where do I put the custom error code file? It is found in Program Files (x 86), but find not because it's XP?

    It's been a few months that I posted this question and I do not know if someone cares about this track, but the solution I found was to put the custom in error code file \National Instruments\Shared\Errors\English\

    There are other places that the runtime will look for the custom error codes (I tried all the ones listed above), if the same error codes exist in 2 places the error popup will appear two error messages. Error default 1, it looks like:

    LabVIEW: An input parameter is not valid. For example if the input is a path, the path can contain a character not allowed by the operating system such as? or @.
    =========================
    NOR-488: Command requires GPIB controller charge controller.

    So if you have a custom error code file and it is available in 2 places that LabVIEW RTE check error codes, you will get the same message before and after the =.

    List the error as "still included" file when building the executable or by checking the box to include files in error did not tour, obviously. Unless you create a Setup program to distribute the application, the error code file must be moved manually. Shared\Errors file works best for me because it's a place that makes sense.

    Also, don't worry - it doesn't me taken 5 months to understand this point, I do not update all my loyal followers (ha) with a solution.

  • Trying to change some custom properties in vCAC when calling a stream of vCO

    I must have vCAC call a vCO stream, run a few commands and use the output to change the custom properties in the vCAC for the current build only.

    I got called vCO for a generation of vCAC flow and serve custom input for my workflow properties. The problem is, I have not been able to put the information in vCAC. I found a stream that will change the properties of the model, but I want to just change the running instance custom properties when the stream is called, then I can use them as inputs for another stream of vCO later during the generation.

    Any help in the right direction would be greatly appreciated!

    If you have the package of extensibility (now included in the vCAC plug-in version), you can use the action "addUpdatePropertyFromVirtualMachineEntity".

    For the entity of the VirtualMachine object just call virtualMachineEntity = vcacVm.getEntity ();

  • Download vCloud VM Custom Properties

    Hello

    I try to get the custom properties (product section) a vCloud VM via the api, I can get the label and description, but the value I receive is not set.

    When you try to retrieve the custom properties via vmtoolsd inside the guest os, I can see the value properly, but I need to get the value of vCo through the vCloud API.

    Thank you.

    Hello

    To get a value I follow these steps:

    if ((!vApp) || !(parameterKey)) {
        return null;
    }
    //System.log(vApp.toXml());
    var productSections = vApp.getProductSections();
    
    for each ( var productSection in productSections) {
        var catList = productSection.categoryOrProperty;
        var elements = catList.find(new VclProductSectionProperty()) ;
        for each ( var cat in elements ) {
            if ( cat.key == parameterKey ) {
                return cat.valueAttrib;
            }
        }
    }
    return null;
    

    It is inside an action of "getVAppCustomParameterValue" with VAPP and parameterKey as a starter and a returned string.

    Christophe.

  • Find and load the predefined tools - puzzled

    Hi all

    I am trying to add a symbol of 'copyright' to a layer using the predefined custom form I know there * somewhere *.

    When I click on the Amoeba Custom Shape icon in the top bar, my choices are the Starburst or sewn Patchwork color target.

    AHA! I say (prematurely) blissfully - I'll go to the low speed which gives me the menu drop-down & replace, with the set that contains the copyright symbol.

    So I go to this menu and see 'Aero '.... "Brushes of artists... etc" and none who have custom shapes.  On Plan B.

    I try «Load tool Presets...» "and I'm in my Photoshop CC directory / Presets / custom... Forms and it is empty. Therefore any pre-selection documents.  Weird, I think, because I loaded the layer and brush presets before. So maybe this directory is for games that I create myself?  Not a clue.

    So I try the preset manager and see if clicking on the form of copyright and by dragging on my page will work... No, he draws an arrow shape.  It's full of hope, because the arrow was one set of presets, even if it wasn't the one I tried (many times) to select. Yay - I'm one of the suction cups.  Boo - I can't one I want.

    I'm puzzled.  Beat.

    How to load the custom shape set that includes arrows, Copyright, trademark, etc. ?  I'm about to cry with frustration!

    Hello

    What operating system do you use?

    With the custom shape tool selected, you should see the word form in the options toolbar.

    Click on the box just to the right to see where you can take different forms.

    If you want to change the settings click on the gear icon bit and select one from the bottom of the list.

    In your case, the copyright symbol is in the default and symbols form presets

  • definition of custom properties

    Hello
    I want to set the custom properties on the controls in the OnRenderScreenEvent or OnGetScreenEvent Manager. How can I do?

    Thank you
    Fox

    Adjustable only custom on control in OPM properties. You can not dynamically set them at run time. What you can do is to push additional parameters in the context of the speed through the OnApplyTemplatesEvent.

    Published by: Kristy Van Der Vlist on 13 June 2012 18:03

  • Grabbing custom properties of a Portlet

    Hello

    I defined some custom for all of my portlets properties, and I was wondering if there was a way to retrieve these values using an instance of IPortlet.

    Initially, I found this tutorial: http://edocs.bea.com/en/alui/devdoc/docs6x/aluidevguide/tsk_prc_ali_queryingaliobjectproperties.html

    But it seemed simply exaggerated. If the mark is the only way to get this information, what is the easiest way to get this IObjectQueryRow using the portletID?

    Thank you.

    I would first make sure that what you're trying to do can not eb accomplished with preferences instead of the custom properties.

    If you stay with the custom properties,

    Object IObjectManager = session.getObjectManager (ObjectClass.Portlet);
    IObjectQueryRow portletObject = objectManager.querySingleObject (portletRequest () .getPortletID ());
    portletObject.getExtendedData () .getStringValue ("my property")

  • Can I use charger property on a main sequence to load the properties in the subsequence?

    Hi, I tried to use the shipper of the property to load limits and variabels local values in subsequences of the main sequence.

    I can export all properties for my main sequence and all subsequences in the export function within selecing .

    When I try to load the file exported by using the property loader I get different errors depending on the format, with that I imported/exported.

    For the error of iget text files or csv-17100

    "The file format is incorrect near 'StationGlobals' section.  Make sure you use start and end markers correctly. »

    To get an xl format I get error - 18

    "Stage of charger property has no import or export properties.
    310 property values have been found.

    43 property values were imported from 920 or lines of data.

    There is no where close to 920 data lines or 320 properties in the file exported.

    If I use the property loader to load the properties to just hand it works very well, is it extra formatting that I do for the file before you import it or is it not possible to load the properties in a subsequence of a property to hand charger?


  • FDMEE 11.1.2.4 - how to load the same record source of 2 different custom in HFM members

    Hi Experts,

    We have the following situation:

    We need download a source document unique member 2 custom end balance as well as two rollforward Member custom movement 2 (additions, for example), the SAME account.

    In our GL, we have separate accounts for the additions, disposals, depreciation, etc.   In HFM, we use custom for these last members.

    I tried the multi-dimensions mappoing member card custom 2 individual based on the story.   It works fine, but when I add another condition by using the same account of source and card balance end Member, he only ended up filling a 2 custom members (according to what has been covered last importing).

    What would be the best way to load a single 2 custom members (same account) source document?

    I wanted to use the accounts of logic since I know that would work, but our financial team do not accept this approach.

    It is even possible to load the same record of 2 different HFM Member?  Even if we loaded the file even a second time in another place, I think that it still would replace what took the first time, instead of loading again to another custom on the same member account.  Even if we loaded to HFM on 'merge '?

    Any ideas at all would be appreciated.

    Thank you
    Mark Smith

    Why your financial team will not accept the approach of the accounts of the logic? He is the obvious solution to your problem. FDM or FDMEE, you can only load on the data at the intersection of a target element. If you want to load the same piece of data at several intersections in the target, then you need to have this piece of data repeated in data sources n then you will need something in the source that could identify how unique each copy so you can map correctly. As noted it is one of the main functions of the accounts of the logic, other approaches are likely to be messy, more prone to error and much harder to verify.

  • How ATG choose the custom OutputConfig.properties

    Hello

    I have a custom OutputConfig.properties in which I use the custom definition file, I want to ATG to fetch this file custom definition rather than pick up the General config or defined in the ProductCatalogOutputConfig.properties XML output currents. Please let me know how we can go about this?

    Thank you

    Replace the definition file.

    /atg/commerce/search/ProductCatalogOutputConfig

    definitionFile = / path-to-custom-output - conig.xml

    Peace

    Shaik

  • LOV cascading if I don't have only one table with the customer name and the name of the product in the ADF.

    Hi Please help me how to use cascade, if I don't have only one table with the customer name and the name of the product in the ADF... I use Jdeveloper 11.1.

    For the client, I used customer VO with client list to fill but to populate the product that I use bind variable PrODUCT_NAME select distinct from TABLE where client_name =: bindCustomer

    so first of all, I need to set the variable of liaison on behalf of the selected customer.

    Can you please tell me how to set this variable binding in this case.

    After you set the LOV to your product attribute, correspondting VO in the LOV will appear under view accessors.

    Change the accessor of the view, you will see the variable binding. Set its value to the customer field of the parent object.

    Visit this link: https://www.youtube.com/watch?v=nXwL2_RP7AQ

    Kind regards

    Elias.

Maybe you are looking for