System properties and damage control

So, I have this problem concerning some class library I'm supposed to use (in fact, it's live on our servers as we speak).
I'm utilizing this class library in an axis webservice, on an instance of tomcat that runs a lot of other stuff. Every now and then, my webservice has hogged up all the network connections allowed for tomcat, so I checked out the code for this class library. They've used an HTTPUrlConnection, with no timeout set. Fine. I checked it up, and there was no easy way to set a timeout on a HTTPUrlConnection, except using System.setProperty("sun.net.client.defaultConnectTimeout", "somevalue").
However, if I use this method, I'm wondering how far this change would reach. Is the System object the same for all of this process of tomcat? If I change the timeout here, will it mess things up in the other web apps on the same instance of tomcat?
Would appreciate help :)

893631 wrote:
Is there any "standardization" No.
I can see that following system property is also present
sun.desktop=windows
Can I use it? Yes, in the same fashion as you can use "os.name". That is, you can sample a bunch of your target systems, find a pattern and some rules to discriminate one OS from another in a way that's meaningful for your program, and hope that your guess is accurate enough and that the underlying results are stable across releases.
And if I can is there any "standardization" for the values returned? No, I'm pretty sure there's not.

Similar Messages

  • Setting System properties and classpath at boot

    Hi all,
    I'm pretty new to weblogic and I'd need to set some system properties and classpath definitions for my servers at boot. Can I set them via the Administration console or just adding them to the startWeblogic/startManagedWeblogic using the standard -cp and -D flags ?
    I've found in the Console, there's the Server Boot properties. However adding them there didn't work. Correct me if I'm wrong, this option can be used ONLY when starting the servers from the Node Manager ?
    Thanks
    Frank

    Hi Frank,
    You are right!!!!
    But you can set them with in setDomainEnv file under java_option.
    Please set under
    Unix
    JAVA_OPTION = "${JAVA_OPTION} -DXXXXX"
    In Windows
    set JAVA_OPTION = %JAVA_OPTION% -DXXXXX
    Hope this will help you.
    Regards,
    Kal

  • To jschell How to get data System properties by JNI and Runtime.exec()

    Thank you very much for answer. ummm....but I'm can not gets data system properties by JNI or Runtime.exec(). Please help me. I'm want create Java-Applet for data System properties ( memory quantity?, Harddisk capacity?, CPU speed ?, Printer Name? and all hardwares ) in my computer. It very important for me. Help me please. thank you..

    Java applets are restricted to accessing only some system properties - and it is good so. I would not be happy if any applet could inquire about, say, my user name or the amount of memory in my box.

  • System.properties (what is the scope in memory)

    Does each JVM have it's own System properties? Hence calls from one JVM System.getProperty() or System.setProperty() should be within each individual JVM? Also I need to know this so that I can gurantee that using the System properties for private information won't be accessed by anyone else on the system... Any input?

    System properties are unique for each VM, they are therefore visible to all code running in the VM.
    This seems like a good thing to use for storing things like passwords because of the global visibility however using the System properties for storing such things has to be considered as being insecure.
    System properties should be regarded as a place to read data from that is relevant for either the Java runtime environment or for setting component specific properties, XML Parsers make use of this for example. Using System properties as an in memory database is neither secure nor sensible. Careless selection of keys for the properties you wish to store can have unexpected results if you accidentally overwrite a property that is used for other purposes.
    I would use a separate Properties instance that has nothing to do with the System properties and I would also recommend the encryption of sensitive data like passwords.

  • IMac monitor (my parents), the greys are so light and faint, they are almost impossible to see.  especially in icalendar.  i've gone into system preferences and i think i've tried everything there and checked the forums.  no luck. any other suggestions?

    monitor too faint to read.  the greays on my monitor are so faint, they're almost impossible to see.  especially the numbers of the dates in ical. 
    i've gone to system preferences and contrast controls.  but no luck.  any other suggestions?  thank you

    Thank you.  I didn't know about the universal access adjustment.  All the way left is a little better, but still much fainter than on my own imac.  I'm not sure why apple uses grey typeface, but it's so faint on this imac monitor that it was difficult to find the "reply" option on this post.  Are there any other suggestions?  thank you

  • System Properties user.timzone different between dev. and prod. system

    Hi all,
    I am facing the following issue:
    In our development system I get in http://<server:port>/sap/monitoring/SystemProperties -> dispatcher -> system properties a Europe/Berlin for user.timezone.
    In our productive system I get in http://<server:port>/sap/monitoring/SystemProperties -> dispatcher -> system properties a GMT for user.timezone.
    Can anybody explain which system property is requested by the J2EE-engine when calling this property?
    I ask, because I wrote a small programm requesting the user.property via java (expecting j2ee-engine would do that too) an got back an empty string (on both systems).
    So, how/where can I change the parameter, so that the development system uses GMT, too?
    I already checked the spro settings in sap, they are identical. System -> status showes the same for both systems, too.
    I hope for your help.
    Thanks and regards
    Christian

    Hello Chris,
    I checked the system variables with TA SM51 ->goto -> server -> information -> environment.
    There is nothing like the TZ variable on both systems (we use Linux).
    Do you have an other idea?
    How can I change the user.timezone shown in Java system properties?
    Regards
    Christian

  • System and security control panel

    Could someone with a W520 take a screenshot of the lenovo apps in their "system and security" section of control panel please. I am doing a ground up install from bare windows 7 to get rid of the preloaded SQL server 2005 and adding back the programe I want.
    Just want to seee what came preloaded.
    Thanks

    njb,
    Why not just run the ThinkVantage System Update and let it install as usual. You can also "un-check" those drivers that you don't want to install.
    *Non Lenovo employee*
    I have a Y2P (i5) ... Feel free to ping me if you want me to test some applications with your Y2P if you have the same model. I don't mind keep doing recovery on it if needed .... =)

  • Budget and budget control system

    what is the differnce between budget and budget control system. is it possible in sap each po (purchase order) wise budget.if its possible in sap please provide config steps.

    Hi, guy
    In SAP, we can use IO, PS, FM to make the budget. The budget control system is a sub-module of FM. If you want to get some config step, please kindly refer SAP Best Practises.

  • Listing existing properties and refnums for a control

    I'm relatively new to LabView programming and this is probably a basic question.  I need to list the existing properties and corresponding refnums for a custom control that was created before I started maintaining an existing application.  I would like the information in a form I could print if possible.  Thanks for any help.
    Mel
    Solved!
    Go to Solution.

    Hi Hootowl,
    ok, it's a cluster of several subitems. So you can use standard property nodes to get the properties of each sub-item programmatically.
    Otherwise you can list the properies of the (standard) sub-items as they are listed in the LabVIEW help...
    Or what else do you need? What's the goal of listing all the properties? (As said before, the cluster contains standard elements and all their properties are listed in the LV help...)
    Message Edited by GerdW on 07-09-2009 09:08 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    Untitled 1.vi ‏27 KB

  • Can I enable and disable the system speaker under program control

    Can I enable and disable the system speaker under program control?
    I'm using LabVIEW 2010.
    The PC is running Windows XP Pro.
    Thank you

    A song???  I wouldn't exactly play them a "song" if you get my drift...
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • AIS (Audit Information Systems) and Process controls

    Dear Experts
    Have you seen any customer using AIS (Audit Information Systems) and Process controls, simultaneously for Audit purposes? Can we use the GRC Process Controls for Scheduling regular Audits, inaddition to the Internal Control Assessments?
    Thanks & Regards
    Swarna

    Hi Swarna,
    Have you seen any customer using AIS (Audit Information Systems) and Process controls, simultaneously for Audit purposes?
    Yes. AIS is purely in SAP users and authorizations,  and PC can be used at different levels.
    Can we use the GRC Process Controls for Scheduling regular Audits, inaddition to the Internal Control Assessments?
    The data from the PC is used in the ICAs. So PC itself can't/may not provide all the information that is required by the auditors.
    Regards,
    Raghu

  • Dump Previous Systems and Damaged Files?

    I just upgraded to Tiger (10.4.6) from 10.3.9. I have two new folders on my Finder now, Previous Systems and Damaged Files. As I have only 25 GB of an 80 gig hard drive left, is it OK to dump them?
    eMac 1.24 GHz Power PC G4   Mac OS X (10.4.6)  

    With 25 GB remaining you should be in no immediate danger of filling the hard drive and killing the system, so you can take your time checking out 10.4.6 before you toss the Previous Systems folder. You can look it over and decide if there are any files in there you want to still use. That said, I kept the Previous System folder around on my eMac after updating for all of maybe three days, so yeah, you can toss Previous Systems.
    I'd be more concerned about a Damaged Files folder. I've never seen thaat as part of an upgrade, it suggests there may be directory or physical disk damage. If you open Disk Utility, what does it show for your hard drive's SMART status? If you boot from the Tiger install disk and run Disk Utility> Repair Disk from the Installer menu, does it report any problems? What sort of files are in the Damaged Files folder?

  • HT3140 put a date 1970 june 27 . and now the whole system is out of control i cant get to internet cannot change date and time  always when i opened system preferences stays in a waiting mode but doesnt show any opcion don t know what to do and i just bou

    put a date 1970 june 27 . and now the whole system is out of control i cant get to internet cannot change date and time  always when i opened system preferences stays in a waiting mode but doesnt show any opcion don t know what to do and i just bought this computer

    It may well be a driver issue but considering the loading: Xorg trying to load different drivers is somewhat normal. @cafe you can see that these are autoconfigured by X above the loading in the log:
    Jul 20 19:48:24 arch gdm-Xorg-:0[216]: (==) Matched intel as autoconfigured driver 0
    Jul 20 19:48:24 arch gdm-Xorg-:0[216]: (==) Matched intel as autoconfigured driver 1
    Jul 20 19:48:24 arch gdm-Xorg-:0[216]: (==) Matched modesetting as autoconfigured driver 2
    Jul 20 19:48:24 arch gdm-Xorg-:0[216]: (==) Matched fbdev as autoconfigured driver 3
    Jul 20 19:48:24 arch gdm-Xorg-:0[216]: (==) Matched vesa as autoconfigured driver 4
    As long as one of the drivers gets loaded, which it apparently does the failing of the others is fine.
    Was there an update maybe ?

  • Setting system properties: difference between "-D" and "System.setProperty"

    Hi.
    I have a program that relies on the jogl library to display graphics. Internally, jogl loads a native library from disk, with a System.loadLibrary() call. In turn, loadLibrary searches the paths in the system property "java.library.path" to find the jogl DLL/SO files. So, it is my responsibility to ensure that the "java.library.path" property is correctly set.
    There are two ways that I know of to set system properties: as an argument to the JRE via the "-D" option and from within an application with the System.setProperty method. However, I have noticed that only the former gives the desired behavior. That is, if I do:
    java -Djava.library.path=lib MyProgram{code}
    the code in jogl.jar is able to successfully find and load the native libraries in lib/, but if I do:
    {code:java}System.setProperty("java.library.path", "lib");{code}
    at the beginning of main in my program (before the classes requiring jogl are loaded), I end up with an UnsatisfiedLinkError.
    Why does this happen? Why do the 2 methods produce different results? Is specifying native library paths on the command line the only way to ensure that they are found?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    See the [System Properties Tutorial|http://java.sun.com/docs/books/tutorial/essential/environment/sysprop.html] section on "Writing System Properties" which says:
    Warning: Changing system properties is potentially dangerous and should be done with discretion. Many system properties are not reread after start-up and are there for informational purposes. Changing some properties may have unexpected side-effects.
    Also see the [setting java.library.path property in java code|http://forums.sun.com/thread.jspa?threadID=627890] thread in the JNI forum.

  • When you create a PostScript file you must rely on system fonts and use document fonts

    I got this error:
    "When you create a PostScript file you must rely on system fonts and use document fonts. Please go to the printer properties, "Adobe PDF Settings" page and turn OFF the option "Rely on system fonts only; do not use document fonts."
    This strikes me as bad practice. I only want to use system fonts and document fonts will muck me up.
    That being said, I could not easily find a way to fix this with Acrobat Pro XI. I opened Control Panel (Windows 8) and found the printer and mucked around in the various ways to get to change the PDF settings (there are several ways, and some of them present the choices as bold and not just regular). I found two separate switches for "Rely on system fonts only; do not use document fonts" and turned both off, BUT that did not work.
    Frustrated, I went back to FrameMaker and clicked File > Print Setup and then for the PDF printer, Printer Properties. There I found a THIRD instance of "Rely on system fonts only; do not use document fonts" that was set differently than the other two. This was the setting the error message meant. Change this one.
    Thanks for the convoluted UI, Adobe. What a pain, but there is the answer for all who follow after....

    > Windows 7 and Frame 7.2.
    This is not a supported configuration and probably does not work, due (I'm guessing) to driver API changes from XP to Win7, which would affect generating PDF and Ps output. This would affect Save-as-PDF and Print-to-Ps+Distill (unless you have a newer version of the full Acrobat product).
    As it happens, I'm going to attempt something similar: FM 7.0 on Win7 64 Pro. However, I'm going to install that old FM in "XP Mode".
    XP Mode is a 32-bit virtual machine running actual Windows XP inside Win7. It is (now maybe "was") available for Windows 7 Enterprise, Professional and Ultimate (but not Basic, Home or not-so-Premium). When XP went off support life earlier this month, Mr.Bill may have taken down the ability  to download XP Mode (or not, since some large enterprises are able to  purchase continued support for XP at some great cost). XP Mode never was supported for Win8. There are other VMs for Windows available.
    If XP Mode is still available, you also need a CPU that has hardware virtualization, which all recent 64-bit AMD processors do, but which is fused-off in many low end 64-bit Intel processors. AMD processors need a separate unobvious hot-fix patch installed before you do anything else about XP Mode.

Maybe you are looking for

  • SVG files are all empty

    Any SVG file I try to open is empty. The file icon's thumbnail shows the image that should be in the file, but when the file is actually open in Illustrator, there's literally nothing except an empty layer. I've tried probably a dozen files from vari

  • PB with beans binding in a netbeans 6 java project with ant script existing

    Hi all, I am using netbeans 6.01. I want to use beans binding in a simple swing form created with Matisse designer. If i do beans binding in a Netbeans java project with existing ant script i have the following error : java.lang.UnsupportedOperationE

  • Can't access Adobe CC on my laptop.

    I have been using it since last june on my desktop but when I install it on my laptop it says I need to buy it. I see where it is talking about a redemption code, but I don't know where it is (if I even used it before). All I have is an email confirm

  • Font/DE problems

    This has just been so frustrating, but I want this to work so please help if you can. I have been fine getting setup right up to setting up my DE. Here's whats happening: If I use gnome 3, after some changes (dont know exatly which may be the cause)

  • RTP formats

    Hi, I'm using AVTransmit3 code to transmit a .wav file. I have jmf.jar (cross-platform) and at first it only found and worked with 5 formats, like these:   dvi/rtp, 8000.0 Hz, 4-bit, Mono   dvi/rtp, 11025.0 Hz, 4-bit, Mono   dvi/rtp, 22050.0 Hz, 4-bi