JMX question: how to retrieve system properties, DataSource attributes ?

Hi,
I need to retrieve some parameters from my JEE application (*.ear) my collegues will deploy soon on Netweaver 7.2
I found documentation about how to connect to the server with JMX, that works fine:
http://help.sap.com/saphelp_nw04/helpdata/en/64/617cfb94845d468b0498b4b2c53d74/content.htm
But how can I come to the system properties for example? Which ObjectName do I have to use and what methods should be called? Are there some more examples for common operations based on the default (monitoring) MBeans?
Thanx a lot,
Bob

http://www.dagira.com/2007/08/22/dynamic-dates-part-i-yesterday-and-today/
That blog post includes functions to get "today" for:
DB2     current date
Oracle     sysdate
Informix     TODAY
MySQL     CURDATE()
SQL Server     getdate()
Sybase     getdate()
Teradata     DATE or CURRENT_DATE
It is also the first in a series of posts that show you how to create other creative time objects for use in your universe. Hope this helps.

Similar Messages

  • How to put system properties into weblogic6.1

    How do I p[ut in System.properties into Weblogic 6.1 server, like we could in
    weblogic5.1
    Thanks
    Raj
                                                                                                                                                                                                                       

    The article below contains information about how to create 1.44 MB Mac boot floppies under Mac OS X. Without having tested this procedure at all, I cannot say whether recent system versions would work or not.
    http://lowendmac.com/brierley/08pb/classic-mac-boot-floppy.html
    Otherwise, the easiest way would probably be to locate another older (pre-1998) Mac with a built-in floppy drive for 1.44 MB (and possibly with a direct Internet connection). JustSomeGuy provided you with links to two 6.0.8 (1.44 MB) downloads. A utility called StuffIt Expander can be used to decode downloaded MacBinary (.bin) files on the Mac in question. After decoding and decompression, one can create  sector-copied floppies from the resulting disk images via (the Make A Copy button in) Disk Copy 4.2.
    http://download.info.apple.com/Apple_Support_Area/Apple_Software_Updates/English -North_American/Macintosh/Utilities/Disk_Copy/
    If it is absolutely impossible to locate another older Mac, one could even use a Windows PC with a floppy drive (an appropriate version of Aladdin/StuffIt Expander for Windows, and a disk-image utility like WinImage, would be needed in order to make sector-copied 1.44 MB floppies).
    Jan

  • How the "Java System Properties" are populated in "About this Page"

    Hi Gurus,
    We are facing a very intriguing issue and want to find out the way self service pages shows information in tab "Java System Properties" on clicking "About This Page" link ( bottom left corner of any EBSO selef service page)
    Thanks,
    Ajay

    Hi Peddi,
    Thanks but let me give some more details on our problem.
    It is a EBSO environment.
    On Private MT we do not have any proxies set in context file or any other configuration files.
    <proxyhost oa_var="s_proxyhost"> </proxyhost>
    <proxyport oa_var="s_proxyport"> </proxyport>
    The standard all standard OAF pages ( no customization or personalization ) show via link I mentioned before show these variables set
    http.proxyHost
    http.proxyPort
    http.proxySet
    Any idea how these get populated ?
    Are these values fetched dynamically via some DB table?
    Thanks,
    Ajay

  • How to provide system properties to embedded oc4j

    hi,
    I want to provide some system properties like
    -Dlog4j.configuration to the embedded oc4j server. How can I do that in Jdev 9.03
    Thanks
    Ashwani

    Select the project you are running in the navigator then
    set Java option in Project -> Properties -> Runner -> Java Options (-Dlog4j.configuration=your.value)
    Cheers,
    Kim

  • How to access System properties in xml file

    hi,
    i want to read system properties in my xml file using ${} .
    I tried it but did not find any way.But when i use log4j if i set some variable in
    System properties that properties is read by the log4j.properties .
    I am writing a simple program that read a xml properties file file
    try {
                props   = new Properties();
                fis     = new FileInputStream(xmlFile);
                props.loadFromXML(fis);
    }before reading this file i set some properties and accessing this properties from that xml .but i cant.
    Thanks

    sabre150 wrote:
    fun_with_java wrote:
    can you give some example?Not really - I would have to write the code for you and I'm not getting paid for writing your code.Thanks for your kindness.
    I dont ask you to write the code.Need some help to start it .Actually i dont have knowledge that
    whether xml file automatically read it or i have prase the system property manually. Now i got the way to
    access system property in xml..
    Ok thanks again..
    Thanks & Regards

  • How to retrieve system Information on client machine Using Applets

    How to retrieve video card information on client machine using applets and JNI, please suggest me on this
    Thanks
    GReddy

    1. Research platform specific OS API to do whatever you want with video cards
    2. Write C/C++ code to wrap the functionality in 1 into something looks closer to what you want to see in java
    3. Write a class that models the functionality of 2 with native methods.
    4. Write the native methods of 3 such that they call the methods of 2.
    Note that steps 1 and 2 have NOTHING to do with jni nor java. So you start by looking somewhere else for the answers to that.

  • Retrieve system properties, eg. weblogic.system.home

    Hi!
    I am trying to retrieve the value of the system property weblogic.system.home. Note
    that it is not defined in the weblogic.properties file in WL5.1 with SP8, but specified
    in a start WL batch script.
    The code snippet
    .. System.getProperty("weblogic.system.home") ...
    returns null.
    Any ideas on what I'm doing wrong?
    Regards,
    Jan

    T3ServicesDef t3 = T3Services.getT3Services();
    home = t3.config().getProperty("weblogic.system.home");
    Mike
    It is weblogic.system.home - do not confuse.
    Fri May 11 11:40:26 PDT 2001:<I> <Config> Property name: 'weblogic.system.home',
    current value: '/home/weblogic/weblogic51_lab'
    "Giri Alwar" <[email protected]> wrote:
    The property is called "weblogic.home" not "weblogic.system.home".
    Giri
    "Jan Nygaard Nielsen" <[email protected]> wrote in message
    news:3b028e0b$[email protected]..
    Hi!
    I am trying to retrieve the value of the system propertyweblogic.system.home. Note
    that it is not defined in the weblogic.properties file in WL5.1 with SP8,but specified
    in a start WL batch script.
    The code snippet
    .. System.getProperty("weblogic.system.home") ...
    returns null.
    Any ideas on what I'm doing wrong?
    Regards,
    Jan

  • How to retrieve system configuration?

    Hi everybody! I want to install a new x86 Solaris version with the same configuration parameters of an existing Sparc Solaris version. Is there a command (from command line) to retrieve all the configuration parameters of an existing Solaris system?
    Thanks a lot

    Thanks for your reply! At the moment I haven't the permissions to do write operations on that machine. I need a command or a set of commands to generate a system report about configuration parameters of the existing operating system. Once I have it I want to replicate the exact configuration on the new machine. Thanks for your suggestions!

  • How to retrieve answers to secret questions on iPad

    I've forgotten the answer to 1 of my secret question how to retrieve it?

    See Kappy's great User Tips.
    See my User Tip for some help: Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities https://discussions.apple.com/docs/DOC-4551
    Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/HT5312
    Send Apple an email request for help at: Apple - Support - iTunes Store - Contact Us http://www.apple.com/emea/support/itunes/contact.html
    Call Apple Support in your country: Customer Service: Contacting Apple for support and service http://support.apple.com/kb/HE57
     Cheers, Tom

  • How to retrieve records from taxonomy table

    Hi,
    I have a main table which has taxonomy field,for ex: category.
    Main table: Products which has ProductName(text),ProductNo(text),Category fields(Lookup[taxnomoy])
    Could anyone please tell me how to retrieve the records and attributes from a taxonomy table.
    Please provide some sample codes.
    Thanks
    Sabari

    Hi Sabari,
    your question is not so clear-  any way find the following example
    if you want to get records based on search criteria( ex: taxonomy values where ProductName = "something "),, follow the below steps;
    1 . build Search Object-  ( I guess you know this step)
    2.  get RecordResultSet Object -
         Example
         //Compose array of the fields to retrieve
         FieldId[] fields = new FieldId[5];
         fields[0] = assign FiledId of Category field ;
         //Create the result definition for the search table
         ResultDefinition rd = new ResultDefinition(productsTableId);
         rd.setSelectFields(fields);
        // Retrive ResultSet
           RetrieveLimitedRecordsCommand recordsCommand = new  
           RetrieveLimitedRecordsCommand(mdmConnection.getConnection());
         recordsCommand.setSession(mdmConnection.getAuthenticatedUserSession().getSession());
         recordsCommand.setResultDefinition(rd);
         recordsCommand.setSearch(search);
         recordsCommand.execute();          
            RecordResultSet  records= recordsCommand.getRecords();
    3 . Now Iterate through resultSet for CategoryRecord lookUp Id
               Record record = records.getRecord( i );
         FieldId[] fieldIds = record.getFields();
                for(int n=0; n<fieldIds.length; n++) {
                   FieldId fieldId = fieldIds[n];
                   FieldProperties fieldProps = records.getRecordMetadata().getField(fieldId);
                   String fieldCode = fieldProps.getCode();
                            MdmValue value = record.getFieldValue(fieldId);                    
                          if(fieldCode.equals("Category")) {                         
                   if (!(value instanceof NullValue)) {
                                  //LookupValue appLookUpValue = (LookupValue) value;
                                  Record[] lookupRecord=record.findLookupRecords(fieldId);
                                  if(lookupRecord!=null && lookupRecord.length>0)
                                                            populate for  a category for every lookup record 
                                       // cat=this.getCategory(lookupRecord[0].getId(),locale);
    Note:- from Main table records  , you will get Category lookup records, you need to look up for every Category lookUp Record; there may be number of Category records for one main table Record;
    if you still face problem , let me know;
    Regards
    Rajasekhar k

  • How to retrieve version and encoding info from SAX parser

    I want to have access to the version and encoding info in a parsed XML document (when using SAX2). Who knows how this works?
    If not possible with SAX2, what other solutions are there?
    Second question: how to retrieve comments in XML files?
    Thanks in advance!

    thanks for answering, but ...
    LexicalHandler is fine for retrieving the comments,
    but does not give me the encoding (specified by
    encoding="UTF-8") and version (specified by
    version="1.0").
    I am feeding my parser with a byte stream, the parser
    resolves the correct encoding and i want to have
    access to this value!!hi , It is unlikely that you will get the encoding and version . This is being addressed by the DOM level3
    , see
    http://www-106.ibm.com/developerworks/xml/library/x-dom3.html?dwzone=xml .

  • How can I asociate a DataSource to a Port for my Video Capture Card???

    Hi!
    First of all, I sorry for my bad english.
    I'm trying to manage ports of my Video Capture Card.It's 4 ports. I believe I can manage it cause running this code I found in a web, I can see a panel called Video Source that contain all my capture devices (the capturer card too) and the four ports. Ports have been asociate like SVIDEO, TVTUNNER, COMPOSITE, COMPOSITE2. I'm trying use PortControl, but I don't ontain nothing. I'm learning java for around only three weeks, I don't know very much.
    My question: How can I asociate a DataSource to a Port for my Video Capture Card and so manage 4 streamings data . Should I work Port Control over a medialocator, a datastream, a player...?
    I'm looking forward your answers. I'm very sad cause this problem.
    Thanx for advance!

    xinixmayur, please don't post in threads that are long dead. When you have a question, start your own topic. Feel free to provide a link to an old post that may be relevant to your problem.
    I'm locking this thread now.
    db

  • Get System Properties

    How to get System Properties using Applet Program
    Eg(username) of the system

    From applet, u cannot access some system properties... to do this u have to give permissions in java.policy file
    arun

  • How to get the properties of my system ?

    Hi,
    does someone know how to get the properties of my system (like RAM,processor,OS ...) ?
    Thanks, Fred.

    Hi!
    Try this:
    import java.util.Properties;
    public class Props {
         public static void main(String[] args) {
              // This shows all the properties
              System.getProperties().list(System.out);
              // This retrieves a special property
              System.out.println(System.getProperty("java.runtime.name"));
              // Here is to get total system memory
              long totalMemory = Runtime.getRuntime().totalMemory();
              System.out.println("Total memory: "+totalMemory);
              // Here is to get free system memory
              long freeMemory = Runtime.getRuntime().freeMemory();
              System.out.println("Free memory: "+freeMemory);
    }Hope it helps!
    /Andrew

  • How to retrieve the system used in an iview?

    hello,
    i'm currently having trouble retrieving the proper attribute of an iview to retrieve the system used by it.
    it seem like the strings identifying the system in the iview differ in some iviews.
    using either:
    myIView.getAttribute(IAttriView.PORTAL_SYSTEM)
    or
    myContext.getAttributes("").get("System").get().toString()
    produce errors.
    while get("System") sometimes provides the correct system alias the attribute is none existant for other iviews where the string would be "Systemalias".
    IAttriView.PORTAL_SYSTEM doesn't seem to work at all.
    i did implement fail safe code if the attribute isn't present, however i don't know how to retrieve the system attribute without doing a case switch or something similar for all the different strings, which i would prefer not to do.
    also, is there an easy way to retrieve all iviews which use a specific system without parsing the whole pcd and checking the attributes?

    Prerequisite : Create the System Alias for the systems used in the application.
    Use the below code to retrieve the system details:
            HashMap mapattr = new HashMap();
            HashMap map = new HashMap();
            IUser user = WDClientUser.getCurrentUser().getSAPUser();
            IPrincipal principal = (IPrincipal)user;
            ArrayList list = UMFactory.getSystemLandscapeWrappers();
            ISystemLandscapeWrapper systemLandscape = (ISystemLandscapeWrapper)list.get(0);
            //Portal System ALias name
            ISystemLandscapeObject landScapeObject = systemLandscape.getSystemByAlias("<system alias name>");
            IUserMappingData userMapping = (IUserMappingData) UMFactory.getUserMapping().getUserMappingData(landScapeObject,principal);
            userMapping.enrich(map);
            mappedUserId = map.get("user").toString(); // String "UserId"
            mappedPassword = map.get("mappedpassword").toString(); //String "Password" 
         catch(Exception e)
              e.printStackTrace();
              wdComponentAPI.getMessageManager().reportException("Exception during retrieving the User Details - " + e.getMessage(),true);
    Thanks & Regards,
    Amar Bhagat Challa

Maybe you are looking for

  • Sharepoint foundation 2013, IIS Logging can't logging excel file problem

    Hello, I am new in SharePoint 2013,  When I was using SharePoint foundation 2010, I am using IIS for audit log. That can logging user name and what they clicked. some like: 2014-05-28 08:09:40 10.161.121.247 GET /folder/subfolder/file.PDF - 80 domain

  • Windows 7 bootcamp mini-DVI?

    I connected my HDTV to my macbook via mini-DVI to DVI, then DVI to HDMI. I did this running windows 7 via bootcamp and it worked the first time I plugged the cable in. It has not worked since. The setup works fine in OS X Snow Leopard, but when I swi

  • 3rd generation nano entire contents of ipod not showing up..

    3rd generation nano entire contents of ipod not showing up, itunes says to restore, however I am pretty certain this erases all contents. Is there anyway to retrieve the seemingly lost content, what do I do? I have had little to no prior issues with

  • DB connectivity issue

    Hi All, I am facing one problem When ever i am trying to connect to database it is hanging after logging banner & not able to get sql prompt checked all the background process are running properly. Please suggest Abhi

  • Partitioned machine sending requests to Master Node????

    I have a bridged configuration that is used in an unusual manner. We have 16 slaves that send requests to a service on our master and the master sends a reply back to a different service on the slave that sent the request. My question is, Is it possi