How to declare a JNDI resource which is not a datasource ?

Hi,
I'm looking for a way to create a jndi bound resource, as a jang.lang.String for instance, within oc4j enterprise console or maybe by editing config files.
I'm trying to configure an application once for all, so that I can deploy a .ear which is identical for development, testing, validation, production, ... environments while being able to configure those instance independently.
Can it be done with oc4j ? (it's intuitive to create a jndi bound resource if it's a datasource, but it seems to be the only kind of resource we can create) and if so, how ?
thx in advance
Olivier

Hi Olivier,
As far as I know, this is not possible. I see only three ways
1. Add an OC4J startup class and bind the desired names into JNDI
(not sure, whether this is really possible)
2. If you need the bound JNDI objects only in a web application: just add them to your web.xml file
3. Write your own provider and add it to the default application.xml or to your application's application.xml
Best,
Manfred

Similar Messages

  • How to call Other webapplication resource ,which is in different contex.

    How to call Other webapplication resource ,which is in different contex.

    Hi,
    Hope you have a directory or the file path of the file stored in the application server.
    Please check this...
    Step1: Create a RFC function module in SE37 with exporting the file name with full path and importing to the table for storing the records of the file. You can use the open dataset for output statement for reading the data from the application server. Also check transaction CG3Z & CG3Y for uploading and downloading the file from application server.
    Step2: call this RFC enabled FM in your program with destination as target system(file stored) to get the data from the file.
    If you are not sure about the file path, then you the FM which you specified to get the actual and correct file path.
    Thanks!...
    Regards,
    Suresh.D

  • How to have fact and dimension which are not joined in same report

    Hi All,
    suppose we have 2 dimensions and 1 of them is joined to fact but we want to pull both these dimensions along with fact and fact column shows null but we dont want that .how can we have 2nd dimension which is not joined to fact in the same report .Actually i have a column called equipment schedueled time and it can be shown only with equipment dimension but I want to pull both equipment,geography and equipment scheduled time in report if I do it now it shows equipment scheduled time as null because its not joined with geography dimension.I want even if the geography dimension exists it should show the value of equipment scheduled time .
    Can someone please help me.
    Thanks in Advance

    Hi ,
    Can you please tell me what are fact and dimension tables of your requirement.If you want display the data from 2 dims and a fact table ,you have to establish the joins between facts and dimensions.
    mark if helpful/correct...
    thanks,
    prassu

  • How do we create a promotion which is not out of the box?

    hello,
    how do we create a promotion which is not out of the box?

    Hi,
    You can create a new item item descriptor in /atg/commerce/pricing/pricingModels.xml.
    ~ Praveer

  • HT4623 how about updating an older ipod which does not offer "software update" as a choice when one taps on General under Settings?

    how about updating an older ipod which does not offer "software update" as a choice when one taps on General under Settings?

    http://support.apple.com/kb/HT4972
    Unless you have a 2nd generation iPod Touch, in which case 4.2.1 is the highest possible.

  • How can I find the profiles which are not in a role

    Hi all,
    how can I find all profiles which are not used in a role. Its important for a security check.

    Hi Stefan,
    you do one thing use the transaction SUIM
    SUIM>>Profile>>By Roles
    give all the role name and execute you will get roles with profiles
    and extract to excel sheet
    to get only profiles
    suim>>profile>>by profile name or text give * and execute
    and extract in excel sheet no compate profile coloumns get the profiles which does not there in any roles
    hope ds helps
    thanks
    kishore

  • How can we find delivery documents which are not goods issued?

    Hi All,
    How can we find delivery documents which are not goods issued?
    Thanks in advance

    hi,
    please check in VL06O.
    there will be plenty of options on the same.
    you are requested togo for push button FOR GOODS ISSUE from there u will go to VL06G only
    your requrient will be satisfied.
    regards,
    balajia
    Edited by: balaji timmampalli achari on Nov 11, 2010 12:39 PM
    Edited by: balaji timmampalli achari on Nov 11, 2010 12:40 PM

  • Need Advice: Accessing JNDI resource which uses configuration file

    Currently I have a class which has a constructor which takes a path to a configuration file. If I wanted to use this class as a JNDI resource what would be your advice when working with a configuration file? If an application was to use a remote JNDI resource I could see how this would be a problem. I understand how to do it I'm just not sure of the right way to do it. I guess I'm looking for best practices advice.

    Hello,
    Yes, you can use the API RessourceBundle to read configuration informations.
    Just create a propertie file with your locale, and access it to read informations :
    for example :
    you create a file config_fr_FR.properties (i'm french).
    for accessing your information ( strValue1 = aValue) :
    String ressource = null;
    try {
    ressource = ResourceBundle.getBundle("config",new Locale("fr","FR")).getString("strValue1"); // better is to create a static Locale... here just for the example.
    } catch(Exception e) {
    // ooops...
    return ressource; // return aValue
    Hope this help.

  • How to configure a JNDI resource

    I'll try to make my question as simple as possible since I've never got an answer on these forums :(
    I want to configure a JNDI resource in the Sun Java(TM) System Application Server Enterprise Edition 8.1 Admin Console so that webapplications can do basic ldap searches using JNDI.
    The following code works for me:
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
    env.put(Context.PROVIDER_URL, "ldap://the.ldap.server:389");
    env.put(Context.SECURITY_AUTHENTICATION,"simple");
    env.put(Context.SECURITY_PRINCIPAL,"thebinddn");
    env.put(Context.SECURITY_CREDENTIALS,"thepassword");
    try {
      LdapContext ctx = new InitialLdapContext(env, null);
      SearchControls cons = new SearchControls();
      cons.setSearchScope(SearchControls.SUBTREE_SCOPE); 
      NamingEnumeration results = ctx.search("ou=People,o=Temmellys,o=org", "uid=juhani2", cons);
      while (results != null && results.hasMore()) {
        /* doing something with the results */
      ctx.close();           
    catch (Exception e) {
      e.printStackTrace(out);
    }So my question is; How do I configure this resource with the same environment properties in the admin console? I want to name the resource ldap/test and access it in the following way (is this correct?):
    InitialContext ctx0 = new InitialContext();
    LdapContext ctx = (LdapContext)ctx0.lookup("ldap/test"); Do I configure a "Custom resource" or an "External resource" and how do I specify the properties?
    See my original post for more information:
    http://swforum.sun.com/jive/thread.jspa?threadID=62965&tstart=0
    Even if this is basic rtfm stuff it would be nice if someone could help me out here. I am developing a portal for an organization running JES and my hands are tied on trying to get other things to work.

    Problem solved in the original thread. If you are trying to do the same be sure to check it out (the SUN documentation is faulty):
    http://swforum.sun.com/jive/thread.jspa?threadID=62965&tstart=0
    I apologize for starting two threads on this.

  • Error -50103 : How can I get the resource which is reserved

    I get the error -50103 when I try to start two A0 task on two different channels. The error message tells me that "The specified resource is reserved".
    But how can I known what is the specified resource. Is that a clock signal, a buffer or what else ?
    More generally, how can I known the resources used by a task ? Is that a VI which can gives me all the resources used by a task?
    Thank for your answer
    Félix
    Software : Labview 7, Driver : daqmx 7.3,
    Board : PCI 6259 M serie

    Hello:
    I'm trying out a shipped example called PID-Control Multichannel VI and
    I'm getting the same error? How can NI shipped it with this problem?
    Anyway what should be the remedy here?
    Thanks,
    Berns
    Bernardino Jerez Buenaobra
    Senior Test and Systems Development Engineer
    Test and Systems Development Group
    Integrated Microelectronics Inc.- Philippines
    Telephone:+632772-4941-43
    Fax/Data: +632772-4944
    URL: http://www.imiphil.com/our_location.html
    email: [email protected]
    Attachments:
    PID Control-Multi Channel.vi ‏160 KB

  • How to use tomcat JNDI  resource in eclipse

    hi all, In my project i am using JSF,Tomcat,eclipse... i am planing to implement annotaions as part of my application
    I want to use Jndi resource as part of my project by using java annotaions
    for this i configured my server.xml in tomcat as
    <Context docBase="ALWREPORTSNEW" path="/ALWREPORTSNEW"
    reloadable="true"
    source="org.eclipse.jst.jee.server:ALWREPORTSNEW" >
    <Resource auth="Container"
    driverClassName="com.mysql.jdbc.Driver" maxActive="10000"
    maxIdle="3000" maxWait="10000" name="jdbc/enrollmentschema"
    password="adminadmin" removeAbandoned="true"
    removeAbandonedTimeout="300" type="javax.sql.DataSource"
    url="jdbc:mysql://localhost:3306/enrollment_schema_old"
    username="root" />
    </Context>And i configured web.xml as
    <resource-ref>
    <description>Enrollment Schema Connection pooling</description>
    <res-ref-name>jdbc/enrollmentschema</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>And some where in my project i am using annotaion as follows. i am getting NULL when trying access that annotaion .
    @Resource(name = "jdbc/mobileEnrollProd") DataSource mobileds;
    @Resource(name = "jdbc/enrollmentschema")
    private DataSource enrollds;
    public String UploadBankWise() {
    System.out.println("--------- ds "+enrollds);// *i am getting NULL*
    }but same code working with Glassfish and net benas..
    can any body hint me where i did mistake
    thanks in advance

    Go to Window-Preferences-Java-Debug-Step Filtering. When the dialog opens, press F1 for help. Good luck!

  • How to delete images from folder which are not in the database

    I am created windows form
    i wont to delete images from the folder where i have stored images but i only want to delete those images which are not in the data base.
    i don't know how it is possible . i have written some code
    private void button1_Click(object sender, EventArgs e)
    string connectionString = "Data Source";
    conn = new SqlConnection(connectionString);
    DataTable dt = new DataTable();
    cmd.Connection = conn;
    cmd.CommandText = "select * from tbl_pro";
    conn.Open();
    SqlDataAdapter da = new SqlDataAdapter(cmd);
    da.Fill(dt);
    int count = Convert.ToInt32( dt.Rows.Count);
    string[] image1 = new string[count];
    for (int i = 0; i < count; i++)
    image1[i] = dt.Rows[i]["Image1"].ToString();
    string[] image2 = new string[count];
    for (int i = 0; i < count; i++)
    image2[i] = dt.Rows[i]["Image2"].ToString();
    var arr = image1.Union(image2).ToArray();
    string[] arrays;
    String dirPath = "G:\\Proj\\";
    arrays = Directory.GetFiles(dirPath, "*", SearchOption.AllDirectories).Select(x => Path.GetFileName(x)).ToArray();
    int b= arrays.Count();
    for (int j = 1; j <= b; j++)
    if (arrays[j].ToString() != arr[j].ToString())
    var del = arrays[j].ToString();
    else
    foreach (var value in del) // ERROR DEL IS NOT IN THE CURRENT CONTEXT
    string filePath = "G:\\Projects\\Images\\"+value;
    File.Delete(filePath);
    here error coming "DEL IS NOT IN THE CURRENT CONTEXT"
    I have to change anything .Will It work alright?
    pls help me
    Sms

    Hi Fresherss,
    Your del is Local Variable, it can't be accessed out of the if statement. you need to declare it as global variable like below. And if you want to collect the string, you could use the List to collect, not a string.  the string will be split to chars
    one by one.
    List<string> del=new List<string>();
    for (int j = 1; j <= b; j++)
    if (arrays[j].ToString() != arr[j].ToString())
    del.Add(arrays[j].ToString());
    else
    foreach (var value in del)
    string filePath = "G:\\Projects\\Images\\" + value;
    File.Delete(filePath);
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    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.

  • How do I delete a contact which is not in my contact list or anywhere else?

    I need to delete contact information (email addresses and names) on my iPhone which keep coming up every time I type a remotely similar name in Mail, but isn't in my contact list.
    I tried searching for the name and then the associated email address using the iPhone but came up with no result. I searched for the name and then the associated email address inside of my HP HDX-18t (Vista Ultimate 64bit) but came up with no result. I tried searching for the name and then the associated email address using the iPhone but came up with no result. I searched for the name and then the associated email address inside of my Yahoo account (using my Vista PC, not the iPhone) but came up with no result. I searched for the name and then the associated email address inside of all of my other email addresses and devices but came up with no result.
    These names and the associated email addresses show up only in my iPhone and absolutely nowhere else. I tried Restoring my iPhone and that did not resolve the problem. Using the iPhone I tried going to Settings - General - Reset - Erase All Content and Settings. This did not solve the problem.
    Every time I've ever sent an email to an email address and received a response from that email address that email address and name associated with the response has been stored someplace in the phone but no place else. This is a major pain because every time I try to send an email to one of my actual contacts I have to either type out their full name or flick through a stream of contacts which are not in any of my sources. This means I cannot send an email quickly (I'm using an iPhone so I should be used to a lack of speed, huh?) and am often lost in a sea of names and email addresses I cannot eliminate.
    How do I get rid of this? I want all of the names and addresses which are not in any of my other locations gone! These are not even in my iPhone Contacts or even in the Sent email folders so there must be a way to delete them without their coming back!?!?!???!??!
    Thanks all who answer with solutions which serve to solve the problem.
    Message was edited by: monkeyman_stones
    Message was edited by: monkeyman_stones
    Message was edited by: monkeyman_stones
    Message was edited by: monkeyman_stones

    Try logging into your Yahoo account from a computer, search out the contact you are trying to delete and manually correct or delete the bad contact.
    The bad information might be hidden as a second address or other contact information (or misspelled) and not be showing up on the iphone but will pull up the address anyway.
    I had one old address in a contact that kept pulling up each time i tried to email him. The new address was there, but the old address was what the phone kept showing. When I edited the contact info from my computer the old address went away, and the new address started poping up.

  • How to clear the form fields which are not rendered

    I have a creation form. There is a document_type list set up as a partial triger. When user change the document type, only the filed related to that document type will be rendered. This caused a problem when we need to clear the form . The input in the field which is not render won't be cleared when reset button is pressed. Can anybody give a sugestion on how to handle this?
    I tried to use the following function to clear the fields. It does not work since it get the list value before the list value change and clear the fields after the new field rendered.
    public void clear_action(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    System.out.println("test1");
    String coutcase = null;
    if(EL.get("#{bindings.Proxy.inputValue}") != null){
    coutcase = EL.get("#{bindings.Proxy.inputValue}").toString();
    System.out.println(coutcase);
    AttributeBinding a11= (AttributeBinding)getBindings().getControlBinding("INT_FNAM");
    AttributeBinding a12 = (AttributeBinding)getBindings().getControlBinding("INT_LNAM");
    AttributeBinding a13 = (AttributeBinding)getBindings().getControlBinding("TIT_PROG");
    AttributeBinding a14 = (AttributeBinding)getBindings().getControlBinding("T_OF_INT");
    AttributeBinding a15 = (AttributeBinding)getBindings().getControlBinding("NETWORK");
    AttributeBinding a16 = (AttributeBinding)getBindings().getControlBinding("IN_DATE");
    AttributeBinding a17 = (AttributeBinding)getBindings().getControlBinding("PE_FNAM");
    AttributeBinding a18 = (AttributeBinding)getBindings().getControlBinding("PE_IN_LNAM");
    AttributeBinding a19 = (AttributeBinding)getBindings().getControlBinding("WEBSITE");
    AttributeBinding a20 = (AttributeBinding)getBindings().getControlBinding("URL");
    AttributeBinding a21 = (AttributeBinding)getBindings().getControlBinding("INT_DATA");
    AttributeBinding a22 = (AttributeBinding)getBindings().getControlBinding("D_ACCESS");
    AttributeBinding a23 = (AttributeBinding)getBindings().getControlBinding("CASE_NUM");
    AttributeBinding a24 = (AttributeBinding)getBindings().getControlBinding("COURT");
    AttributeBinding a25 = (AttributeBinding)getBindings().getControlBinding("PLAIN");
    AttributeBinding a26 = (AttributeBinding)getBindings().getControlBinding("DEFEN");
    if(coutcase.equals("Interview")) {
    a11.setInputValue(null);
    a12.setInputValue(null);
    a13.setInputValue(null);
    a14.setInputValue(null);
    a15.setInputValue(null);
    a16.setInputValue(null);
    a17.setInputValue(null);
    a18.setInputValue(null);
    /*a19.setInputValue(null);
    a20.setInputValue(null);
    a21.setInputValue(null);
    a22.setInputValue(null);
    a23.setInputValue(null);
    a24.setInputValue(null);
    a25.setInputValue(null);
    a26.setInputValue(null);*/
    } else if(coutcase.equals("Internet")){
    /*a11.setInputValue(null);
    a12.setInputValue(null);
    a13.setInputValue(null);
    a14.setInputValue(null);
    a15.setInputValue(null);
    a16.setInputValue(null);
    a17.setInputValue(null);
    a18.setInputValue(null);*/
    a19.setInputValue(null);
    a20.setInputValue(null);
    a21.setInputValue(null);
    a22.setInputValue(null);
    /*a23.setInputValue(null);
    a24.setInputValue(null);
    a25.setInputValue(null);
    a26.setInputValue(null);*/
    } else{
    /*a11.setInputValue(null);
    a12.setInputValue(null);
    a13.setInputValue(null);
    a14.setInputValue(null);
    a15.setInputValue(null);
    a16.setInputValue(null);
    a17.setInputValue(null);
    a18.setInputValue(null);
    a19.setInputValue(null);
    a20.setInputValue(null);
    a21.setInputValue(null);
    a22.setInputValue(null);*/
    a23.setInputValue(null);
    a24.setInputValue(null);
    a25.setInputValue(null);
    a26.setInputValue(null);
    }else{
    System.out.println("coutcase is null");
    }

    Hi,
    The easiest way to modify the screens in the Std transactions using ITS is to modify the ITS templates corresponding to that transaction.
    E.g In you case,there will be a ITS service corresponding to the ESS transaction.This ITS service will have  number of HTML templates which will actually correspond to the diffrent screens in the Trascn.What you need to do is find out the HTML template in the ITS service which corresponds to the screen(which you want to modify) in the STd transacn.To do this ,the easiest way is to right click on that Web page and say VIEW SOURCE.It will show you a HTML code with the ITS service name and the template which is being used for that particular screen.
    So after you find out the correct HTML template to be modified,you can simply hide the fields by putting the HTML code lines in between the symbols
      <!   and  -->
    BR,
    Disha.
    <b>Pls reward points for useful answers.</b>

  • How to extract data using DSources which do not support Delta

    Hi forum,
    Iam using a data source which does not support delta. In such a scenario what should i do For subsequent extractions.Will i have to opt for full load every time, if so then how will the double data records be treated. Pls help me out of this situation. In RSA6 if i click on the data source there i can find a check box for enabling delta , but again that is greyed out. If i want to change that what steps should i follow.
    All the helpfull answers and solutions would be thanked by assigning full points.
    Regards
    Pallavi

    Can you give me the data source name please.
    If it is a standard Business Content Datasource and it does not support delta(or delta is not enabled) then you dont have any choice to modify the standard Datasources. In such cases you can create a Generic DS same as Standard DS and enable delta.
    Hope this helps.
    Praveen

Maybe you are looking for

  • Error while doing the Export ...

    About to export specified users ... . exporting pre-schema procedural objects and actions . exporting foreign function library names for user LRMSDBO_DEM . exporting PUBLIC type synonyms . exporting private type synonyms . exporting object type defin

  • Please throw me a life-line: Problem with HP Recovery Manager's File backup option

    Product: Pavilion g7-1070us notebook Operating system: Window 7 64-bit Problematic system: HP Recovery Manager (triggered by hitting F11), made by "Cyberlink"? Error message: The notebook crashed a few times before but I was able to restart it. Then

  • Forget a WiFi Network without Connecting to It?

    Is there a way to tell the iPhone to "Forget this Network" for a network you haven't connected to? Or perhaps I should phrase the question differently: Is there a way to keep asking me if I want to join networks in general, but stop asking me about t

  • Error Message -9813

    iTunes is no longer allowing me to sign in to my iTunes account. Whenever I try I get an "unknown error -9813". It will let me listen to my library and even preview songs. It's just that whenever I try to log-in so I can purchase music, it refuses me

  • Need a Query to update....below are requirements

    Hi, I need a query to update table xx_cc_audit. below are requirements. In xx_cc_audit I have more than 1000 rows. In this table Column - contract_number is inserted as null for some rows. I need a query to update this xx_cc_audit table which will re