How to register Key fingerprint with JVM 1.4.2?

Hi,
We need to register RSA key fingerprint with JVM 1.4.2. Does anyone know about this how to go about it?
Thanks,
Asawari

Hi,
as far as I know there is no "official" API in 1.4.2 to do this (since 1.5 there are the Management APIs). But I had the same problem once and found a pretty easy solution: Put the "perf.jar" and "perfdata.jar" from the 1.4.2 jvmstat distribution into your classpath (I hope you can find the old download somewhere...).
The following piece of code demostrates how to access the perfdata from the JVM (note: with new VMIdentifier(0) you access your own JVM, so running the little sample program without any argument (or argument "0") would introspect the own JVM).
import com.sun.jvmstat.perfdata.monitor.local.*;
import com.sun.jvmstat.monitor.*;
import java.util.*;
public class PerfDataReader {
    public PerfDataReader() {
    public void run(String[] args) {
    try {
      PerfDataBuffer perfDataBuffer = new PerfDataBuffer(new VMIdentifier((args.length == 0 ? "0" : args[0])));
      System.out.println("VmId="+perfDataBuffer.getLocalVmId());
      List l = perfDataBuffer.findByPattern(".*");
      for (int i=0; i<l.size(); i++) {
          Monitor m = (Monitor)l.get(i);
          System.out.println(m.getName()+" = "+m.getValue());
    } catch(Exception e) {
      e.printStackTrace();
    public static void main(String[] args) {
        PerfDataReader main = new PerfDataReader();
        main.run(args);
}Hope this helps!
Nick.

Similar Messages

  • A friend created 3 accounts on his iPhone 5 but forgot the passwords. He can't reset the password as yahoo address is no longer valid. Erasing the phone doesn't solve the issue. How to register the phone with Apple?

    A computer illiterate friend created 3 accounts on his iPhone 5 but forgot the passwords. He can't reset the password as his yahoo address is no longer valid. Erasing the phone doesn't solve the issue as the Apple server identifies the hardware as registered. How to register the phone with Apple?
    I helped him create a new email address and new iCloud account on my Mac but when we try to register the phone with Apple it says: Maximim accounts limit reached for this device. How can he register the phone? I read different threads and found out that only Apple care can do that. We're in Romania and don't know where to call. Any suggestions on how we fix this?

    When I checked the support site for Romania, you apparently don't have an Apple Care contact center.  You "may" try calling the US Apple care number to verify the account and have the password reset sent to a different email address.  800-694-7466

  • I want to know about imessages and how it works !! how to register a number with imessages?? I saved a number in contacts but when I try to send a message it say "! not delivered" in red mark.How can I fix this problem??

    I want to know about imessages and how it works !! how to register a number with imessages?? I saved a number in contacts but when I try to send a message it says "! not delivered" in red mark.How can I fix this problem??

    Perhaps something in this support article will help:
    http://support.apple.com/kb/TS2755
    Regards.

  • How to register HFM aplication with Shared services

    Hi,
    Version 11.1.2
    I am new to this version and asking help how to register HFM application with shared services.
    In ver 9.3.1 we register in config utility.
    Regards
    Kumar

    You should start the EPM system configurator, it is the same concept as earlier versions, just the look and feel is slightly different.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to register Essbase server with Shared Services?

    Hello All,
    How to register Essbase server with Shared Services?

    Hello All,
    How to register Essbase server with Shared Services?

  • How to replace key value with character

    Hi Experts
    Can any one tell me, how to replace key value with character, whether it is possible are not. My present report is displaying below format.
    country--city-area-flatnocountry--City-Flatno
    Customer--USACOst1111---UK--HD20--
    C100--11---11--
    C200--11---1--
    For the above example format i am able to display. But now i want to replace 1 with character value for example. For C100
    country is USA at presnt 1 but it should replace with USA.
    You find required format below.
    country--city-area-flatnocountry--City-Flatno
    Customer--USACOst1111---UK--HD20--
    C100--USACOst1111--
    C200--UK--HD20--
    thanks .
    Regards,
    Vishal.

    Hi Markus,
    Thanks for reply,
    Actually i dont have attribute for the customer, the data is maintained in ods, in the form, customer name one info-object and customer value one more info-object this value got text. This value stored in the ods as below
    costomer number  customer value
    C100--USA
    -C100CO
    C100--11-
    C200----
    UK
    C200----
    20
    Please let me know any clarification you need.
    Thanks and Regards,
    Vishal.

  • How many registration keys come with the new Final Cut Studio

    Hi I'm thinking of buying the new final cut studio and am trying to find out how many registration keys come with the box. I have 2 others in the family that would use it on their comps as well, and my friend had gotten the previous version of final cut studio 2 (final cut pro 6) and said it came with 3 keys inside, which would be great for me. So I'm just making sure that's true. Thanks.
    Also you can bring final cut pro 6 files from another computer onto a computer with final cut pro 7 and still work on them right?

    Hello Gibbs,
    Welcome to the forum.
    Re: your question.
    Your friend is a pathological lier (or delusional - sometimes it's hard to tell the difference).
    FCP is licensed for one laptop and one desktop as long as:
    1. Both machines are owned by YOU (your inlaws don't count as you)
    and
    2. They are not used at the same time.
    If your family wants FCS, time for them to purchase their own copies. (Apple has dropped the price so low that even Junior High School students can afford their own copies now.)
    Yes, FCP6 files will open without issue on FCP7. The reverse is not true.
    Have fun.
    x

  • How to register a Location with database link in Ombplus?

    Hello,
    what's the detailed syntax in owb 10.2 to register a location with a database link?

    Hi,
    thanks that helps.
    Now i found out that after an import of the location the field "from Location" is not set. I need to set it to OWB_REPOSITORY_LOCATION.
    How can i do it?
    OMBALTER LOCATION 'Locname' SET PROPERTIES (FROM_LOCATION) VALUES ('OWB_REPOSITORY_OWNER') does not work
    -> Property FROM_LOCATION is not defined in class ORACLE_GATEWAY_LOCATION
    Cann you help me again?
    Thanks
    Helga

  • How to register a blackberry with the appropriat​e service provider ?

    Hello,
    I've just bought a Pearl 8100. I've inserted my SIM card and the phone is working ok. However I can not send or receive any email and can't access the net. When I bought it, I was told to contact my service provider (Orange - UK) to get the phone set up. That's what I did and I was directed to a web site (w3.blackberry.orange.co.uk) where you have first to register as new user by giving your PIN and IMEI. However I haven't been able to complete the task as a message popped up saying that the phone was already registered with a different service provider and that I had to re-register it with the appropriate one. I personnally never registered the phone before but basically that's what I have to do so I need some help because I have no idea how to do that... Thanks....
    G. 

    tommobb wrote:
    Hi. 
    I bought a BB pearl 8100 locked to Orange.
    I have unlocked it and inserted my Virgin media Sim.
    Problem...I cannot register it for email.!!I  followed the BB virgin media link and upon inputting IMEI and PIN it advised incorrect... even though its written on the back of phone... huh??
    Apparently i'm not registered... with who?
    How can i make my BB pearl work on Virgin media Email account.
    Thanks for any help. i'm totally stuck!!
    Hi and Welcome to the Forums!
    You will need to contact your carrier for assistance. Be sure that you have an adequate service plan from them to enable your access to their BIS. Be sure that they can properly register your BB into their BIS. If you obtained your BB second hand, it is quite possible that the prior owner did not release the PIN from the Orange BIS...in which case your new carrier won't be able to create a BIS account for you on their network. And, typically, only the owner of the account (at Orange) will be able to convince Orange to release the PIN from their BIS...
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How to register multiple xsd with relative include references?

    Hi there,
    unfortunately I'm a newbie to XDB and maybe this is a basic question. But I didn't get it solved right now (also Google wasn't my friend helping me out)...
    I try to register a set of xsd to XML DB (11g Release 2 11.2.0.1.0) with the given structure:
    Folder 'demo' contains:
    mainmodel.xsd
    types.xsd
    Subfolder 'demo/details' contains:
    submodel_a.xsd with <xs:include schemaLocation="../types.xsd"/>
    submodel_b.xsd with <xs:include schemaLocation="submodel_a.xsd"/>
    First I created the folders 'demo' and 'demo/details' in the XML DB repository using dbms_xdb.CreateFolder.
    Then I added the xsd as resources to the XML DB, e.g.
    declare
          v_result boolean;
          v_schema xmltype := xmltype(bfilename('DEMO', 'types.xsd'), nls_charset_id('ISO-8859-1'));
        begin
          v_result := dbms_xdb.CreateResource('/demo/types.xsd', v_schema);
        end;
    Then I registered my types.xsd:
    begin
    DBMS_XMLSCHEMA.REGISTERSCHEMA(
            schemaurl => 'types.xsd',
            schemadoc => BFILENAME ('DEMO','types.xsd'),
            csid => 0
            end;
    When trying to register submodel_a.xsd the same way I get the following error:
    ORA-31000: Ressource '../types.xsd' is not an XDB schema document.
    How can I resolve this?
    Best regards
    Matthias

    As Marco mentioned, you have to resolve and update the relative urls in a local copy of the schema, just before registration.
    That way you can keep the original file untouched while correctly register the schema using absolute urls.
    Here's a short example, assuming all XSDs have been loaded as resources in the repository, using the same folder structure :
    - This registers "types.xsd" at URL "/demo/types.xsd"
    begin
      dbms_xmlschema.registerSchema(
        schemaURL => '/demo/types.xsd'
      , schemaDoc => xdburitype('/demo/types.xsd')
      , local     => true
      , genTypes  => false
      , genTables => false
    end;
    - This gets a local copy of "submodel_a.xsd" located at "/demo/details/submodel_a.xsd" in the repository, resolves and updates the include location(s), then registers it :
    declare
      v_schema_url varchar2(2000) := '/demo/details/submodel_a.xsd';
      v_schema_doc xmltype := xdburitype(v_schema_url).getxml();
    begin
      for r in (
          select x.*
          from xmltable(
                 'for $i in fn:doc($url)/xs:schema/xs:include
                  return fn:resolve-uri($i/@schemaLocation, $url)'
                 passing v_schema_url as "url"
                 columns idx        for ordinality
                       , schema_loc varchar2(4000) path '.'
               ) x
      loop
        select updatexml(
                 v_schema_doc
               , '/xs:schema/xs:include[' || to_char(r.idx) || ']/@schemaLocation'
               , r.schema_loc
               , 'xmlns:xs="http://www.w3.org/2001/XMLSchema"'
        into v_schema_doc
        from dual;
      end loop;
      dbms_output.put_line(v_schema_doc.getclobval);
      dbms_xmlschema.registerSchema(
        schemaURL => v_schema_url
      , schemaDoc => v_schema_doc
      , local     => true
      , genTypes  => false
      , genTables => false
    end;
    (in this case the xs:include/@schemaLocation will be updated from '../types.xsd' to '/demo/types.xsd')

  • How to register sjsws7.x with sjsDir svr 5,2

    Running sjsws 6.1 SP8 and sjs7 on Solaris 9 SPARC
    Would like to register 7 with the existing accounts/access control list already in Dir 5.2
    I do not see a way of registering 7 with the sjsDs 5.2
    How??
    Thanks

    "Registering" a web server with a directory server is not something you need to do.
    I'll assume you mean authenticating web server clients via the directory server. You can configure an ldap auth-db (or for Java content only, an LDAPRealm) pointing to the directory server of interest. Refer to the documentation on configuring authentication databases (or Java Realms).

  • Credential Store - how to list keys/maps with WLST ?

    Hi,
    How can i list the credential store's maps and keys with wlst ?
    I can see an entry of a specific map/key using listCred but i cant find which script command shows the configured maps and keys of the store.
    http://docs.oracle.com/cd/E25054_01/core.1111/e10043/csfadmin.htm#CACCGBJE
    TIA

    Hi Masood,
    Full Marks to you. I did exactly what you described and it works. It is indeed a pain  that we have to resort to coding to achieve simple tasks like this in WebUI.
    Thanks a lot for your suggestion.
    Regards,
    Shaik

  • How to register a  supplier with VAT number which is different from the  co

    We find it difficult to register a supplier as in the reference above. The supplier is Dutch but the VAT number is Italian. SAP system checks the VAT number and the country of origin and we cannot register the supplier. How can we do it?
    Regards

    Hi,
      U can maintain this data by clicking on CIN DETAILS tab of vendor master----
    >SALES TAX/SERVICE TAX.
    OR
    VENDOR MASTER-->CONTROL DATA>TAX INFORMATION---->TAX NUMBER.

  • How to register RMI object with runnign Weblogic Server instance?

    I need to write some RMI objects(non EJB) and register it with the already running weblogic server so that I can access them from a RMI client.
    Can some help me with this?

    So more precisely the way I am doing it is
    I have a remote interface
    package com.myserv.rmi;
    public interface NSPQueryExecutionService extends java.rmi.Remote
    public void getQueryExecutionDelegate();
    I have the Implementation as
    package com.myserv.rmi;
    import java.util.Properties;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    public class NSPQueryExecutionServiceImpl
    implements NSPQueryExecutionService
    public static final void main (String[] arg) {
    try {
    Properties properties = null;
    properties = new Properties();
    properties.put (Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    Context context = new InitialContext(properties);
    context.bind("QueryExecutionService", new NSPQueryExecutionServiceImpl());
    System.out.println("================================> QueryExecutionService Bound");
    } catch (Exception ex){
    ex.printStackTrace();
    System.out.println("Unable to start QueryExecutionService");
    public NSPQueryExecutionServiceImpl()
    public void getQueryExecutionDelegate()
    System.out.println("inside remote");
    I compile these classes and I do a weblogic.rmic as
    java weblogic.rmic com.myserv.rmi.NSPQueryExecutionServiceImpl
    I run the NSPQueryExecutionServiceImpl class to bind the RMIObject with the weblogic server.
    Finally when I try to access this from my client it is able to access the object but when I invoke an operation on it gives the exception that RJVM is already shutdown.
    Edited by kuldeep.sharma at 02/15/2007 9:37 AM

  • How to register IMEI Number with BlackBerry

    Sir,
    I want to register my new BlackBerry Mibile's IMEI Number with BlackBerry.

    The IMEI number is not required for registration with Apple.  This explains registering an Apple product:
    http://support.apple.com/kb/HT5803
    If your cellular carrier might require some additional IMEI related information, contact them.

Maybe you are looking for