Storing property values specific to an ejb app

On a Weblogic 102 , how can I store atrributes specific to an ejb. This could contain passwords for other system. Connection Pooling is not an option for the external system, so the password has to be stored some where the EJB can read, preferably not in clear text ? I am trying to keep this property file out of the source code ....

Hi Mat,
Not sure whether the following will suit your requirement or not but you can try the following:
<font color=maroon>Step1). </font>run the "setDomainEnv.sh" in the command Shell.
<font color=maroon>Step2).</font> Run the following command to encrypt the your EJBUsername and EJBUserPassword
java weblogic.security.Encrypt ${Clear_Text_Password}
Example:
$ java weblogic.security.Encrypt <font color=red>MyEJBUser</font>
{3DES}0HYiEySifDiz0IcqDhelGA==
$ java weblogic.security.Encrypt <font color=red>MyEJBPassword</font>
{3DES}0HYiEySif12hhaqDheSa==
<font color=maroon>Step3). </font>Now store the above Encrypted USername and Passwords in a properties file (myEjbUsers.properties) like following:
userOneName={3DES}0HYiEySifDiz0IcqDhelGA==
userOnePassword={3DES}0HYiEySif12hhaqDheSa==
<font color=maroon>Step4).</font> Now Place this File some where in your File system ...better if you place it inside the <DOMAIN_HOME> directory....sothat your application can read it Just like following: (No Need to specify the Path of properties file if it is available inside the DOMAIN_HOME root directroy)
FileReader fr=new FileReader("myEjbUsers.properties");
<font color=maroon>Step5).</font> Inside your EJB When you get the Username & Password sent by the EJB Client...get them and then Inside your Code Encrypt them and match with the Encrypted values present in your Properties file....
Thanks
Jay SenSharma
http://weblogic-wonders.com/weblogic (WebLogic Wonders Are Here)

Similar Messages

  • Defining server specific properties for EJB app

    I need to define some properties for my app which have different values depending on the server to which I deploy. Eg. the LDAP server name and port.
    When I deploy to my development server it should find the local values of the properties, when I deploy to the live server it needs a different set of values.
    What is the simplest way to do this? I obviously don't want the properties to be part of my deployment.
    Rob

    EJBs are not allowed to read or write files. But they are allowed to read from the JNDI context. The idea is to provide a symbolic name, ie <resource-env-ref>, which contains the value you need.
    The startup-classes which could set this value in the JNDI context are best documented in the OC4J User's Guide.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Programmatically search for a page via a property value

    Hi,
    I really need help with this, using java I need to search for a page via property value.
    Thanks.

    I don't know if this performs well, but this snippet traverses a branch with root "node", finds jcr:content nodes, and gets a specific child node. You could use the node.getproperty() method in your case and traverse the /content branch (or wherever your pages are stored). See the javax.jcr.node (http://www.day.com/maven/jsr170/javadocs/jcr-1.0/javax/jcr/Node.html). Also see org.apache.sling.jcr.api.SlingRepository (http://dev.day.com/docs/en/cq/current/javadoc/index.html)
    NodeIterator iter = node.getNodes();
    while (iter.hasNext()) {
            Node n = iter.nextNode();
           //Look for "jcr:content" nodes
           if (n.getName().equals("jcr:content")) {
                   //get the path of the model node and save it
                   if(n.hasNode(MODEL_NODE)){
                         modelIds.add(n.getNode(MODEL_NODE).getPath());
           } else{
           //Scan child nodes
           getModelIds(n);
    scott

  • How to Get property values from Shared Object in client's load event - Very urgent

    I am using shared object to share data between two users. First user connect to shared object and set some value in shared object. Please consider that second user has not connected with the shared object yet.
    Now when second user connects to the server and try to get that property set by first user, he could get shared object but could not get properties of Shared object set by first user. I observed few times that Second user can get these properties within "Sync" event between two users. But I would like to get these values for Second user in any stage (i.e. in load event etc.). Whenever Second user tries to get the property of Shared object, the object will reset the actual property value and then return reset value.
    Anyone faced such issue while using shared object between two users. If so, I would appreciate if you could let me know your suggestions for following questions:
    1) Is there any way to get all the properties of shared object before sync event called, as I want to get it immediately when second user connect to the application and perform next task based on the values stored in shared object.
    2) Is it possible for second user to check whether any property has been set by first user? So that second user can use the property instead of reset it.
    Any kind of help would be greatly appreciated.
    Thank You.

    I am using shared object to share data between two users. First user connect to shared object and set some value in shared object. Please consider that second user has not connected with the shared object yet.
    Now when second user connects to the server and try to get that property set by first user, he could get shared object but could not get properties of Shared object set by first user. I observed few times that Second user can get these properties within "Sync" event between two users. But I would like to get these values for Second user in any stage (i.e. in load event etc.). Whenever Second user tries to get the property of Shared object, the object will reset the actual property value and then return reset value.
    Anyone faced such issue while using shared object between two users. If so, I would appreciate if you could let me know your suggestions for following questions:
    1) Is there any way to get all the properties of shared object before sync event called, as I want to get it immediately when second user connect to the application and perform next task based on the values stored in shared object.
    2) Is it possible for second user to check whether any property has been set by first user? So that second user can use the property instead of reset it.
    Any kind of help would be greatly appreciated.
    Thank You.

  • AppleScript- filtering a list of records by a property value possible?

    How can a list of records like the one below (except each list has 82 items) be filtered by a field's value so that the resulting list contains only records with a given property value?
    e.g.
    set recordList to (*input follows*) {{fnum:1, fname:"Admin", fval:"", isCustom:true},{fnum:8, fname:"Cataloged", fval:"4/18/12 4:04 PM", isCustom:false}}
    I tried:
    items of recordList where isCustom is true
    but instead of the desired result( below) I got "variable isCustom not defined."
    {{fnum:1, fname:"Admin", fval:"", isCustom:true}} --desired result
    Is there a better way to do this than loop through the list and build a new list by evaluating the labeled pair of each record in the list?
    Thanks in advance for any insights.

    Hello Thomas Camilleri,
    Short answer is no.
    Filter reference form is only applicable to application objects and processed by the application.
    Long answer is that you can define some handlers to make code concise though you cannot avoid iteration through the list. After all, even the filter reference form invokes iteration behind the scene, so the ultimate question here would be how well we can hide the iteration from the scene.
    E.g., something like the codes below. Inevitable iteration is hidden in general-purpose handlers map() or match() and you may only define the filter1() or pattern1() handlers for your specific purpose. SCRIPT 2 would be better fit for your object.
    Regards,
    H
    -- SCRIPT 1
    set rr to {{key1:10, key2:true}, {key1:14, key2:false}, {key1:16, key2:true}}
    set rr1 to map(filter1, rr)'s records
    return rr1 -- {{key1:16, key2:true}}
    on filter1(x)
        if x's key2 and x's key1 > 11 then return x
        return missing value
    end filter1
    on map(func, aa)
        script o
            property xx : aa's contents
            property yy : {}
            property f : func
            repeat with x in my xx
                set end of my yy to my f(x's contents)
            end repeat
            return my yy's contents
        end script
        tell o to run
    end map
    -- END OF SCRIPT 1
    -- SCRIPT 2
    set rr to {{key1:10, key2:true}, {key1:14, key2:false}, {key1:16, key2:true}}
    set rr2 to match(pattern1, rr)
    return rr2 -- {{key1:16, key2:true}}
    on pattern1(x)
        x's key2 and x's key1 > 11
    end pattern1
    on match(pat, aa)
        script o
            property xx : aa's contents
            property yy : {}
            property f : pat
            repeat with x in my xx
                set x to x's contents
                if f(x) then set end of my yy to x
            end repeat
            return my yy's contents
        end script
        tell o to run
    end match
    -- END OF SCRIPT 2

  • Dropdown with property values

    Hi Experts,
    How would you create a drop down on a report which contains all the values of a property for a given dimension.
    My Account dimension has property called Allocation_Rule  which could have Rule1, Rule2 ... values.
    In my report i have to give the rule selection to the user so that when they pick a value i will have to expand evdre rows for  accounts where the property is Rule1 or so.
    Question 1:  How would you create that dynamic drop down with property values
    Question 2: How would you expand EVDRE based on the drop down selection.
    AD

    Hi,
    A fairly simple way to do this would as follows:
    1) Build an EVDRE on a hidden sheet, have all BASMEMBERS of the dimension you require in rows
    2) Have EVPRO on each line of this EVDRE returning the property you require (=EVPRO(<APP NAME>,<CELL REF>,<PROPERTY NAME>)
    3) On the main sheet have a cell (say in B1) with data validation (List), pointing to the EVPRO column of your hidden EVDRE
    This will return all of the available property values in the dropdown box.
    4) In the Expansion range of your main report enter something like ="BASMEMBERS AND <PROPERTY NAME>="&B1
    Then based on what you pick from the drop-down box your report will refresh with.
    Hope this helps.
    Tom.

  • Set dynamic Property Value

    Hi Expert,
    Can we set Property values dynamicly from BPC excel.
    eg/ Let say we have Dimension called Project which has a ID Proj1 with property FM_AMT.
    Can we set this FM_AMT from the BPC excel ? do we have any Function ?
    Regards
    Gayu

    Hi Gayu,
    You can use EVPRO to get this property in BPC excel. The syntax is =evpro(appname, Member, property). In your case, it is
    =evpro("App","Proj1","FM_AMT")
    Hope this helps.
    Regards,
    Shoba

  • UJK_VALIDATION_EXCEPTION:Property value not found

    Hi All
    I am getting below error when executing script logic.
    UJK_VALIDATION_EXCEPTION:Property value not found.
    I got Entity and Intco as properties in my dimensions (entity and intco dim).
    *WHEN Z_PARTNERCO
            *IS <> PCC_DEF_CC
                  *REC(FACTOR=1,Z_COSTOBJECT=[Z_PARTNERCO].ENTITY,Z_PARTNERCO=     [Z_COSTOBJECT].INTCO,EB_DATASOURCE ="Matching")
    *ENDWHEN
    Any ideas

    Hi Satish,
    that a script works on BPC MS, doesn't automatically means it also works on BPC NW.
    Since you don't specify the dimension Z_COSTOBJECT nor Z_PARTNERCO in the XDIM_MEMBERSET, the logic will try to fetch the properties for all members of these dimensions. When you don't maintain the properties for all members the logic will not work.
    I advice you to make a specification in your XDIM_MEMBERSET for the dimensions Z_COSTOBJECT and Z_PARTNERCO so you know that the properties are maintained for the selection you try to fetch, or you have to maintain the properties for all members of your dimensions Z_COSTOBJECT and Z_PARTNERCO.
    But first i would suggest that your try the logic in the logic tester integrated with BW.
    Run transaction SE38 in the basic screen of BW and than run UJK_SCRIPT_LOGIC_TESTER.
    This will give you a possibility to run your script in a simulation, this way you can test the script first with only one member from which you know the properties are maintained to see if it works.
    Harmen

  • "Property value is not valid" when PropertyGridView tries to convert a string to a custom object type.

    Hi,
    I have a problem with an PropertyGrid enum property that uses a type converter.
    In general it works, but when I double clicking or using the scoll wheel,  an error message appears:
    "Property value is not valid"
    Details: "Object of type 'System.String' cannot be converted to type 'myCompany.myProject.CC_myCustomProperty."
    I noticed that the CommitValue method (in PropertyGridView.cs) tries to convert a string value to a CC_myCustomProperty object.
    Here is the code that causes the error (see line 33):
    (Using the .net symbols from the PropertyGridView.cs file)
    1
            internal bool CommitValue(GridEntry ipeCur, object value) {   
    2
    3
                Debug.WriteLineIf(CompModSwitches.DebugGridView.TraceVerbose,  "PropertyGridView:CommitValue(" + (value==null ? "null" :value.ToString()) + ")");   
    4
    5
                int propCount = ipeCur.ChildCount;  
    6
                bool capture = Edit.HookMouseDown;  
    7
                object originalValue = null;   
    8
    9
                try {   
    10
                    originalValue = ipeCur.PropertyValue;   
    11
    12
                catch {   
    13
                    // if the getter is failing, we still want to let  
    14
                    // the set happen.  
    15
    16
    17
                try {  
    18
                    try {   
    19
                        SetFlag(FlagInPropertySet, true);   
    20
    21
                        //if this propentry is enumerable, then once a value is selected from the editor,   
    22
                        //we'll want to close the drop down (like true/false).  Otherwise, if we're  
    23
                        //working with Anchor for ex., then we should be able to select different values  
    24
                        //from the editor, without having it close every time.  
    25
                        if (ipeCur != null &&   
    26
                            ipeCur.Enumerable) {  
    27
                               CloseDropDown();   
    28
    29
    30
                        try {   
    31
                            Edit.DisableMouseHook = true;  
    32
    /*** This Step fails because the commit method is trying to convert a string to myCustom objet ***/ 
    33
                            ipeCur.PropertyValue = value;   
    34
    35
                        finally {   
    36
                            Edit.DisableMouseHook = false;  
    37
                            Edit.HookMouseDown = capture;   
    38
    39
    40
                    catch (Exception ex) {   
    41
                        SetCommitError(ERROR_THROWN);  
    42
                        ShowInvalidMessage(ipeCur.PropertyLabel, value, ex);  
    43
                        return false;  
    44
    I'm stuck.
    I was wondering is there a way to work around this? Maybe extend the string converter class to accept this?
    Thanks in advance,
    Eric

     
    Hi,
    Thank you for your post!  I would suggest posting your question in one of the MS Forums,
     MSDN Forums » Windows Forms » Windows Forms General
     located here:http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=8&SiteID=1.
    Have a great day!

  • Multiple TYPEELIM property values for an account

    I am trying to set automatic adjustment business rules and need to assign multiple multiple TYPEELIM property values for an account. Any idea how to achieve this?
    Here is my example. Letu2019s assume there are 2 eliminations I need to do.
    Elimination 1: Account A, B, C going to Account Y
    Elimination 2: Account A, B, D going to Account Z
    For elimination 1, to group source accounts (A,B,C), I want to assign u201CELIM1u201D for TYPEELIM property to all source account (A,B,C).
    For elimination 2, to group source accounts (A,B,D), I want to assign u201CELIM2u201D for TYPEELIM property to all source account (A,B,D).
    As you see, accounts A and B are repeated in both cases. I am not sure how I can assign both ELIM1 and ELIM2 property for these two accounts.
    Options I have thought of:
    1.     Include automatic adjustment line by line:  But since I have many accounts, this will be very lengthy and not good from maintenance point of view.
    2.     Include one ELIM1 in TYPEELIM and ELIM2 in Dimlist: But my real case is more than just two elims as mentioned above. What if there are 4 elim and includes same account?
    Any idea on this?
    Thanks in advance.

    Hi,
    http://help.sap.com/saphelp_bpc75/helpdata/en/5A/69200C88AA40C9B18844A25259F147/frameset.htm
    Administration->Business Calculation->Business Rule Management->Automatic Adjustment->Automatic Adjustment Detail
    This is for 7.5, but majority of contents are not changed from 7.0.
    Regards,
    YH Seo

  • How to get Document Set property values in a SharePoint library in to a CSV file using Powershell

    Hi,
    How to get Document Set property values in a SharePoint library into a CSV file using Powershell?
    Any help would be greatly appreciated.
    Thank you.
    AA.

    Hi,
    According to your description, my understanding is that you want to you want to get document set property value in a SharePoint library and then export into a CSV file using PowerShell.
    I suggest you can get the document sets properties like the PowerShell Command below:
    [system.reflection.assembly]::loadwithpartialname("microsoft.sharepoint")
    $siteurl="http://sp2013sps/sites/test"
    $listname="Documents"
    $mysite=new-object microsoft.sharepoint.spsite($siteurl)
    $myweb=$mysite.openweb()
    $list=$myweb.lists[$listname]
    foreach($item in $list.items)
    if($item.contenttype.name -eq "Document Set")
    if($item.folder.itemcount -eq 0)
    write-host $item.title
    Then you can use Export-Csv PowerShell Command to export to a CSV file.
    More information:
    Powershell for document sets
    How to export data to CSV in PowerShell?
    Using the Export-Csv Cmdlet
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to search a property value in a TDMS and return the group name.

    Hi.
    Please help
    I want to search a TDMS file by property value and then return the group names or channels.
    I am using labview 8.2 with the connectivity toolkits.

    The error # is -2558
    I try to close the TDMS file before it reach the search part but still give me the error code -2558
    Attachments:
    search and read property value per group.jpg ‏77 KB

  • Assigning the property value to signeddata

    Hi all,
    I want to use a property value like a signeddata. For example a have a property QUANTITY in MATERIAL dimension.
    *WHEN MATERIAL.QUANTITY
    *IS > 0
    *REC(EXPRESSION=[MATERIAL].[QUANTITY], P_ACCT=120)
    *ELSE
    *REC(EXPRESSION=1, P_ACCT=120)
    *ENDWHEN
    Any idea?
    Burak

    Hi,
    Could you try the below: Needs to be tested. Just a suggestion.
    *WHEN MATERIAL.QUANTITY
    *IS > 0
    *REC(EXPRESSION=%VALUE%, P_ACCT=120)
    *ELSE
    *REC(EXPRESSION=1, P_ACCT=120)
    *ENDWHEN
    Thanks

  • "Message from Webpage (error) There was an error in the browser while setting properties into the page HTML, possibly due to invalid URLs or other values. Please try again or use different property values."

    I created a site column at the root of my site and I have publishing turned on.  I selected the Hyperlink with formatting and constraints for publishing.
    I went to my subsite and added the column.  The request was to have "Open in new tab" for their hyperlinks.  I was able to get the column to be added and yesterday we added items without a problem. 
    The problem arose when, today, a user told me that he could not edit the hyperlink.  He has modify / delete permissions on this list.
    He would edit the item, in a custom list, and click on the address "click to add a new hyperlink" and then he would get the error below after succesfully putting in the Selected URL (http://www.xxxxxx.com), Open
    Link in New Window checkbox, the Display Text, and Tooltip:
    "Message from Webpage  There was an error in the browser while setting properties into the page HTML, possibly due to invalid URLs or other values. Please try again or use different property values."
    We are on IE 9.0.8.1112 x86, Windows 7 SP1 Enterprise Edition x64
    The farm is running SharePoint 2010 SP2 Enterprise Edition August 2013 CU Mark 2, 14.0.7106.5002
    and I saw in another post, below with someone who had a similar problem and the IISreset fixed it, as did this problem.  I wonder if this is resolved in the latest updated CU of SharePoint, the April 2014 CU?
    Summary from this link below: Comment out, below, in AssetPickers.js
    //callbackThis.VerifyAnchorElement(HtmlElement, Config);
    perform IISReset
    This is referenced in the item below:
    http://social.technet.microsoft.com/Forums/en-US/d51a3899-e8ea-475e-89e9-770db550c06e/message-from-webpage-error-there-was-an-error-in-the-browser-while-setting?forum=sharepointgeneralprevious
    TThThis is possibly the same information that I saw, possibly from the above link as reference.
    http://seanshares.com/post/69022029652/having-problems-with-sharepoint-publishing-links-after
    Again, if I update my SharePoint 2010 farm to April 2014 CU is this going to resolve the issue I have?
    I don't mind changing the JS file, however I'd like to know / see if there is anything official regarding this instead of my having to change files.
    Thank you!
    Matt

    We had the same issue after applying the SP2 & August CU. we open the case with MSFT and get the same resolution as you mentioned.
    I blog about this issue and having the office reference.
    Later MSFT release the Hotfix for this on December 10, 2013 which i am 100% positive should be part of future CUs.
    So if you apply the April CU then you will be fine.
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • How to retrieve a property value from an iview in the back-end?

    Hi,
    I am looking for a back-end function module or any other way to retrieve the property value of an iview in the portal.
    Is this possible?
    thanks,
    Bert Caryn

    Hi,
    Look at the following threads,
    For programmatically getting the iview properties,
    Programmatically getting iView Properties
    Also,
    Get Properties of IView Programmatically
    Permanent change of iView property programmatically
    Hope these threads help u.
    Regards
    Srinivasan T

Maybe you are looking for

  • Flash problems with Snow Leopard

    Just installed Snow Leopard and updated to 10.6.2. I've noticed that some Flash based websites (Such as the Doritos crashthesuperbowl.com website) aren't working/loading. The release build of Flash 10 would call a "Debugger() called!" error in the co

  • Has anyone found a way to import IPTC data from a csv?

    I have a lot of files with English keywords and captions in Aperture. I need to export this metadata and get it translated into French. I then would like to import that data back into the original files overwriting the original data. Has anyone found

  • Turn off display (like an iPad/smartphone)

    I have googled all night for this, and only found forum posts where people don't understand what the question is.  I'm looking for a way to make the power button on my helix do the same as a power button on an iPad or smartphone.  I want it to turn o

  • Adding metadata in Prelude but Premiere Pro not retaining it after closing

    While in Prelude in CC, I'm adding metadata in the Dynamic Media list; i.e., Scene, Shot Name, Shot Number.... I save the clips after each update and send it over to Premiere Pro by highlighting all the clips.  It arrives in Premiere Pro with the inf

  • Help for HR-ABAP

    Hi gurus.. I m new to HR ABAP.. can nebody provide me the material and inteview questions for the same.. Helpful answers will be rewarded accordingly. Regards, Manish Hadiyel.