Is this behavior the same across all JRE's?

Hey folks!
Given the following piece of code:
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.dns.DnsContextFactory");
DirContext ictx = new InitialDirContext(env);
String dnsServers = (String) ictx.getEnvironment().get("java.naming.provider.url");
System.out.println(dnsServers);
The magically returns back to me the DNS servers when I didn't even set my provider URL. I did a little Google search and came across this from Sun's website:
"The host and port indicate the DNS server to use. If only a host is given, the port defaults to 53; if only a port is given, the host defaults to "localhost". If neither is given, the provider will attempt to determine and use the server(s) configured for the underlying platform, and if successful, will set the java.naming.provider.url property to a space-separated list of URLs constructed using the server(s). (For example, on Solaris or Linux, the provider will read the /etc/resolv.conf file.) If DNS has not been configured on the underlying platform, the host and port default to "localhost" and 53."
I am running this code on windows XP. What is the mechanism by which it is determining the DNS? Am I guaranteed that whenever I don't set the URL for the DNS it will always try and locate one? And lastly, will the above code work on all JRE's (IBM's, BEA's) ? I know I am setting the initial context to com.sun.jndi.dns.DnsContextFactory, what would it be for BEA and IBM?

AS I understand your question, after you migrate to V6 you want all the controls in your 5.1 application to have the new 3D look and be consistent....
There is no tool that automatically goes through all your code and converts one control to another. However, depending on how you developed your code, the process might not be too bad. The key issue is the extent to which you utilized typedefs.
If you change the look of all you typedefs, the strict ones will change right away to the new look. For the regular typedefs, you'll need to have all the VIs in you application in memory at once.
Now, open the non-strict typedef and change it to the new 3D controls, and save it as a strict typedef. At this point all the instances will update. Finally reopen the typ
edef and change it back to a non-strict and save it again.
Having said all this, the process I outlined above will can take a bunch of memory (and time) depending upon how big your application is... but it will work.
As far as the nontypedef controls in your application--you're on your own...
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Similar Messages

  • How to create a variable, and how to use the same across all the reports?

    Hi,
    Is there any possibility of creating a variable at once and making use of that across in all the Crystal Reports?
    Thanks In advance for your time and solution.

    MohanMRK,
    can you describe how you get the value for this variable?
    is it calculated on one report and then you want to pass it to a 2nd report? if that's the case, what you can do is have the reports linked via an opendocument link and pass the value to the 2nd report as a parameter. the value / parameter is only shared when you press the opendocument hyperlink.
    please see the sdk library [here |http://www.sdn.sap.com/irj/boc/sdklibrary]and scroll down to the opendocument section near the bottom.
    if you are just trying to find a way to share a calculation across reports look into creating a Custom Function which can be added to your repository. please note that this will not pass a calculated value across 2 or more reports, but will just have a shared method of making the calculation.
    as Abhilash mentioned before, there's no way to use an actual Variable across 2 separate reports without them being a main report and subreport(s). in that case you'll want to look into Shared Variables.
    cheers,
    jamie

  • I bought the Snow Leopard Update but now my macbook wont even accept the DVD and keeps ejecting it. This is the same for all DVDs.

    I have a very old (refurbished, bought over 4 years ago) macbook pro 15". It's been running ok on OS X 10.5.8 until very recently. It started ejecting disks, and then the new adobe flash player update wouldn't work. Lots of other little things have been happening as well.
    I had been considering buying a new macbook, but one of the Apple store people suggested I update instead (a much cheaper alternative!). So I bought Snow Leopard, and it arrived in the post today. But now my macbook wont even accept the dvd. It takes it in, whirs and complains a bit (for less than 60 seconds) then ejects it again. I have tried cleaning the disk, cleaning the disk area with a credit card + lens cleaner (a trick I saw recommended on this forum). But no luck.
    Any advice?
    I am a trainee teacher and actually will be gutted to have to get a new laptop (as I really cant afford it). BUT obviously if I have to I will. I just need to extend the life of this one for as long as possible, until I have more money to get a better one!

    Bring your MBP to an Apple store genius bar and see what they say about your MBP optical drive. 
    Look on the OWC web site.  They sell optical drives for older MBPs.  Perhaps there is one that will fit yours.  Installing one is not brain surgery.
    Otherwise examine the iFixit.com and Powerbookmedic.com web sites for replacements.
    Ciao.

  • My ipod touch is stuck on the apple logo and after a while a white screen comes up and it restarts and the same thing all over agan. this happened to me before and after a while it turns on but why does it keep on doing this?

    my ipod touch is stuck on the apple logo and after a while a white screen comes up and it restarts and the same thing all over agan. this happened to me before and after a while it turns on but why does it keep on doing this?

    Try connecting the iPod Touch to your computer and restore it.  http://support.apple.com/kb/HT1414

  • I tried to sync my Macbook Pro photos in iPhoto with my iPod Touch.  I have done this numerous times, but today I got an error message saying the required file cannot be found.  At the same time all of my photos on my iPod vanished.  Can anyone help me?

    I tried to sync my Macbook Pro photos in iPhoto with my iPod Touch.  I have done this numerous times, but today I got an error message saying the required file cannot be found.  At the same time all of my photos on my iPod vanished.  Can anyone help me?

    Try deleting the photo cache from your computer and then re-try the photo sync - the location of the cache, and how to delete it, is on this page http://support.apple.com/kb/TS1314

  • Can not make FF my default browser...When asked I get "Your computer must be restarted to complete a previous upgrade of FF". When this is done, it's the same thing all over again...

    Can not make FF my default browser...When asked to make, I get "Your computer must be restarted to complete a previous upgrade of FF". After restart, it's the same thing all over again. I have explorer & chrome installed on my PC.
    == This happened ==
    Every time Firefox opened
    == A few monts ago.

    It is probably because you are not properly closing Firefox. Restarting your system would make sure that Firefox had terminated, but you do not have to do that.
    To properly close Firefox on Windows systems, use
    :File > Exit or "Firefox:" button > Exit
    When you get the message "Firefox is already running" it is too late, and you must force termination of Firefox through the Windows Task Manager before restarting Firefox. Windows 7 has a keyboard shortcut to save you a step "Ctrl+Shift+Esc" then on "Processes" tab, select "firefox.exe" and use the "End Process" button. More thorough would be to right-click on the "firefox.exec" and choose "End Process Tree".
    You would find firefox.exe in a Mozilla folder in your program files, but y0u would not want to delete it there, you would need to use the Control Panel which you have already identified and do it from there -- but generally you would not need to do that, and there is nothing in what you have posted to indicate that you should. But if you did do that, then don't let the install start Firefox for you as you would want to use you existing desktop icon or method of starting Firefox, and should decline having Firefox install start Firefox for you. When the install starts then invoke Firefox in your normal manner. This should eliminate problems of creating a new profile rather than using your old profile.

  • I have 3 apple products can I sync my mail accounts so that if i action on will it will do the same on all the others, like delete an e-mail and that e-mail is deleted on all the other devices

    I have 3 apple products can I sync my mail accounts so that if i action on one it will do the same on all the others, like delete an e-mail and that e-mail is deleted on all the other devices

    Hello sstan114,
    Great question! What type of email account are you using? Most email providers these days offer IMAP accounts (as opposed to POP). With IMAP, your changes should reflect across your devices (for example: if you read an email on your iPhone, it should be marked as read on your iPad). For more information about IMAP, see this resource:
    iCloud: IMAP
    http://support.apple.com/kb/PH2585
    In some cases, you may need to contact your Email provider or check out their online resources for information on how to setup your account as IMAP. The following article outlines some important information you’ll want to gather:
    Mail settings you might need from your email provider - Apple Support
    http://support.apple.com/en-us/HT1277
    Cheers,
    Matt M.

  • My macbook pro's screen display has suddenly gone into a strange colour setting where everything appears in a kind of infrared colour palette an I can;t seem to change it back.  It's the same for all icon and websites, does anyone know how to restore?

    My macbook pro's screen display has suddenly gone into a strange colour setting where everything appears in a kind of infrared colour palette an I can;t seem to change it back.  It's the same for all icon and websites, does anyone know how to restore?

    Wow!  I think I had this same issue just last night.
    I was cleaning my macbook pro retina on the outside.  Then I opened it up and was wiping dust off the monitor and I can't pinpoint exactly when, but the colors changed suddenly.  It looked super strange, it was like green halo's and it looked worse when looking at it at an angle.  Of course I took no pictures!!!  I was freaking out that my 2 grand laptop was busted and I somehow removed a protective film or something.
    But I digress...  The image looked very green and spacey, it was almost a neat effect.  After about 5 minutes it started to look a little more digital though.  There were straight lines of this halo effect on the edges and top.  After about 10 minutes it turned into a predominate issue with the blacks on screen.  I could open a web browser and it was unnoticable on a white background.  After about 15 minutes, you could only barely see the green cloud effect if you looked at the monitor from an extreme angle.  After about 20 minutes, it was completely back to normal, I almost feel paranoid like I see a halo or something strange.  But I believe that might be all in my head now.
    So yerp, lemme know what you guys figure out.

  • Creating a Master virtual hard disk and using the same for all other VM's

    Hi,
    We would like to create a master virtual hard disk and use the same for all other VM's. Can we do that ?
    my requirements :
    1) create 10 VM's
    2) first create a master virtual hard disk with win OS and use the same to create the 10 VM's.
    3) After creating the VM's change the HDD size.
                  -- if i have created master virtual disk with 500GB , and use the same for creating a virtual machine. can we change the HDD size to 1TB ?
    After creating the VM's ,i will change the system names and activate the windows accordingly.
    Will there be any implications ,if we can/will do like this.
    Thanks.

    Hi Suren424,
    I think Using Differencing Disks may cover your needs .
    Please refer to following setps:
       "Create the Parent Virtual Machine Configuration and Virtual Hard Disk
        Install the Operating System, updates, and common software
        Generalize the installation
        Prepare the parent virtual hard disk
        Create the differencing disks
        Create virtual machines that use the differencing disks
    For details please refer to follwing link:
    http://social.technet.microsoft.com/wiki/contents/articles/1393.hyper-v-virtual-machine-vm-parent-child-configuration-using-differencing-disks.aspx
    Hope this helps
    Best Regards
    Elton Ji
    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.

  • When syncing my iTunes to my iPad from the laptop, I get a list of missing songs; they are in the library, but not in the music folder on my HD. In particular, I uploaded 3 CDs at the same time, all are in my library - but two are missing from the folder.

    When syncing my iTunes to my iPad from the laptop, I get a list of missing songs; they are in the library, but not in the music folder on my HD. In particular, I uploaded 3 CDs at the same time, all are in my library, and all synced to the iPad - but the music from two of them are missing from the music folder. Questions are (a) where might they have gone? and (b) is there a way of "reverse loading" them back to my hard drive from the iPad? Thanks in advance!

    Hi dones49,
    It sounds like your issue here is that iTunes can not find the files for some of the songs you have brought into it. This happens occasionally even if the songs have not been moved from the location that iTunes places them on import or purchase. When you try to use the song, iTunes prompts you to find the file, as you have seen.
    To find the file, use the information in this article to navigate through the iTunes media folders -
    Locate and organize your iTunes files
    If you are still unable to locate the files, you may need to download them from the iTunes store again, or rip them from your CDs. See this article for assistance with downloading your past purchases -
    Download past purchases
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • How do you get your site to appear the same in all web browsers?

    There are some things that show up differently in Safari than they do in IE and Firefox, how do I get everything to jive the same? I think it is in the code which I am not an expert on.  My website was a template that I purchased online and most of the code was already built in.  I have some of my links in Safari showing white when you rollover them but when I look in IE and Firefox they're not there.  Can anyone offer any suggestions on how to fix this?
    Thanks

    Actually what you are learning here is to create a stylesheet for all of your web pages. Including all of your styles inline in the page's code is very cumbersome.
    Each of your pages needs code that refers to your stylesheet:
    <style type="text/css" media="all">
    @import url("../../css/content.css");
    </style>
    <style type="text/css" media="print">
    @import url("../../css/content_print.css");
    </style>
    This assumes that your stylesheets (in my case, one for print, one for browsers) are located in a folder called /css which is a habit I have for neatness.
    One thing that Dreamweaver does very well is keeps track of your styles and helps you edit styles to suit. I'm using CS3 which doesn't really allow you to look at the result of rollovers from within the application, but I keep Firefox handy for previewing. Problem is, once you create a style for a "visited" link, you can no longer see the result of the style for unvisited links in your browser unless you clear your browsers cache. Dreamweaver CS3 always shows links in their unvisited state.
    There is other code I use to make Microsoft's non-compliant browsers do the right thing, though rollovers, visited, and such all tend to work the same in all browsers, save the most antediluvian.
    <!--[if IE 5]>
    <style type="text/css">
    /* IE 5 does not use the standard box model, so the column widths are overidden to render the page correctly. */
    #outerWrapper #contentWrapper #leftColumn1 {
      width: 185px;
    </style>
    <![endif]-->
    <!--[if IE]>
    <style type="text/css">
    /* The proprietary zoom property gives IE the hasLayout property which addresses several bugs. */
    #outerWrapper #contentWrapper, #outerWrapper #contentWrapper #content {
      zoom: 1;
    </style>
    <![endif]-->
    The above code handles issues with Microsoft's intransigence pretty well, and my sites tend to look really uniform. But in the case of menus, I often have to write a completely different stylesheet to wrestle with Internet Exploder:
    This is stylesheet reference for my menus:
    <style type="text/css" media="all">
    @import url("../css/menu/menu.css");
    </style>
    <!--[if lte IE 6]>
    <style type="text/css" media="all">
    @import url("../css/menu/menu_ie.css");
    </style>
    <![endif]-->
    Then I craft the changes for Internet Exploiter 6 in a separate stylesheet.
    This should give you an idea of how powerful an external stylesheet can be. You can use "if" statements to handle the differences between the Microsoft non-compliant browsers and the more modern and compliant browsers, like Safari, Firefox and Opera.
    You can see the result in any browser at http://www.readingsbykaren.com

  • A "designer" file being worked on a machine, is checked-in regularly, if at any point of time the latest version of that file is taken on the same machine, all the data gets deleted

    A “designer” file being worked on a machine, is checked-in regularly, if at any point of time the latest version of that file is taken on the same machine, all the data gets deleted

    Hi,
    Could you provide us more information to help you?
    If you have resolved the issue, it would be better if you can post the solution here, which will help others.
    Thanks,
    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.

  • I print 2 pages to pdf and file size is 600k, I print 1 additonal page and file size goes to 6M, what would cause this (graphics are same on all pages)

    I print 2 pages to pdf and file size is 600k, I print 1 additonal page and file size goes to 6M, what would cause this (graphics are same on all pages).
    I know the colour graphic shading in the document that causes the issue of larger file size, but it doesn't make sense that printing 1 additional page with same information as first 2 pages would cause this.

    I print 2 pages to pdf and file size is 600k, I print 1 additonal page and file size goes to 6M, what would cause this (graphics are same on all pages).
    I know the colour graphic shading in the document that causes the issue of larger file size, but it doesn't make sense that printing 1 additional page with same information as first 2 pages would cause this.

  • Why doesn't the rotate gesture on my trackpad behave as it used to for switching between tabs when it works the same with all other programs besides Firefox?

    Why doesn't the rotate gesture on my trackpad behave as it used to for switching between tabs when it works the same with all other programs besides Firefox?
    I changed the about:config to make the rotate gesture move between tabs, and it worked great for well over a year. Now it behaves erratically as described here:
    https://bugzilla.mozilla.org/show_bug.cgi?id=877598
    It used to be very controllable to move one tab over, now it is erratic and moves quickly and to unexpected tabs regardless of how slow I do the rotate gesture. This is the main reason I use Firefox over Chrome and I would like to continue to do so unless there is no fix to this.

    Just set the browser.gesture.twist.threshold to something around 15-25.

  • Why is the menu structure different for different OS environments? What would it take to make them the same across the board?

    The questions in the title pretty well say it all. Each version of the program works differently and wondering what it would take to standardized them for being the same across the board. Menu items are in different locations depending on what OS you are using. Putting the cursors in the URL line works differently from one OS to the next. It would be nice to create an equal standard for working under all OS types.

    Firefox follows the convention for each OS as to where it places and what it calls menu items. The most noticeable is the Options/Preferences dialog.

Maybe you are looking for

  • HP LaserJet 2100M was working - but not now

    I'm working with a customer with a B/W G3 that was running Mac OS 8.6 connected to a LaserJet 2100M with the HP DirectCard J4135A, which has a USB port. This worked fine. The person took their system to a local Mac shop, where they added a bunch of R

  • I got a new computer how do i put the songs from my ipod to my itunes?

    Help i got a new computer how do i put the songs from my ipod to my itunes?

  • File-xi-rfc scenario

    Hi all, I am working on File-xi-RFC scenario. i have done IR and ID working. Now I have Done test cofiguration there is NO ERROR ......working File is picked .....as mode is delete.......working.. I check in Adapter Monitoring...............there i g

  • File management questions.

    I think I have a good grasp of Lightroom.  I use it daily.  Ever since I've had it though, I've been frustrated with the import process.  And I can't seem to find any information that discusses this particular topic.  I basically want to setup lightr

  • How to debug C# ScriptComponent ?

    Hello, I want to modify a SSIS 2012 package that I inherited by changing C# code. This msdn article says to use Messagebox Show :http://msdn.microsoft.com/en-us/library/ms136033(v=sql.110).aspx Can I upgrade my SSIS Version and be able to set regular