4 Basic JNDI questions I have - please help :-)

Hello JNDI lovers and haters as i feel at the moment :P
Question 1: I get a warning message from my eclipse 3.3:
NamingEnumeration is a raw type. References to generic type NamingEnumeration<T> should be parameterized     LDAP     MainWindow.java     line 133     1184255055215     3297this warning refers to this code line:
NamingEnumeration enm = ctx.search(baseDN,filter,controller);What does that warning mean and how can i make my code proper so i get no warning?
Question 2: I have nowhere in my JNDI book found any hint that i must close an NamingEnumeration instance. So for what is this close() methode and if i have to close an instance of the NamingEnumeration class, when do i have to use it exactly??
Question 3: When i make 2 Context searches like ctx.search(); etc... do i have to use everytime a new ctx instance for every search i do ? like ctx1.search(), for the first search and ctx2.search() for the 2nd search??
Or can i use ONLY 1 instance of a Context class for several searches ? Logically one Context should be enough as i have only one entry point for my ldap tree and its always the same root...
Question 4:
Why does my Duke stars not decrease do i have unlimited of them? well not so a serious question as Adler_Steven deserves them all :D
Would be very pleased guyz if you could help out a JNDI wannabe pro ;-)
EDIT:
i found this information on the sun forum:
javax.naming.NamingEnumeration enum = ctx.search("",satts);
if ( enum.hasMoreElements() ) {
SearchResult firstresult = (SearchResult)enum.nextElement();
attrs = firstresult.getAttributes();
} else {
throw new Exception("No Entries returned");
enum.close(); // without this, ctx.close() did not release the thread
ctx.close();as you can see above the enum is closed and the guy say s if its not closed you might get trouble as the thread gets not released ?? BUT i have seen so many code examples where the ppl dont close the enum instance ?? HOw This ?

ok thanks

Similar Messages

  • HT5312 Dear Apple Support ,  I can't remember my security question answers , so Please help me to Create new Security Question for my Account .  Best wishes

    Dear Apple Support , I can't remember my security question answers , so Please help me to Create new Security Question for my Account .  Best wishes
    <Email Edited by Host>

    Welcome to the user to User Technical Support Forum provided by Apple.
    Please do not post personal information on a Public Forum.
    I have requested the Hosts remove it for you
    For your issue...
    See Here > Apple ID: Contacting Apple for help with Apple ID account security
              Ask to speak with the Account Security Team...
    Or Email Here  >  Apple  Support  iTunes Store  Contact
    More Info >  Apple ID: All about Apple ID security questions
    Note:
    You can only set up and/or change a Rescue Email Before you forget the questions/answers.

  • I can't remember my security question answers , so Please help me to Create new Security Question for my Account .

    rt ,
    This is ***majed*** ,I can't remember my security question answers , so Please help me to Create new Security Question for my Account .
    Best wishes,

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then the steps half-way down this page give you a reset link on your account : http://support.apple.com/kb/HT5312
    If you don't have a rescue email address (you won't be able to add one until you can answer your questions) then you will need to contact iTunes Support / Apple in your country to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the HT5312 link above to add a rescue email address for potential future use

  • I can't remember my security question answers , so please help me to Create new Security Question for my Account : ********  , Best wishes

    I can't remember my security question answers , so please help me to Create new Security Question for my Account : **********
    , Best wishes
    <Personal Information Edited by Host>

    We are fellow users here on these user-to-user forums, you're not talking to iTunes Support nor Apple - I've asked the hosts to remove your email address from your post (it's not a good idea to post personal info on any public forum).
    If you have a rescue email address (which is not the same thing as an alternate email address) on your account then the steps half-way down this page will give you a reset link on your account : http://support.apple.com/kb/HT5312
    If you don't have a rescue email address (you won't be able to add one until you can answer your questions) then you will need to contact Support in your country to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the HT5312 link above to add a rescue email address for potential future use

  • Support ,​ ​ This is Thamer mohammad  ,I can't remember my security question answers , so Please help me to Create new Security Question for my Account .​ ​ Best wishes

    Support ,​
    This is Thamer mohammad
    ,I can't remember my security question answers , so Please help me to Create new Security Question for my Account .​
    Best wishes

    These boards aren't Apple Support; nobody here can reset the questions. Click here, phone Apple, and ask for the Account Security team, or fill out and submit this form.
    (90021)

  • I forgot my security questions can you please help me?

    i forgot my security question can you please help me?

    See Here > Apple ID: Contacting Apple for help with Apple ID account security
              Ask to speak with the Account Security Team...
    Or Email Here  >  Apple  Support  iTunes Store  Contact
    More Info >  Apple ID: All about Apple ID security questions
    Note:
    You can only set up and/or change a Rescue Email BEFORE you forget the questions/answers.

  • Dear Apple Support ,  This is amany alnajjar ,I can't remember my security question answers , so Please help me to Create new Security Question for my Account .

    Dear Apple Support ,
    This is amany alnajjar ,I can't remember my security question answers , so Please help me to Create new Security Question for my Account .

    The Best Alternatives for Security Questions and Rescue Mail
        a. Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
        b. Call Apple Support in your country: Customer Service: Contact Apple support.
        c. Rescue email address and how to reset Apple ID security questions.

  • Dear Apple Support ,  This is FAHAD ALGORWAN ,I can't remember my security question answers , so Please help me to Create new Security Qu

    Dear Apple Support ,  This is FAHAD ALGORWAN ,I can't remember my security
    > question answers , so Please help me to Create new Security Qu

    Please do not make multiple posts. One is enough. These are user forums, so you are not speaking to Apple here.
    The Best Alternatives for Security Questions and Rescue Mail
        a. Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
        b. Call Apple Support in your country: Customer Service: Contact Apple support.
        c. Rescue email address and how to reset Apple ID security questions.

  • Dear Apple Support , This is ***Abdurrahman*** ,I can't remember my security question answers , so Please help me to Create new Security Question for my Account . Best wishes,

    Dear Apple Support ,
    This is ***Abdurrahman*** ,I can't remember my security question answers , so Please help me to Create new Security Question for my Account .
    Best wishes,

    The people on these boards aren't Apple Support and can't do that for you. You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (102461)

  • IPhone 3g broken ,Genuis Bar Questions.  ****LONG**** PLEASE HELP

    Well i guess ill say the whole story. I bought my iPhone on August 6th and i had a plane to catch that day to Cali. So i synced it all up with my mac mini. My dad also got one and he went to Brazil (which is why im in Cali) While ive been here ive been syncing my iPhone with her windows computer to put apps on. Everything has been great until this week. Im calling it **** week. Ever since i updated to 2.0.2 its had no service most everywhere, apps and safari quit and when safari doesnt it runs extrememly slow and typing lag is worse then ever. I figured whatever maybe once i go back home it will start working again. Well thats not the case. Last night i was downloading apps and one of them got stuck when it was almost done installing. So synced it with my computer and it took it off.. well it still showed that it was installing. So i restarted my iPhone and it got stuck at the Apple logo(which is a common problem i know about the big thread also) so i restarted it and everytime it would go back to the Apple logo. I tried restoring it and everytime i plug it into my computer its makes my computer run extrememly slow and itunes wont come up. Then when i unplug it itunes pops up and everythings running normally. So after about 6 hours straight of trying to fix it, its now not turning on at all. Even when i plug it into a power outlet and computer. So basically i have a broken iPhone and its worthless. I have an appointment but im wondering if its even worth it.
    Genuis bar questions:
    1. Does the accoutn holder have to be present? Im on the account but not the account holder. My dad said to try.
    2. Will they try and hold my iphone? I cant leave it there because i have to leave that day.
    3. Would they just give me a new one? I would love that and not have to go through all this trouble
    Please help im stuck withotu a phone in the worst possible time.

    Jaden Hawk wrote:
    Genuis bar questions:
    1. Does the accoutn holder have to be present? Im on the account but not the account holder. My >dad said to try.
    No.
    2. Will they try and hold my iphone? I cant leave it there because i have to leave that day.
    No.
    3. Would they just give me a new one? I would love that and not have to go through all this trouble
    If there is a hardware problem with the iPhone they will replace it for you.
    You may want to update and restore the iPhone.
    http://docs.info.apple.com/article.html?artnum=305744
    Jason

  • A few newbie questions...Please help!

    I'm brand new here - considering getting a Droid Incredible.
    Please help me with the following (albeit somewhat random!) questions...
    When I set up the phone, I only want to use Gmail. Will Gmail automatically be made my default email program, or will the regular HTC Mail program also be loading my Gmail? I'd rather not have conflicting notifications.
    Voicemail. Thinking of getting regular Basic Voicemail. Do I get notifications every time I get a voicemail? When I click on it, will it take me directly to the voicemail, or will I still have to jump through the password junk? Does Voicemail integrate with the regular Phone app, or is it different?
    Does Verizon give me my "Voicemail Pin" or whatever? Do they set it up at the store?
    Browser. Is there any way I can set it so that it goes to my home page every time  I open it? I hate when it continues from last time.
    THANKS IN ADVANCE! I know that I might sound stupid - but this is my first smartphone. I want it to be efficant, easy to use, and slick. Based on the reviews, the Incredible is all that.

    nytraveller53 wrote:
    THANKS EVERYONE ALREADY! You've already helped me a lot. I think I'm going to take a trip to the Verizon Store today, and discuss some details with them as well.
    A couple other questions I had, but I forgot to ask:
    Task Killers. I know many Android fans swear by them, but most of the "Tech Experts" (PC World, Wired, etc.) claim that Android is designed to do it by itself. Is a Task Killer really necessary? I personally do not use task killers as they are glorifed battery killers.
    How would I go about switching between open apps (WITHOUT using a third-party app), that is different from just going to the home screen again?
    SO...Pressing down "1" to get to voicemail needs to be programmed in at Verizon, correct? Making it so that I don't have to enter the password needs to be done at Verizon, correct? And Verizon will give me my voicemail PIN and Password, correct? Call *86 to get to VM. Once there, you will set up your VM and assign a pin. Just follow the instructions.
    The Droid Incredible was released almost a year ago now. Does it even make sense to sign up for a smartphone already that old, when I have to have it for 2 years? I'm thinking it might be better to wait for the new Thunderbolt. Your opinion? That is strictly a personal preference. If you are not near an area where LTE service will not be for a while, maybe the cheaper Incredible will be fine for you.
    Hulu. Am I correct that Hulu does NOT work on Android, even with Flash? Hulu has blocked access from phones except MAYBE iPhone, but I am not sure
    Can someone please give me a list of ALL the apps that CAME with the phone when you got it? (You know, calendar, mail, etc.) Too many to list. What you see is more than waht we got originally. More were added when Froyo came out.
    Do I NEED Adobe Reader to see pdf email attachments, or will the "Office" thing display all documents just fine? What does that built in app support anyway? Download the reader
    What "Verizon" apps comes with the phone? I don't want VCast and all that, just an app to monitor my minutes. I really hope Verizon doesn't load crapware (cough, HP, cough) onto the phone, do they? Vcast 'Comes' on the phone. You will see it and other apps you may never use on the 'Running' list, but do not dwell on it. If you want an explanation as to why they are 'Running', do a search. Simply they do not use resources unless you ARE using them.
    On the phone, are there both "HTC Sense" versions of apps AND regular stock Android apps, or is it all combined? I don't want two contacts apps, for example. You will end up with dup apps if you DL another app. But you can hide the one you do not want to use, if it came with the phone.
    Visual Voicemail. I'm considering it, it's just $2.99. And I'm NOT messing with Google Voice. Is VVM integrated with the regular dialer, or is it a seperate program? I've heard reports from both sides on this topic.
    How can I make it so the Browser starts up at the home page every time (NO Task killer, please!) You mean have a favorite web page open when you open the browser???
    How do you change the address in the web browser without navigating to "Menu" - "Go to" (that's a real pain). Is there a shortcut? Thanks! Bookmarks are your friend
     I plan on using this phone for maybe an hour in the morning, not very much during the day, and then about two or three hours total in the afternoon. Will the battery last without me having to turn off different features? I actually WANT the 3G, sync, etc. running! battery life depends on many factors.... Do a search of 'Battery Life' to have help with that
    I have super high speed Wifi in my home. When I set up wifi on the device initially, will the phone automatically connect to Wifi instead of 3G everytime I go home? Or do I do this manually? If you keep the WiFi switch on, yes. But keeping it on away from home KILLS the battery as the phone searches and searches
    Thanks again - I know these are very nitpicky and detailed questions, but I'm so close to getting the Incredible...I want the full scoop!!
    Thanks! I'll probably have more questions, thanks for helping me out! Forgive my stupid questions!

  • I've got nothing(gray screen, question mark folder) Please Help!

    This problem is on my girlfriend’s computer, about the same as mine, PB G4 800mhz 768mb RAM, 10.4.x
    I am a competent user and this one has me worried…
    Problem
    Last night she goes to the computer sends an IM checks her e mail, watch some tv, goes back to the computer to look something up on line and its frozen, I do not recall if the mouse was visible but I don’t think there was a beach ball. She asks me what to do I said just give it a few minutes maybe it will process through what ever it is and be back to normal. We both forget to take a look at it before bed.
    This morning computer is still frozen/non-responsive and the fans are running... Shut down by holding down the power key. I try to re-start by pressing power key, screen lights up with gray background wait wait then the folder icon comes up with the question mark in it. This gets me worried.
    What I have tried
    I have tried to get it into target disc mode with my powerbook(computer B), I start up computer A holding down the T key and the screen goes to that moving firewire icon but the hard drive does not show up on my computer B.
    I tried unplugging it, removing the battery and re setting the pram
    I tried to run the hard ware test CD, but when I hold C to boot to the CD it spins up the disc and the little hardware test folder is in the middle of the screen but then it does not load any further. I had to shut down holding the power button. Computer would not eject CD so I had to start up and use unix eject cd command, this worked.
    I tried target disc mode again.
    I tried just a plain start up again.
    I do not have the 10.4 CD at my house so I have not tried to start from that yet, but I can borrow one from grandparents this evening after work, but I am worried since it will not start from the hardware test CD that it will not start from the system CD.
    I believe I have computer A backed up from either last week or the week before( I thought about doing it this weekend but did not get to it  ), she is not backed up daily as I am. Though she said there is quite a bit of important work from this past week.
    I have no idea what to do next or what the source of the problem could be(software or hardware). I fear the worst, but hope that you can share an idea that will turn out for the best!
    Please help me fix this computer, I can play with it some when I go home for lunch and then I need to get it fixed if possible this evening because she needs some important class work and grad school applications from it!
    Jerome

    So is the next step to try and re-format the drive and then use super duper to copy the back up over to that drive and then run disc utility and disc warrior on it? Which specs should I select for the re format, do they have to be the same as what is on my back up drive?
    Yes, reformatting the drive is the next step. Use your Panther installer discs, choose Mac OS Extended format, and check the box to install OS 9 drivers, just in case. The "Verified" SMART status is somewhat less reliable than a "Failing" status would have been: "Failing" definitely means trouble was detected, but "Verified" could just mean nothing seemed to be wrong right at the moment when you happened to ask. So if there's any trouble reformatting the drive, replace it: you shouldn't entrust anything important to it. If all goes smoothly with the reformat, the drive probably really is OK.
    What you can do with your backup depends on how you created it. If the backup is a bootable clone made with Carbon Copy Cloner or SuperDuper, you can clone it back to the reformatted drive the same way you created it in the first place, then add the extra files that were created or modified after you made the backup. If you just Finder-copied the drive to another drive, the backup isn't bootable, and copying it back onto the reformatted drive won't make that one bootable either: OS X isn't Finder-copyable. In that case, I really shouldn't advise you on reconstructing the former contents of the drive from your backup — my only experience of backing up OS X disks is by cloning, which eliminates all the hassles of making sure user accounts, passwords, permissions, etc. are transferred correctly to the backup, and then transferred correctly back to the original disk in a restore. Nearly four years after my adoption of OS X, I confess I'm still far more mystified by many aspects of it than I ever was by the old-time Mac OS.
    Message was edited by: eww

  • HT5312 I forgot my Secret Question's answers please help me out!

    I forgot my secret Question's Answers I want to buy some app from Apple but it asks me my secret Questions answer that I forgot, please help me out!
    Thanks and Regards,
    emam

    Didn't the link to contact the iTunes Store staff in the 'Additional Information' section of that article work for you? If you don't already have a valid rescue email address, only Apple itself can assist with recovering lost answers.
    (88586)

  • Myfaces t:columns question...please help me...

    Hi guys,
    i've tried lots of solutions,but i think i've find right solution to solve my question.
    I have to create a datatable with a fixed number of columns and other dynamic columns.
    I've rendered it using t:columns of Myfaces and it works fine.
    It's a piece of jsp page
              <t:dataTable
        value="#{biosamplesTable.biosamples}"
        var="biosampleItem"
         binding="#{biosamplesTable.biosampleDataTable}"  >
        <h:column >
            <f:facet name="header">
                <h:outputText value="Organism" />
            </f:facet>
           <h:selectOneMenu value="#{biosampleItem.organism}">
                <f:selectItems value="#{getDropList.selectOrganism}"/>
           </h:selectOneMenu>
    etc..etc..   
            <t:columns value="#{biosamplesTable.columns}" var="col">
             <f:facet name="header">
                      <h:outputText value="Nuova" />
            </f:facet>
            <h:inputText value="#{biosampleItem.column}" />
        </t:columns>
         <h:column>
            <f:facet name="header">
                <h:outputText value="Actions" />
            </f:facet>
            <h:commandButton
            value="Invia dati biosample" actionListener="#{biosamplesTable.editBiosample}" id="editBiosample">
            </h:commandButton>
        </h:column>
    </t:dataTable>     
    </h:form>     
    }     My only question is:
    I'm able to retrieve the h:column values for each row,i do it in editBiosample method
    public void editBiosample(ActionEvent event) throws SQLException {
              setBiosampleItem((Biosample) getBiosampleDataTable().getRowData());
              try {
                   if (conn != null) {
                        Experiment exp = (Experiment) ViewUtils.eval("#{experiment}");
                        PreparedStatement pst3 = null;
                        pst3 = conn
                                  .prepareStatement("INSERT INTO  campione(id_,organismo,protocollotrattamento,metodoestrazione,tipoamplificazione,protocolloibridazione,protocollomarcatura)      VALUES(?,?,?,?,?,?,?)");
                        pst3.setInt(1, exp.getAutoKey());
                        pst3.setString(2, getBiosampleItem().getOrganism());
                        pst3.setString(3, getBiosampleItem().getTreatmentProtocol());
                        etc...
              pst3.executeUpdate();
              pst3.close();
              catch (Exception e) {
                   e.printStackTrace();
         }now i have to retrieve the h:columns values for each row,how can i do it?
    Please help me,i've started so but there is some error,each values is null!!
    For generating columns i've used..
    public List getColumns() throws Exception {
         if (load2 == 0) {
         for (int i = 0; i < 3; i++) {
              UIOutput input = new UIInput();
            ValueBinding myItem =
                FacesContext
                    .getCurrentInstance()
                        .getApplication()
                            .createValueBinding("#{biosampleItem[" + i + "]}");
            input.setValueBinding("value", myItem);
            UIColumn column = new UIColumn();
            column.getChildren().add(input);
              columns.add(column);
              load2=1;
         else this.columns=columns;
         // Reload after every request.
         return columns;
    }what's wrong?
    Please help me,i need to solve my problem...
    thanks in advance...
    Message was edited by:
    giubat
    Message was edited by:
    giubat

    Ok, you have more than one frame and when you make your dialog, it is only modal on one frame.
    Not sure how to make a workaround for that. That would proably require that when another frame got the focus, it should check if any of the frames has a modal dialog visible, and if that is the case, it should move the dialog to the front (dialog.toFront()).

  • Authorization question - Need Answers - Please help

    Hi,
    I have collected the following questions. Can you please answer? Thanks.
    1)     What is Authorization object
    a.     Collection of Authorization fields
    b.     Authorization fields fill with Values
    c.     Group of Authorization Key.
    d.     Authorization object fill with Values.
    2)     Which of the statement below accurately describe when S_RS_ADWMB  will be used.
    a.     when using transaction code RSA1, the administrator work bench
    b.     when creating new query in the Bex Analyser.
    c.     When updating source system in RSA1
    d.     None of the above.
    3)     which of the following objects protect ODS data.
    a.     S_RS_ODSO
    b.     S_RS_ODSP
    c.     S_RS_ODSS
    d.     S_RS_ODSA
    4)     When would you use the $ in an authorization value?
    a.     If you are using user exit to fill the authorization values at runtime.
    b.     If you have cost centres that starts with $
    c.     Anytime you want to grant all values: $ is just like * in the SAP R/3
    d.     If you want all variables to be filled with authorization values at runtime.
    5)     Hierarchies are used in SAP BW to rank Employees.
    a.     True
    b.     False
    6)     RFC destinations tell SAP systems where external systems are located.
    a.     True
    b.     False
    7)     Which are the following objects are used for infosource with flexible updating
    a.     S_RS_ISOUR
    b.     S_RS_ISRCM
    c.     S_RS_ISOCR
    d.     S_RS_ISCOM
    8)     Which of the following regarding Info area is correct
    a.     Group of Infocube.
    b.     Group of Infosource
    c.     Group of source system
    d.     Group of actual data.
    9)     Field S_RS_COMP can protect the query elements by infoarea,infocube and query name that user is trying to access.
    a.     True
    b.      False
    10 ) Authorization object S_RS_HIER is used when creating infocubes.
    a.     True
    b.     False
    11)If the info object is authorization relevant then it must have authorization object.
    c.     True
    d.     False
    12) What is composite role.
    a.     Includes number of roles
    b.     Single role including number of authorization keys\
    c.     Role within a role
    d.     None of the above.
    13) EP uses same role for portal access.
    a.     True
    b.     False
    14) You must include S_RFC in any role used by reporting user.
    a.     True
    b.      False
    15)     Same BW role can be used for another BW system using the same client.
    a.     True
    b.      False
    Advance Thanks,

    Can anyone please help me urgently?
    Advance Thanks.

Maybe you are looking for

  • My computer crashed...how do i get my old library transferred to a new one?

    i had a desktop computer (a dell with windows XP) that was 7 years old and crashed. it has to have windows reinstalled. this means i'm losing everything on my hard drive. can i transfer what's on my ipod directly to my new computer, which is a dell l

  • URL encoding in ABAP

    Hi all, do you know an ABAP function to encode a string to pass in an url so that to get "http%253A%252F%252Fsap.com%252Fxi%252FAP%252FCRM%252FGlobal" I'm passing dynamicParameter via an URL from an ABAP to a Java WD appli. They are automatically dec

  • Strange yellow color cast after CS4 install

    I just ran into a strange problem helping a friend install PS CS4. Everything seemed to go fine, but now all of a sudden his images are displayed with a strong yellow tint. I don't mean a slight color cast, I mean a STRONG yellow tint. The images app

  • How to install a DE or WM after install?

    I installed Arch, but didnt pick any other packages, other than the default ones, so im stuck with just a command line now when i boot up the system. What can i do to install a desktop environment like LXDE or XFCE? Thanks so much!

  • New post-deleting behaviour of iPhoto'08

    While editing photos I find it necessry to delete some of them. In previous versions of iphoto after pressing command+backspace the selected photo was moved to trash and iphoto showed next photo in queue. Now, however, iphoto jumps to the beginning o