Decision Table values changes back after deploy.

Hi All,
I created Decision Table and filled it by some values.
Then I built my Rules Composer project and deployed it.
After that I changed some values in my Decision Table from RulesManager and uploaded their.
Then I deployed my Rules Composer again.
After that I looked in Decision Table from RulesManager again and saw that all values were changed back to their original values.
Does anybody knows is this feature or bug?

Hello SMatveev,
The functionality is as follows:
1. You selected the active version to open the project - made changes to the rules, uploaded this. This version though is the latest, it has not been activated. The rules project which will be open will still be the active version, that means the changes recently made will not be displayed.
2. You selected the latest version to open the project - made changes to the rules, uploaded this. This version is the latest as well as the active version. The rules project which will be open will be the latest version, that means the changes recently made will be displayed.
3. After the changes were made, you uploaded (even activated) the changes. The rules are changed in NWDS and uploaded, now the version of the rules as were in NWDS at the time of deployment will be the latest/active version of rules in the server.
The behavior you saw is expected. (3rd point)
The way to prevent this loss of modifications made to rules using rules manager, is to - first download the runtime version of rules from server using the option available in NWDS; make the required changes to this active version and upload this DC to server.
Best Regards,
Arti

Similar Messages

  • Changing preferences after deployment

    Does anybody have experience with changing preferences after deployment using InstallShield Tuner? I am trying to change the Comments Repository on a large number of deployments that were deployed using an MST created with InstallShield Tuner.
    In Office I'd use the Maintenance Wizard, but InstallShield Tuner does not appear to have that functionality.

    I know the registry key resolution, but I think that is such an ungraceful thing.
    It would be nice if Adobe would come out with some management products even if this does involve creating an msp file. It would fit nicely into the 'suite' thing.
    Oh well.....

  • Dropdown values becoming null after deployment

    Iam using jdev 10.1.3.4 and oc4j 10.1.3.4 server.
    we have a ADF table in a page in the application with three dropdowns. when i run the page in jdev the values are getting populated correctly for every record.But After deployment, for some records the values in the dropdowns are becoming null. we have 85 records in our Database for which only 5 records have this problem after deployment. But this works fine in local server.
    Any help will be appreciated.
    Thanks,
    Lakshmi.

    Thank you very much for answering...
    I can't send all the code because it needs plenty of files to run. I'll just describe the "critical" parts of it:
    - my main class extends JPanel and implements ActionListener + FocusListener + ListSelectionListener
    - the JTable is declared by private JTable myTable = null;
    - the table is inited by a call to a private void method, with the followind code:
       myTable = new JTable(cellData,colNames);
       myTable.setName("my_table");
       myTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
       //... - the table is then put in a scroll pane:
       sTable = new JScrollPane(myTable);and the scroll pane put in the NORTH of a JPanel.
    - I put a listener on the table by:
       myTable.getSelectionModel().addListSelectionListener(this);Here is the most part of the misfuntionning code... the table goes well until the listener generates events... then the myTable instance becomes NULL.
    Thanks in advance for thinking about the problem's causes,
    Cheers.

  • Screen resolution does not change back after using a projector

    Hi!
    My office uses several different models of macbooks, but there is a small problem with all the Airs. When I have been using them with a projector I have to change back the screen resolution manually (go to the system settings and change resolution). On the macbook pros, however, the desktop restores themselves as soon as the projector is disconnected. It seems to me that this should be the standard behaviour of all macs, does anyone know why it is not working on the Airs?
    Best regards
    Erik

    Hi Erik,
    I had this problem on a MacBook and resolved it by recreating some plist files.
    ~/Library/Preferences/ByHost/com.apple.windowserver.xxxxxxxxxxxx.plist
    ~/Library/Preferences/ByHost/com.apple.preference.displays.xxxxxxxxx.plist
    The xxxx's are your machine's EthernetID (MAC Address). I wouldn't delete, rather just move them to your Desktop and restart the computer. See if that resolves it.

  • How to move multiple decision tables values into results data object

    Hi Carsten and other experts,
    I am building a BRF+ function and have a question, I would probably try to give an example to better explain the issue.
    1. Function Signature
    Context elements:  C1, C2, C3
    2. Ruleset has two decision tables DT1 and DT2.
    DT1 take C1, C2, C3 as inputs to provide C4 and C5.
    DT2 takes C5 takes as inputs to provide C6.
    What should be results data object for function to get C4,C5 and C6 as Function Output parameters?
    I have tried different combination of structures and table and couldn't figure out how it behaves.
    Thank you
    Kris

    The function gets a result structure with components C4, C5, C6.
    In a ruleset assigned to the function you have a rules that calls the two decision tables DT1/2.
    Create a structure for DT1 with C4 and C5 as components. Make the structure the result of your decision table.
    DT2 has C6 as a result.

  • Profile changed back after fixing it

    3.6 installed itself this morning. I guess I chose the wrong item, as your profile manager did not explain what was going on. I did not choose default. After not getting my settings, I looked here, and found out about profiles for 3.6. The NEW profile had been created in C:\Users\Public. I then copied all of my old (only) profile to this new location. I restarted Firefox and found my settings again, though I had to reset ForecastFox settings. During this session I set several bookmarks. Then after my session, I went on to other things. I then returned to Firefox and found that all my settings (and bookmarks) were gone. I then found out how to start the Profile Manager and this time chose default. Something is very wrong about how you went about this.

    Sorry that you had the problems you described after the Firefox program update, but that isn't the way Firefox is supposed to work or even does work if something went wrong as a result of an update or any other problem. Five or 6 years ago the developers changed the Profile Manager so that it doesn't appear when there's a problem; all Firefox 1.5 and later versions show a "Profile is already running ..." message instead of showing the Profile Manager window. <br />
    http://home.comcast.net/~the-edmeister/images/fx-boxes/1.5-warning-box_Firefox_is_running-small.png
    1. The Profile Manager is a hidden implementation detail that the user should never see, unless they use the correct command line switch to bring it up. Someone did something with your Firefox installation for you to see the Profile Manager after the Firefox update - that's not how Firefox works under normal circumstances, or even when there's a glitch in the update.
    2. After a Firefox update or upgrade, will use the "Last Used" Profile per the setting in the '''profiles.ini''' file, the one marked Default=1, regardless of the name of that Profile - the Profile having "default" in the Profile name has no influence on that.
    3. Firefox will never create a new Profile anywhere except the correct location - C:\Documents and Settings\''user''\Application Data\Mozilla\Firefox\ - on WinXP and W2K, other OS's have their own default locations. <br />
    The user has to click a button during the creation of a new Profile, and select the location they want, for the new Profile to be located - for it to end up in a location such as C:\Users\Public, that you mentioned. Firefox just plain won't do that without user input. <br />
    '''Do not''' even consider using the Profile Manager to remove the Profile in that location, because if you have data or files from another program in the same folder that "someone" placed that Profile in, you are going to everything in that folder - the Firefox Profile files and everything else! By design for large scale corporate installations, that is the preferred action, and the developers refuse to change that action as "normal" users shouldn't be using the Profile Manager or using non-default locations for Profiles to begin with.

  • Dropdown Menu same raw value changes back to top list item

    Ok guys.  I have such a weird issue.  I have some code as follows from a dropdown menu:
    <items>
                         <text>Zeutering</text>
                         <text>Rabies 1 Year (Dog or Cat)</text>
                         <text>Puppy Pack (DAPPv and Dewormer)</text>
                         <text>Kitten Pack (HCP+FeLV and Dewormer)</text>
                         <text>Adult Dog Pack 1 (Rabies, DAPPvL2+CV and Dewormer)</text>
                         <text>Adult Cat Pack 1 (Rabies, HCP+FeLV, and Dewormer)</text>
                         <text>Deluxe Adult Dog Pack (Rabies, DAPPvL2+CV, Bordatella, and Dewormer)</text>
                         <text>Heartworm Pack (Heartworm test + six months of prevention)</text>
                         <text>Microchip (Home Again Chip)</text>
                         <text>Flea and Tick Medications</text>
                      </items>
                      <items save="1" presence="hidden">
                         <text>65.00</text>
                         <text>10.00</text>
                         <text>20.00</text>
                         <text>25.00</text>
                         <text>35.00</text>
                         <text>35.00</text>
                         <text>50.00</text>
                         <text>95.00</text>
                         <text>30.00</text>
                         <text>10</text>
                      </items>
    The problem I am having is this.  When I select  <text>Adult Cat Pack 1 (Rabies, HCP+FeLV, and Dewormer)</text>  from the dropdown menu the option goes to   <text>Adult Dog Pack 1 (Rabies, DAPPvL2+CV and Dewormer)</text>   which is the option above the option I selected as noted above.  The only thing I can think of is that because they have the same value it is causing this to happen.  I've never had an issue like this before with dropdown menus so I'm not sure how to fix it.
    Any help is much appreciated.
    Justin

    Hi Justin,
    You are right, the dropdown only works if the values are unique.  So one fix would be to add something to the value making it unique and then striping it off when selected.  So if your values were;
                <items save="1" presence="hidden">
                   <text>65.00:1</text>
                   <text>10.00:2</text>
                   <text>20.00:3</text>
                   <text>25.00:4</text>
                   <text>35.00:5</text>
                   <text>35.00:6</text>
                   <text>50.00:7</text>
                   <text>95.00:8</text>
                   <text>30.00:9</text>
                   <text>10:10</text>
                </items>
    In the change event you could have some JavaScript code something like;
    var valueId = this.boundItem(xfa.event.newText);
    app.alert(parseFloat(valueId));
    The parseFloat function will stop parsing when it hits an invalid character like the colon.
    It is tempting to use a natural key (as you have) but I would probably have used a surrogate key (that is something only the form knows about, like 1,2,3, etc) and then look it up in some structure maybe as simple as a JavaScript array, depends on the complexity of your form.
    Hope this helps,
    Bruce

  • Tracking Table value changes

    Hi all,
    currently we are in the process of tracking the data changes in the following table
    /sapsll/adrcon (GTS specific) but it has been checked for the log data changes in its technical settings
    but still we are unable to track the changes in
    cdpos table
    please provide your valuable inputs
    so that we can track the changes
    cheers
    balu

    Hi,
    The place where we find Transaction Table history is SCU3.
    ===================================================================================================
    The logging flag defines whether changes to the data records of a table should be logged. If logging is activated, every change (with UPDATE, DELETE) to an existing data record by a user or an application program is recorded in a log table in the database.
    Note: Activating logging slows down accesses that change the table. First of all, a record must be written in the log table for each change. Secondly, many users access this log table in parallel. This could cause lock situations even though the users are working with different application tables.
    Dependencies
    Logging only takes place if parameter rec/client in the system profile is set correctly. Setting the flag on its own does not cause the table changes to be logged.
    The existing logs can be displayed with Transaction Table history (SCU3).
    Regards,
    Bhargava

  • Calendar events keep changing back after I change them

    On my iMac 3.2 GHz Intel Core i5,  8 GB 1600 MHz, Yosemite loaded, calendar 8.0 events will not change. I can add events but not change them. I've tried refresh. I've followed all the troubleshooting re: to iCloud.

    Apple's Mail application can use either IMAP or POP. In fact Gmail can be set either way.

  • Edit decision table from the web module

    Hello every one <br>I am using decision table to create rules and my question is can I edit decision table from the web module <br> i.e. can I change decision table values from jsp files(invoke.jsp) and if yes can any one please tell me the steps I should fallow to do it.<br>
    thank you.

    Hi Pratap,
    No, this is not possible. The Decision Table API is not public and the condition and action values can be changed only through the NWDS in BRM 7.1.1
    Regards,
    Arti

  • Differentiating HTTP Request through a URL and a value change listener

    Version Details:
    Oracle JDeveloper 11g Release 1 11.1.1.4.0
    Studio Edition Version 11.1.1.4.0
    Build JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923
    IDE Version: 11.1.1.4.37.59.23
    Product ID: oracle.jdeveloper
    Product Version: 11.1.1.4.37.59.23
    ADF Business Components     11.1.1.59.23
    Java(TM) Platform     1.6.0_21
    Oracle IDE     11.1.1.4.37.59.23
    Versioning Support     11.1.1.4.37.59.23
    Base Details:
    The Product, that a different team is working on (<i><b>which I cannot access, code, touch,...</b></i>), creates reports and essentially generates a URL with a bunch of parameters:
    http://<host>:<port>/myApplication/main.jspx?parameter1=value1&parameter2=value2...When the user clicks on an "Edit" button, a modal popup window is displayed (using jQuery) with an embedded iFrame with its source pointing to the above URL.
    The "myApplication" is an ADF application which brings up an ADF form based on the parameters. Once the user enters the data, validations occur and the data is written into a total of 3 different Tables in the Database. Once the operation is finished, the user closes the popup by clicking on the "X" button of the popup window, which essentially does "popup.*hide()*".
    Limitations:
    <li>Since there are varied combination of parameter values and associated ADF forms, taskflows is not* an option.
    <li>Since the logic of generating the ADF form is not straightforward, ADF BC is not* an option.
    <li>Since validations are based on the value change listeners, the managed bean has to be a session scope_ bean.
    Problem:
    When, for the first time, the user clicks on the Edit button with a particular set of parameter values, the corresponding ADF form is displayed and things work normal. Since the managed bean is under session scope, the form generated for the first popup window stays the same for any subsequent popup windows, even when the URL and its parameters are completely different. As I can not listen to the popup close event, I cannot invalidate my session either.
    I tried using filters in the web.xml to grab the request and apply the business logic. Due to the presence of multiple value change listeners (too many <tt>autosubmit=true</tt>), every value change listener triggers a request and so the business logic gets applied with every value change.
    After some tests, I deduced that the difference between the call from iFrame and the call from value change is the HTTP Request Method - GET for iFrame and POST for value change listener. So in my filter I apply the business logic when there is a GET request and not apply when its a POST request.
    Turns out, that is not a valid enough differentiation between the two requests being made. Sometimes, even the value change listeners are issuing a GET request.
    Question:
    *<font color="red">1</font>*. Is there a way to force the value change listeners to always trigger a POST request?
    *<font color="red">2</font>*. Is there a way to differentiate the requests originating from the other team's Product and those generated by my own value change listeners?
    *<font color="red">3</font>*. Is there a different approach, incorporating the above-mentioned limitations, to clear out the session scope each time when a request is made through iFrame? That is, whenever a request is made through the other team's Product?
    Edited by: user737922 on Apr 13, 2011 10:58 AM

    _(Temporary) Solution_:
    Summary:
    I am using the request parameter <b><tt>_adf.ctrl-state</tt></b> to differentiate between the HTTP requests that my application receives.
    Details:
    When I receive the request from the other team's Product, I receive a <tt>GET</tt> and a <tt>adf.ctrl-state</tt> value which I store into a local variable in my session-scoped managed bean. The <tt>adf.ctrl-state</tt> value stays the same for all requests (<tt>GET</tt> or <tt>POST</tt>) made from within my own application. It changes only when there is a new request from the other team's Product.
    Also, as my application is accessed through an iFrame, there is no possibility of the generated URL being modified by the end-user.
    For now it seems that the solution is appropriate but I am not fully confident if relying on the <tt>_adf.ctrl-state</tt> value is the best approach.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • My customized genres get changed back to the iTunes default genre

    I customize my genres, I find the genres provided by iTunes to be insufficiently accurate. Every time I buy new music from iTunes - or download previously purchased content - my genres are set back to the original iTunes genre.
    When I play a track with a changed-back genre it once again reverts to the genre I assigned it. But I am now into thousands of tracks that have customized genres, so I've begun avoiding iTunes and buying from Amazon simply to avoid contact between my iTunes application and the iTunes store, so that it doesn't set back my customized genres.
    Not sure that was clear:  Example:
    I bought Lou Reed's "Hudson Wind Meditations" in the iTunes store, and I download it to my iTunes software so I can sync with my iPod and iPhone. The genre it is assigned by iTunes is "World." I consider this the default genre.
    I don't consider it "World" music, and want to find it along with my other Lou Reed tracks when sorting by genre, so I change the genre to "Rock - Avantgarde - NY". I have a number of customized genres.
    The next time I buy and/or download anything from the iTunes store, all my customized genres are reset to what to the default genres the tracks had upon purchase.  - This is highly frustrating, because I have given thousands of tracks customized genres. So after downloading something from the iTunes store, my Lou Reed "Hudson Wind Meditation" shows the genre as the default genre again, in this case it says "World" again.
    Oddly enough, if I play a track that had a custom custom genre but that was changed back after contact with the iTunes store, it reverts back to the customized genre. So if I play the Lou Reed track again, it changes back to my customized genre as soon as I hit play (it would change back to "Rock - Avantgarde - NY".
    It isn't a tenable solution to hit play on every track after every new download. Nor is going back in and re-customizing every album in a bulk move.
    Can I lock genres? Help please.
    iTunes 11.2.2 running on 10.9.4, but it's been doing this for several iterations.

    Go to iTunes > Preferences > Store and turn off
    Show iTunes in the Cloud purchases
    Share details about your library with Apple
    On any iOS device go to Settings > Music and turn off
    Show All Music
    Close and reopen iTunes and/or reset the device and you should see your version of the metadata for each track rather than the original store data.
    (Not sure if this also works if iTunes match is in use since I don't use it.)
    tt2

  • How to change SessionTimeOut value after deployed war file in SunAPP Server

    Hi Guys,
    Any one can help and give some guidence How i can change the session time out value in web.xml after deployed the file on sun one application server.This is the code given below which i have to change the time of session from 5 minutes to 1 minute.
    <session-config>
         <session-timeout>5</session-timeout>
    </session-config>
    Regards,
    Suresh.Babu.Ramagani.

    For SunOne session configuration is in the sun-web.xml.
    http://docs.sun.com/app/docs/doc/820-2207/abxcz?a=view
    -steve

  • Best way to change config then change it back after a while.

    I spent some time today trying a couple approaches to this, but they all seemed a little klunky.
    I'm looking for the best way to change the BGP prefixes which are advertised out to an ISP, based on some check.  I want to set a timeout so the router won't attempt to send the route again for say 30 minutes after it is triggered, but then will start advertising it again, and monitor to see if the trigger condition returns.  If the trigger condition returns then again withdrawl the route for 30 minutes and so on.
    I'm using a prefix-list already to limit outbound route advertisments, so it seems simplest to just make a config change to remove one line in the prefix-list, then a few minutes later put it back.
    I tried just using the "cli command wait", but if I set the wait period too long, the applet seemed to die, and never ran the later cli commands to put the prefix-list line back.  There is also a exit-time clause for the event, but I couldn't figure out how to put the line back after the exit-time expired.  Lastly I tried doing an event with a watchdog timer, but also couldn't get that to work either.  Before I spend too much time working on differant options, I wanted to see if anyone had any recommendations.
    I've done some TCL scripting on Cisco routers, but that seemed to be overkill for this, and I wanted to keep the config easy to manage for peers who might not be as proficient in TCL scripting.
    This is intended for ASR-1002X routers if it matters.
    Any suggestions would be much appreciated.
    Thanks
    Derek

    Thanks for all your help Joe. 
    Ok, so here is my current script, which seems to be working pretty well (changing to entry-type "value" fixed the variability in detection times).  For testing in the script below, I'm using a 30 second timeout for when the line gets put back, and a 60 second timeout for when monitoring should resume after the event is triggered. The script checks the value of the OID every 5 seconds.
    The only other thing I would like to do with it that I can't figure out, is how to use an environment variable for the exit-time.  Ideally, I would just add a value, like 10 seconds, to the ATimeout variable.  However I can't figure out the syntax to just use a var for the exit-time.  Anyone know the secret (or if it is possible?)
    event manager environment ATimeout 30
    event manager environment q "
    no event manager applet DDOS_RESPONSE01
    event manager applet DDOS_RESPONSE01
    event snmp oid 1.3.6.1.4.1.9.9.166.1.17.1.1.21.80.65538 get-type exact entry-op gt entry-val "0" entry-type value exit-time 60 poll-interval 5
    trigger
    action 001 cli command "enable"
    action 002 cli command "config term"
    action 003 cli command "no ip prefix-list PUBLIC_NETWORKS seq 140 permit 10.4.1.0/24 le 32"
    action 004 syslog msg "DDoS Attack Detected. Removing Web Srvr Subnet from PUBLIC_NETWORKS for ($ATimeout) seconds."
    action 005 cli command "event manager applet RESTORE_PREFIX"
    action 006 cli command "event timer countdown time $ATimeout "
    action 007 cli command "action 101 cli command $q enable $q"
    action 008 cli command "action 102 cli command $q config term $q"
    action 009 cli command "action 103 cli command $q no event manager applet RESTORE_PREFIX $q"
    action 010 cli command "action 104 cli command $q ip prefix-list PUBLIC_NETWORKS seq 140 permit 10.4.1.0/24 le 32$q"
    action 011 cli command "action 105 syslog msg $q DDoS Attack Timeout ($ATimeout) reached. Re-adding Web Srvr Subnet to PUBLIC_NETWORKS. $q "
    action 012 cli command "action 106 cli command $q no event manager applet RESTORE_PREFIX $q"
    exit
    event manager environment ATimeout 30
    event manager environment q "
    event manager applet DDOS_RESPONSE01
    event snmp oid 1.3.6.1.4.1.9.9.166.1.17.1.1.21.80.65538 get-type exact entry-op gt entry-val "0" entry-type value exit-time 60 poll-interval 5
    trigger
    action 001 cli command "enable"
    action 002 cli command "config term"
    action 003 cli command "no ip prefix-list PUBLIC_NETWORKS seq 140 permit 10.4.1.0/24 le 32"
    action 004 syslog msg "DDoS Attack Detected. Removing Web Srvr Subnet from PUBLIC_NETWORKS for ($ATimeout) seconds."
    action 005 cli command "event manager applet RESTORE_PREFIX"
    action 006 cli command "event timer countdown time $ATimeout "
    action 007 cli command "action 101 cli command $q enable $q"
    action 008 cli command "action 102 cli command $q config term $q"
    action 009 cli command "action 103 cli command $q no event manager applet RESTORE_PREFIX $q"
    action 010 cli command "action 104 cli command $q ip prefix-list PUBLIC_NETWORKS seq 140 permit 10.4.1.0/24 le 32$q"
    action 011 cli command "action 105 syslog msg $q DDoS Attack Timeout ($ATimeout) reached. Re-adding Web Srvr Subnet to PUBLIC_NETWORKS. $q "
    action 012 cli command "action 106 cli command $q no event manager applet RESTORE_PREFIX $q"
    exit

  • Changing env-entry after deployment

    Hi,
    I was wondering how I can change the value of an env-entry after deployment? Do I have to change the value in the ejb-jar.xml, redeploy the application, or is there a utility I can use?
    thanks
    Steve

    Okay gentlemen, I dug around and couldn't find anything on this concept of defining an env-entry after deployment using Sun Java System Application Server 8.1 - so I just came up with my own hack. Thought I'd share it in case others have the same question and can't find the answer.
    Just to restate the problem: In SJAS you can't seem to define an environment entry that you can just look up via JNDI (you can do this in Tomcat pretty easy though using the context.xml file and an env-entry like syntax) - the benefit of this being of course that you can easily define deployment-time variables which a system administrator can set based on his setup. There seems to be no way to do this is SJAS 8.1
    As a workaround, you can create your own custom JNDI resource which will expose the properties that you set in the Admin Console as a simple java.util.Map that you can use from your app.
    Here's the blow by blow:
    2. Create a JNDIProperties object that implements java.util.Map but does NOT implement java.io.Serializable:
    package helpers.jndi;
    import java.util.Collection;
    import java.util.Map;
    import java.util.Set;
    public final class JNDIProperties implements Map {
        private Map map;
        public JNDIProperties(Map aMap) { map = aMap; }
        public boolean containsKey(Object key) { return map.containsKey(key); }
        public void clear() { map.clear(); }
        public Object get(Object key) { return map.get(key); }
        public boolean containsValue(Object value) { return map.containsValue(value); }
        public Set entrySet() { return map.entrySet(); }
        public boolean isEmpty() { return map.isEmpty(); }
        public Set keySet() { return map.keySet(); }
        public Object put(Object key, Object value) { return map.put(key, value); }
        public void putAll(Map t) { map.putAll(t); }
        public Object remove(Object key) { return map.remove(key); }
        public int size() { return map.size(); }
        public Collection values() { return map.values(); }
    }2. Create an object that implements javax.naming.spi.ObjectFactory and returns an instance of JNDIProperties containing the properties defined in the container:
    package helpers.jndi;
    import java.util.Enumeration;
    import java.util.Hashtable;
    import java.util.Map;
    import javax.naming.Context;
    import javax.naming.Name;
    import javax.naming.RefAddr;
    import javax.naming.Reference;
    import javax.naming.spi.ObjectFactory;
    public class PropertyFactory implements ObjectFactory {
        public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment) throws Exception {
            Map myMap = new Hashtable();
            Reference myReference = (Reference)obj;
            Enumeration myEnumeration = myReference.getAll();
            while (myEnumeration.hasMoreElements()) {
                RefAddr myRefAddr = (RefAddr)myEnumeration.nextElement();
                myMap.put(myRefAddr.getType(), myRefAddr.getContent());
            JNDIProperties myJNDIProperties = new JNDIProperties(myMap);
            return myJNDIProperties;
    }3. Build this and copy the jar to $SJAS_HOME/domains/domain1/lib/ext/ (or other appropriate folder for your setup), then restart the app server to get to load the jar.
    4. Go to the admin console and go to Resources -> JNDI -> Custom Resources -> New. Give it a sensible JNDI name (I'll use "testproperties" in this example), enter java.util.Map as the resource type and the name of your factory class for the "factory class" field, e.g. "helpers.jndi.PropertyFactory". Below that under "Additional Properties", add in each of the properties that you want to expose, for example enter a property named "testproperty1" with the value of "my test".
    5. You can now get a java.util.Map that contains the properties that you set for your custom JNDI resource by doing something like the following (example in JSP):
    <%
    Context myContext = new InitialContext();
    Context myEnvContext = (Context)myContext.lookup("java:comp/env");
    Map myMap = (Map)myEnvContext.lookup("testproperties");
    %>
    <%=myMap.get("testproperty1")%>Output is:
    my testNOTE: If this sounds convoluted - I agree, it is. If anyone's got a better idea, please post it; as I could not find another solution to this seemingly simple problem.

Maybe you are looking for

  • How to Change Company Address In Oracle EBS

    Hi, We several reports where Company Address is Showing. Our Company Address Has been Changed, Where is that location in Oracle Financial to Change Address Version 12.X Regards NEWCOM

  • Bios not fully acpi compliant

    I can't get past a blue screen (BSOD) which states ...The BIOS in this system is not fully ACPI compliant... I've researched this site and the web and can't find an answer that works. I'd like to try to update the BIOS since it's the original and the

  • Servlet showing HTML page

    I ma using Tomcat as standalone server. have servlet showing HTML page which has frames in it . All frames are linked to some html pages. These pages are stored in webapps/project directory and servlet is in \Tomcat 4.1\webapps\Project\WEB-INF\classe

  • My OfficeJet 6110 will print (with errors) with Yosemite but will not scan

    I just finished reading this entire thread: http://h30434.www3.hp.com/t5/Mac-Printing-and-Scanning/Mac-OS-10-10-Yosemite-and-HP-Printer-Support/... I have rebooted the computer; repaired disk permissions; deleted and added the 6110 back; dowloaded th

  • Blocking applications in OS X

    Hi, I use ARD in a school and would like to be able to block certain applications from students at certain times (mainly photo booth!) and I'm sure I could do this with automator, but not really sure how. Could anyone help? I'd also like to be able t