How to find Port numbers used by RMI application

Hi, hope u all find me a solution, how to find port numbers used in the RMI application, that is port number which the RMI application communicates between RMIserver and RMIclient. ur answers would b highly appreciated

Currently RMI transport layer does not directly expose any public methods to get the listening ports of the exported RMI objects, but the application can always export RMI server objects at certain designated ports instead of relying on the RMI runtime by specifying them to UnicastRemoteObjcect at the time of exporting.
RMI transport layer try to optimize the number of listeing sockets by exporting all RMI server objects on a single port if no explicit ports were chosen. If the application is really interested in knowing the listeing ports, it can always specify the client and server socket factories to be used for creating Socket and ServerSocket to the RMI runtime at the time of exporting. When a RMI server object is exported, but the listening socket is not yet created, RMI transport layer invokes the createServerSocket(host, port) of server socket factory by passing the host and port details. If no explicit port is specified, underlying socket implementation choses anonymous port. At this point of time application can log these listeing ports to some log file.
Similarly when the stub to the remote object is de-serialized in the client address space, it does also contain the client socket factory along with the end point details (host, port and server object ID). RMI runtime in the client address space needs to establish connection with the remote server object, it try to get the socket from client socket factory by invoking createSocket() on the client socket factory. Now the application can call getLocalPort() on the socket before returning it to the RMI transport layer.
There is a undocumented class RMIStat to dump RMI runtime state information. It provides a lot of static methods to dump RMI state information like object table, transports, threads etc. You can download the source code of this utility from RMI archives, but remember this is not a comman-line utility, you must invoke these static methods as part of the application code.
-- Srinath Mandalapu

Similar Messages

  • How to find port number , when there will be different instance number ?

    In case of portal url,
    port number is 50000 for default instance number 00.
    how to find port number , when there will be different instance number , instead of 00?
    Thanks

    Hi
    You can find the port number by your instance number as follows:
    There is a general format for the port number like you have mentioned.
    For 00 instance the port number is 50000.
    The general format for the port number goes like this:
        <b>5<instance_no>00</b>
    If your <b>instance number is 01</b> then the port number would be <b>50100</b>.
    It depends on the installation type which you perform.
    You can also change the instance number during the installation but normally you dont do this.
    If you have many components or units installed on your system you may have more than one instance in that case it may go like this 00, 01, 02....accordingly port number will be 50000, 50100, 50200...resp.
    Hope this solves your doubt.
    If you need some more clarification please lemme know.
    Regards
      Sumit Jain
    **Rewrd with points if useful.

  • How to find process chain using background job in sm37

    How to find process chain using background job in sm37

    Better is to select the job.
    Select (Define) Step (s) or F6.
    Select the line and Menu Goto>Variant.
    The variant contains the name of the CHAIN and its VARIANT.
    Success
    We faced an old job and via job monitoring we were informed about a cancelled job every 'interval'.
    We noticed that the related chain was deleted but still the job was scheduled each interval again and was cancelled because an event was missing
    We could not find the scheduled job via SM37.
    Via view V_OP, view over tbtco abd tbtcp, we find the related entry.
    We delete these entries via function BP_JOB_DELETE....
    Edited by: Jack Otten on Jul 9, 2010 2:50 PM

  • How to find report values using report writer

    hi,
    Please help me.
    How to find report values using report writer
    Regards,
    RRK.
    Edited by: Alvaro Tejada Galindo on Feb 6, 2008 12:01 PM

    Thanks all for the reply.
    I am trying to solve a problem where report parameter value that is set at Management Console is wiped out after calling replaceConnection.
    databaseController.replaceConnection(oldConnectionInfo, newConnectionInfo,
    null,DBOptions._doNotVerifyDB);
    We have to support changing database connection from a java utility
    class. But once replaceConnection is called all existing static parameter values are lost. To fix this issue we thought of getting parameters and values before calling replaceConnection and setting it after replaceConnection.
    Version is CS2008 SP3 - version 12.3.0.601
    If there is any other option of fixing the original wipe out issue?
    ParameterValues.getValues() didn't return value. I will try ParameterValues.getCurrentCalues() but the document says ParameterValues.getValues() is  equivalent to the IParameterField.getCurrentValues() method  unless it is empty, in which case it is equivalent  to the IParameterField.getDefaultValues() method.
    So getCurrentValues() may not work.

  • What do i need to do to find myiphone I have the app in my computer, but I don't know how to find it or use it.

    How do I use the find my phone app to find my phone? 
    what do i need to do?  I have the app in my computer, but I don't know how to find it or use it.

    To use Find my iPhone on a PC or Mac, open http://www.icloud.com, login with your Apple ID and choose Find my iPhone. There isn't an app for Mac or PC

  • How to find Software version using a copy of software without installing

    How to find Software version using a copy of software without installing

    How to find Software version using a copy of software without installing
    See answer given by Ahmed
    Right click on setup file and select properties and then details tab.
    http://social.msdn.microsoft.com/forums/sqlserver/en-US/c5424ffa-ce98-4899-ac0d-97cbcac10029/how-to-get-versionbuild-from-sql-install-media
    You can also open Mediainfo.xml to see information from Installation file
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • There is a screen that shows how much energy is being used by an application..where do I find that screen

    There is a screen that opens on a monitor that shows how much energy is being used by an application.   Any body can tell me how do I find it.. ?
    My lap is blowing the fan continuously and I know its because a lot of energy is used by any of the applications.. I would like to be able to monitor that.

    Well, this isn't notebook community for one. For another Top is quite good and can show you a lot or stick with Activity Monitor with its GUI.
    You definitely want to install a utility to monitor temps, whether iStatPro or Temperature Monitor
    www.macupdate.com
    Energy = watts but you don't mean measuring what you are using off the wall outlet, rather the fan speed and temperature sensors.
    If you know you will be doing something to stress the system, FanControl can set profiles and instead of waiting to get hot, kick up the fan rpm to something more useful first. Works well.
    You could have software that is not well behaved. Or that you installed years ago that is not compatible with what you have now. When last you installed the OS whether it was an upgrade in place or clean install (and used Setup Assistant to import apps).
    Mac OS forum or MacBook Pro:
    MacBook Pro
    https://discussions.apple.com/community/notebooks/macbook_pro 
    https://discussions.apple.com/community/mac_os?view=discussions
    http://www.apple.com/support/macbookpro

  • How to find the records using contains with the word like this 'some text-some text'?

    Hi,
    How to find the records using the full text contains keyword and that column contains ‘some text-some text’
    In the above some text can be anything.
    Does anybody know please let me know.
    Thanks,

    Hello,
    You can try to create a Full Text Index on the table and use CONTAINS() to get the record which contains the specify words.
    For example:
    SELECT * FROM TABLE WHERE CONTAINS(column_name, 'some text')
    Reference:
    Full-Text Search (SQL Server)
    Creating Full Text Catalog and Full Text Search
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • How to find company code using sales doc. No

    Hi,
         I need to print company code, how to find company code using sales doc no. I don't find it VBAK.
    Cheers
    Senthil

    Dear Senthil
    You can find in table VBAK itself - Field BUKRS_VF
    thanks
    G. Lakshmipathi

  • HT1766 How to find Macbook Pro using Itunes. Do not have Icloud or find my phone function.

    How to find Macbook Pro using Itunes. Do not have Icloud or find my phone function.

    1. This is the iPad forum.  For Macbook questions use the Macbook forum.
    https://discussions.apple.com/community/notebooks/macbook_pro
    The hosts will likely move the thread there shortly.
    2.  You can't use iTunes to find your computer.   You can use icloud.com from another computer to find it if you setup Find my Mac on the lost macbook pro.
    http://support.apple.com/kb/PH2698

  • Port Numbers used by SAP

    Hi all,
    can anyone let me know, what are the port numbers used by SAP.
    regards,
    B

    That's really good. check if you get the following things also or may be of some help::
    [SAProuter as Port Forwarder|http://help.sap.com/saphelp_nwmobile71/helpdata/en/46/d37f01e5343c1de10000000a155369/frameset.htm]
    [Note 30289 - SAProuter documentation|https://websmp130.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/spn/sapnotes/index2.htm?numm=30289]
    [Note 35010 - Service connections: Composite note (overview)|https://websmp130.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/spn/sapnotes/index2.htm?numm=35010]
    Regards,
    Dipanjan

  • How to remove the Sessions used in the application

    Hai Techies,,,
    i am using many number of sessions in my application, for example i am using 5 sessions in reports module
    my application is a web based application
    if can't remove the sessions it contains the huge amount of data , my application is going into mess, and the application performance will be decreased..
    Can anybody tell the solution for this Problem
    How to remove the Sessions used in the application
    Hoping a reply
    Thanks & Regards
    Krishna mangamuri

    Hai Gita,
    i am not able to do the session invalidate method bcoz, i am mainatainting the session from login along with the current userid who is login into the system and putting some of the data in session....
    thats session is to be valid upto when i click on logoff link
    except that i have to remove the sessions in my application
    while navigating from one jsp to another i have to remove the sessions, bit somes times that sessions may be used somewhere
    Can u Understand My problem
    session remove method may also helpful to me but some times it will casue some prob to me
    Is there any other Way to remove the sessions in the Application ????
    Thanks & Regards
    Krishna Mangamuri

  • How to find Delivery numbers for a range of Material Documents

    Hi,
    Could anybody please let me know how to find the delivery numbers from a range of material documents based on a given delivery date.
    Regards
    Kasi

    Hi,
    there is an index table for deliveries by material:
    VLPMA
    Select the delivery numers using the material range from VLPMA.
    Regards,
    Clemens

  • How to find port in db2 database

    Hello Everyone,
    I am using a db2 V8.1 and try to connect to it via JDBC. I am using the app-driver,
    Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");
    however I get an errormessage: java.sql.SQLException: No suitable driver. I can see though that the driver is registered at the DriverManager, so I assume that something in the database connection part is wrong. I have tried to use the url in the way jdbc:db2://host:port/DBName, however I don't know how to find out which port my DB uses. Can someone tell me how to find it under Linux? And also I have read somewhere that one could use the IP-address instead of host:port, is that possible as well?
    thank you very much in advance

    No, the IP address will only replace host, not port. You've got to know the port that the database listener is attached to.
    The DB2 JDBC docs ought to tell you what the default port is. I believe it's 6789. (It was back in Apr-2000 when I last connected to DB2.)
    I don't know what the Linux/Unix command is to list all the active ports, but on Windoze it's netstat -a. I think it's the same in Unix. You should try it and see if it tells you about an app listening on port 6789. If not, speak to your DB admin and ask if the listener is up and running on the database server. - MOD

  • How to find port number of message server

    Hi All,
       Is anyone there who could tell me how to find out port number of message server (Message Port)?  I am defining new system in my SLD so I need port number of message server of the system that I am connecting to. Thanks in advance.
       Best regards

    Hi,
    Go to the index page of the url,
    type http://hostname:http port in Internet browser.
    for ex : if installation is done on system with IP 172.16.28.90
    and your http port is 50000(depends on Central instance number,JCxx)
    then type http://172.16.28.90:50000.
    1.then go to system information tab in index page.
    for the credentials asked,type,
    user:administrator
    password:master password given during installation.
    then system information page opens,in the left corner top,you can find message server port.
    reward points if helpful.........

Maybe you are looking for

  • ICal Snooze Options Are Really Annoying!

    Enough said -- i can't believe i couldn't find anything in apple discussions re: this exact problem -- the extremely limited # of choices for snoozing in iCal alarms is very aggravating and i am wondering if there's a way to add options to the defaul

  • My iTunes library on my new Macbook will not sync to iPhone 5

    I just got a new MacBook Pro and spent a lot of time organizing my music into new playlists, deleting old music, etc.  When I plugged in my iPhone 5 to update it with the new library, the new playlists I had just created disappeared and it wouldn't s

  • Updated to IOS6, maps doesn't work

    So I updates my software to ios6, was really looking forward to it as iv waited months like so may others and its terrible. My maps doesn't work at all, the location is completely wrong and when I switch to hybrid or satellite view it just goes into

  • Opening .PDF's in IE7 with Adobe Reader 9.0 & Adobe Writer 5.0

    Hi I am running a XP Pro environment on a HP D530 machine. I have installed on this PC Adobe Reader 9 and Adobe Writer 5.0. I have defaulted through the folder options all .PDF and adobe related files to open in 9.0 and done the normal 'open with' op

  • SQL, static classes and sessionBeans

    Hi, my JSF-project has one static class where it handle all sql-queries and I asked me if that is the "best" solution. I.e. a User-Sessionbean call that static class to save his data into the user-sql-table. I asked myself, if it might not better to