JMAPI - How to get a handle on a Remote JRockit JVM

Using the JVMFactory.getJVM() returns the handle to the current instance of the
JVM in which this code executes.
How do i get a handle to a remote JVM executing on a different host? I.E i am
looking for the API that the Jrockit Console uses to connect to the Management
server on a remote JRockit JVM.

There is no such API. The JRockit console has two parts - one resides in
the JVM you are managing and get the data from JRockit, the data is then
sent over the wire to the the other part (the console itself). The wire
protocol in this case is proprietary, but you could implement something
like it yourself.
Regards,
/Staffan
Code Warrior wrote:
Using the JVMFactory.getJVM() returns the handle to the current instance of the
JVM in which this code executes.
How do i get a handle to a remote JVM executing on a different host? I.E i am
looking for the API that the Jrockit Console uses to connect to the Management
server on a remote JRockit JVM.

Similar Messages

  • How to get a handle of tcUtilityFactory within Java Task

    Hi
    I am trying to user op interface within a java task and want to avoid the GUI based coding in adapter factory
    I am having doubt about how to get a handle of tcUtilityFactory
    the standalone example of getting the handle works fine within a Java task
    // ConfigurationClient.ComplexSetting config = ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
    // final Hashtable env = config.getAllSettings();
    // ioUtilityFactory = new tcUtilityFactory(env, "xelsysadm", "welcome1");
    but I want the handle to be provided by adapter runtime env
    there is a function call within generated adapter code
    APITaskLocal.getUtilityFactory(getDataBase());
    but I get null pointer if I try to use it within custom code
    has anyone played around with APITaskLocal.getUtilityFactory

    Hi,
    Use this code.
    public void init(tcDataProvider dataProvider) {
    try {
         usrOps = (tcUserOperationsIntf)tcUtilityFactory.getUtility(dataProvider, "Thor.API.Operations.tcUserOperationsIntf");
    } catch(Exception e) {
    log.error("Unable to initialize: "+e);
    You can pass dataProvider in adapter mapping . Map it to Adapter reference->Database reference.
    Hope this will help.
    Regards
    Nitesh

  • How to get the handle of the Validation Failure Message Popups.

    Hi,
    I'm using Jdev 11.1.2.0
    I have added validation rule(less than system date) and failuremessage("date should not after currentdate") on the date field in EO.
    when I enter greated than the sysdate in date field in page, I'm getting validation failure message in a popup with ok button. its working good.
    but when i click on the popup ok button, the focus should go the date field again and it is higlighted.
    So, how to get the handle of the popup's ok buton? and how to highlight the datefield after clicking the popup's ok button?
    Any suggestion would be appreciated.
    thank you.

    if i understood correclty means,
    i hope that, error popup is provided by framework.. how could be possible? to catch the error popup ok button.
    am not well aware of catching the error popup which is provide by framework..
    but i had answer for your part of the question,
    if the condition go off false means you force the cursor into date field. this is can be done using 'javascript'. unless using script you can't do that. ADF doesnt provide any force focusing feature.
    please google how to focus the field.
    https://blogs.oracle.com/jdevotnharvest/entry/how_to_programmatically_set_focus
    http://technology.amis.nl/2008/01/04/adf-11g-rich-faces-focus-on-field-after-button-press-or-ppr-including-javascript-in-ppr-response-and-clientlisteners-client-side-programming-in-adf-faces-rich-client-components-part-2/
    http://lspatil25.blogspot.in/2012/04/adf-default-cursorfocus-to-input-field.html
    http://donatas.nicequestion.com/2012/04/component-to-set-initial-focus-in-adf.html

  • How to get the server name/hostname on which JVM is running?

    How to get the server name/hostname on which JVM is running from the Servlet or normal class?

    InetAddress.getLocalHost()

  • How to get a handle which is used in c dll from  javax.smartcardio.card

    good afternoon
    i am using javax.smartcardio.card to operate a sim-card reader .
    but i have a dll which is call sim-card reader by handle.
    how can i get a handle from a javax.smartcardio.card object to pass to the dll
    next is the code .
    c dll prototype declaration
    char DoFormat([in] unsigned long P1�C[in] char * P2�C[in] bool P3,[in][out] char *P4)P1 is a handle
    java code:
    private boolean checkCardReader(boolean isopen)
    boolean r=false;
    try {
    javax.smartcardio.card card;
    TerminalFactory factory = TerminalFactory.getDefault();
    List terminalList = factory.terminals().list();
    terminal = (CardTerminal) terminalList.get(0);
    // establish a connection with the card
    card = terminal.connect("T=0");
    channel = card.getBasicChannel();
    //how can i get a handle which can be used by windows dll .
    }catch (Exception ex)
    System.out.println("Exception : " + ex);
    return r;
    *****************************************************************

    Presumably you are calling a C library method that returns a handle.
    Normally a handle will be a integer type value.
    With such a value you can cast it into a java integer type and then cast it back in different JNI code by passing it to those routines.
    A java long is as big as you can get and will hold most every normal type handle item. You should however verify sizes.

  • How to get a handle Logged in As message in Apps Home page

    Hi,
    I want to get the handle to Logged in As meesage in Apps homepage ,when i pressed personalize link. As i want to change this custom message, by some other message,for that i should be able to see the text in the personalize link because i want to attach a custom controller to that.Here i also want to add that am able to see that message in about this page link, it is inside a flow layout, but am not able to see it inside the personalize link.
    Please help me in this issue.
    Thanks

    This issue alredy discuss on this forum
    Re: How to change the oracle's home page to show our custom message.
    Let us know if this is not able solve your customization.

  • How to get the handle of AM in custom co

    Hi All,
    I am extending a controller in that controller if I use the code
    OAApplicationModule am1 = pageContext.getApplicationModule(webBean);
    I will get the handle of the am which is attached to the region.
    But i want to get the handle of an AM which exists out side of the region i had imported the AMImpl
    and now please let know how can i get the handle of this AM in my extended CO(custom CO)
    Please reply with a piece of code.
    Thanks
    Ajay

    it gives the Root AM
    but i want to handle the Application module of an lov.
    I was trying with
    CsfPoLovAMImpl lotam =(CsfPoLovAMImpl)pageContext.getApplicationModule(webBean);
    But it is giving an class Cast exception as
    java.lang.ClassCastException: oracle.apps.csf.portal.task.server.CsfDebriefAMImpl
    at CsfPoLovAMImpl lotam =(CsfPoLovAMImpl)pageContext.getApplicationModule(webBean);
    Thanks
    Ajay

  • How to get the handle of all text fields in the subforms, using script

    Hi Friends,
    I have around 20 fields in a subform, how can i get the names of all the fields using script.
    I wish to enhance the following script where the field names are hard coded
    thereby the script itself will get the names of the field names.
    var f1 = this.parent.somExpression + ".TextField2" + ",";
    var f2 = f1 + this.parent.somExpression + ".DropDownList1" + ",";
    var f3 = f2 + this.parent.somExpression + ".NumericField1";
    xfa.host.resetData(f3);
    Any help will be greatly appreciated..
    Thanks
    JJ

    Hi Paul,
    Thanks for your comments.
    I achieved the clear contents by resetting, by taking input from your thoughts..
    form1.sub1.sub2.sub3.table_1.addDelete_Top.addDelete.deleteRow::click - (JavaScript, client)
    //Here is my code finally look like..
    //row 1, table_1 are also subforms
    for (var i=1;i<10;i++){
    var myRow = this.resolveNode("table_1.row1[" + i + "]");
    if(myRow.presence == "hidden"){
    i = i-1;
    var myRowDelete = this.resolveNode("table_1.row1[" + i + "]");
    if(i!=0){
    xfa.host.resetData(myRowDelete.somExpression);
    myRowDelete.presence = "hidden";
    break;
    if(i==9){
    xfa.host.resetData(myRow.somExpression);
    myRow.presence = "hidden";
    break;
    Thanks
    JJ

  • How to get a handle to WebServiceContext in oc4j 10.1.3.3?

    Is there a way to get the javax.jws.WebServiceContext in oc4j 10.1.3.3? With @Resource annotations it is not working. The class javax.jws.WebServiceContext is not found.
    @Resource
    WebServiceContext webServiceContext;
    If this is not implemented is there any other oc4j-10.1.3.3 propriatery way to get to that information?
    Thanks,
    Prantor

    OC4J 10.1.3.3 has support for J2EE 1.4 plus EJB3.0 and some associated annotation/DI support around that. It doesn't implement all of JEE5.
    The documentation (WS Developer's Guide) provides a list of all the annotations supported by OC4J for WS in 10.1.3.x:
    http://download.oracle.com/docs/cd/B32110_01/web.1013/b28974/devannotation.htm#BABEEGIJ
    As far as I can tell, the WebServiceContext was introduced in JAX-WS 2.0, and therefore part of JEE5.
    WS is not my area in particular, but I suspect that that the use of WebServiceContext is not something available in OC4J 10.1.3.3. It will be in OC4J 11.1.1, for which there has been a developer preview available for a while, but with the BEA acquisition, the future direction for J2EE and WS implementations is now Oracle WebLogic Server, so you should look top that instead if you need later versions of spec support over and above what is in OC4J 10.1.3.x.
    -steve-

  • How to get a handle to Ctrl + Alt + Del

    Hi,
    Is there a way to tell if the Forms Application has been closed by clicking CTRL + ALT + DEL followed by End task?
    Any help is apprieciated.
    Thanks in advance
    Edited by: user533882 on Jan 21, 2010 2:37 PM

    Hi DM,
    Thanks for providing that Link. That was some useful information however it deos not help me resolve my problem.
    Is there any way to find out from the database if the Form has been closed using Ctrl + Alt + Del or by any other way?

  • How to get the entire database from remote server to my server

    Hi,
    I am running a web application with sample data. Now i need to access the original data through this application. But the original data is located in the other server which is located in Mumbai.
    Now i need the copy of that database to my system(Chennai). with minimum effort.
    It is very urgent...
    Thanks in advance...
    Chaitanya.

    Hi
    Nicolas is right. You can also take advantage of exp/imp utility. That would not only get the entire db in one file but also the size will be a fraction of the entire db size.You can search for DataPump (that uses expdp and impdp) utility to expedite the export/import process.
    For simple exp/imp you can do the following.
    From Remote site(MUMBAI) issue
    ORACLE_HOME\BIN\exp file=c:\fulldbexp09sept05.dmp log=c:\fulldbexp09sept05log.log FULL=Y userid=system/pwd@connectstringOfyourdb
    Get a copy of fulldbexp09sept05.dmp and place it on your local drive in Chennai
    On Local Site (Chennai)
    ORACLE_HOME\BIN\imp file=fulldbexp09sept05.dmp log=fulldbimp09sept05 FULL=Y userid=system/pwd@connectstringOfyourlocaldb
    By this you can take advantage of having a different db name on remote and local sites. This is a fairly easy exercise. You just need to be sure that in your TNSNAMES.ORA you have correctly defined the connectString for your db.
    PS: Create a database on local server with default settings.
    Make use of following to create appropriate tablespaces and users if you desire ie.
    1. On Remote Site open SQLPLUS session and issue this command to find out the tablespaces, datafiles and their sizes
    SQL>SELECT SUBSTR(file_name,1,60) FILE_NAME, tablespace_name, bytes
    FROM dba_data_files
    GROUP BY tablespace_name, file_name;
    Now create the tablespaces on local sites using the result of the above query.
    2. On Remote Site open SQLPLUS session and issue this command to spool user creation script.
    SQL>spool c:\createuserscript.lst
    SQL> SELECT 'CREATE USER ||' IDENTIFIED BY VALUES '||'"'||PASSWORD||'"'||' DEFAULT TABLESPACE '||DEFAULT_TABLESPACE||' TEMPORARY TABLESPACE '||TEMPORARY_TABLESPACE||';'
    FROM dba_users
    WHERE username NOT IN ('SYS','SYSTEM')
    ORDER BY username;
    SQL>spool off
    Now edit this createuserscript using any editor and replace " with '. Copy this file to the local server and run it using @. This will create appropriate users.
    Let me know if you have any problems.
    Regards
    Adnan Mashhadi
    Nicolas I am not sure as how to eliminate the " in my script. Any comment will be appreciated.

  • How to get DPM cmdlts running within remote PS ISE or common powershell

    Hey guys,
    I'm usually using the DPM MGMT Shell on s specific DPM machine.
    Now I'm started to learn PS stuff but I'm facing issues and lack of knowledge.
    Hopefully you guys can give me a hint.
    First... I tried to run a cmdlt within the common powershell on a DPM Server.
    get-datasources ->
    Get-Datasource : Unable to connect to dpm-09.contoso.com. (ID: 948)
    Verify that the DPM service is running on this computer.
    At line:1 char:1
    + Get-Datasource
    + ~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Get-DPMDatasource], DlsException
        + FullyQualifiedErrorId : ConnectionToServerFailed,Microsoft.Internal.EnterpriseStorage.Dls.UI.Cmdlet.Common.GetDa
       tasource
    After trying to load DPM Module import-module dataprotectionmanager the same error came up.
    But why? Whats the difference between the common powershell Environment and the dpm Shell?
    I tried to run DPM cmdlts via my local installed ISE via remote entered pssession but the same error appears.
    Locally installed DPM console and Import DPM Module on my machine won't help either.
    executing the DPM commands within the dpm shell were succesfully.
    Can you give me a hint whats going on?

    The following technet link has some information which might be of help to you:
    http://technet.microsoft.com/en-us/library/hh830726.aspx
    Regards, Trinadh [MSFT] This posting is provided AS IS with no warranties, and confers no rights. If you found the reply helpful, please MARK IT AS ANSWER. Looking for source of information for DPM? http://blogs.technet.com/b/dpm/ http://technet.microsoft.com/en-in/library/hh758173.aspx

  • How can I get printer handle without printer name?

    I want to block printing by hooking. so I hook startdoc.
    Unfortunately, If I block the specific printer, I should get printer handle
    I know how to get printer handle from printer name. but I don't know printer name
    I have known only printer hdc and document name. 
    I have tried for 3 days. but I can not find about that :(
    If anybody knows about, please answer..

    Hi,
    You erroneously posted your question on the Project forum which is dedicated to the Microsoft scheduling and planning application.
    Please post it on the right forum to have appropriate help, starting from here:
    https://social.technet.microsoft.com/Forums/en-US/home?forum=whatforum
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • How to get the row reference of inner table of an advance table

    Hi Gurus,
    Using R12.1.3, How to get the handle of inner table row reference of an advance table in controller.
    Regards,
    Zakir

    The javadoc for oracle.jbo.Key is really helpful.
    getAttributeNames()
    getAttributeValues()
    etc

  • Not getting a handle to Seeded VO from custom region controller

    Hi Freinds,
    I am embedding a custom region to a seeded page by personalization.
    I have an AM and VO for custom region.
    When i am trying to call a seeded VO from my custom region controller i am not able to get a handle to it properly.
    I tried to get rootAm and then i called seeded VO. Some times i will get control but not able to create a rowsetiterator for that VO.
    OAApplicationModule rootAm=pageContext.getRootApplicationModule();
    oracle.jbo.ViewObject spupdateVo=rootAm.findViewObject("SpecialInformationUpdateVO1");
    RowSetIterator tblvorow= tblVo.findRowSetIterator("sptblVoRow");
    it is erroring at line 3.
    please help me to understand how to get a handle to seeded VO from custom region controller.
    My requirement is to loop through that seeded VO records.
    Thanks in advance..
    Jyothi

    Hi,
    I think you need to extend the controller at the pageLayout Region which would have access to all the regions and also their corresponding AMs.
    --Sushant                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Profit center security for Report Writer reports

    We need to limit users access to profit center report writer reports.  We attempted to add values to security object K_PCA but this did not work.   I have heard there is a way to turn on objects for report writer checks but so far have been unable to

  • O365 SharePoint Online. Search no longer working. Where exactly are crawl logs?

    On o365/SharePoint Online 2013 A few weeks Search stopped working on existing sites in SPO.  New site seem to index fine.  We can't find files and list entries inside doc libs and lists now. I'm looking at Search Settings in o365 and have added mysel

  • LOV in form builder

    Hi, How can i move the LOV item up/down with the help of mouse roller.

  • Lost tabs and history after update-version 26 android

    hello My device samsung s4 just updated to firefox 26 and deleted all my opened tabs and all my history. there is no button to press in order to restore my tabs and in history I see only today's pages. I had 31 tabs which i dont remember and now I lo

  • USB optical mouse won't work in PS/2 port

    I have a lenovo USB optical wheel mouse that I want to plug into the PS/2 mouse port (I need to free up the USB port for something else).  I have a green USB to PS/2 adaptor that works fine with a borrowed logitech USB mouse and also works fine with