How to use a different port in RMI

Hi ,
We cannot use default port 1099 in RMI due to some restrictions. I want to user port: 8000 instead.
Can some one please help how to use a different port?
Thanks
Arun

C:\>rmiregistry.exe 8000
and in code use Naming.bind("rmi://<host>:8000", ....)
or LocateRegistry.getRegistry(host, 8000)
Genady

Similar Messages

  • How to use two different port numbers for a single OC4J container

    Hi,
    I have a container OC4J_System running in 7998 port, now I want to add one more port for the same container.
    Is it feasible?
    Kindly help me out.
    Regards
    Vicky

    It's quite complicated, see
    Two Page Numbering Schemes in the Same Document.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • How to use the different class for each screen as well as function.

    Hi Experts,
    How to use the different class for each screen as well as function.
    With BestRegards,
    M.Thippa Reddy.

    Hi ThippaReddy,
    see this sample code
    Public Class ClsMenInBlack
    #Region "Declarations"
        'Class objects
        'UI and Di objects
        Dim objForm As SAPbouiCOM.Form
        'Variables
        Dim strQuery As String
    #End Region
    #Region "Methods"
        Private Function GeRate() As Double
                Return Double
        End Function
    #End Region
    Public Sub SBO_Appln_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean)
            If pVal.BeforeAction = True Then
                If pVal.MenuUID = "ENV_Menu_MIB" Then
                End If
            Else ' Before Action False
                End If
        End Sub
    #End Region
    End Class
    End Class
    Rgds
    Micheal
    Vasu Anna Regional Feeling a???? Just Kidding
    Edited by: micheal willis on Jul 27, 2009 5:49 PM
    Edited by: micheal willis on Jul 27, 2009 5:50 PM

  • How to use a fixed port for remote assistance in windows 8.1 behind a nat router freebox?

    Hello,
    Before to use remote assistance in windows 8.1, i need to configure my nat router freebox.
    But remote assistance ( msra.exe ) use a dynamique port and never the same.
    How to use a fixed port for remote assistance ini windows 8.1 ?
    And why i can't use easy connect ?
    i read that the router must implement the PNRP protocol. I think it's a propriatary microsoft's protocol unknow on my router.
    Thanks

    Hello,
    Very good. It's a big range ( 255 mini from 49152 )  for a single port but if it's the only one possibility...
    You are very helpfull ( i don't know if it's a good english but you make me very happy )
    Merci beaucoup

  • How do i group different ports for "DAQmxCreateDIChan" for a single task?

    greetings.
    the thing is that for "DAQmxCreateDIChan" i do this:
    DAQmxErrChk (DAQmxCreateDIChan(taskHandle3,"Dev2/port0","",DAQmx_Val_ChanForAllLines));
    and i can even do this
    DAQmxErrChk (DAQmxCreateDIChan(taskHandle4,"Dev2/port1/line0:1","",DAQmx_Val_ChanForAllLines));
    ok, in the first case it means that for taskHandle3 i will read all 8 bits from port0 in "Dev2/port0", right?
    in the second case it means that for taskHadle4 i will read only line0 and line1 from port1 in"Dev2/port1", right?
    once
    this is explained: How can i read all 10 bits (i.e. line0 to line7 in
    port0 and line0 to line1 in port1) for a single task so that in the
    "DAQmxReadDigitalU32" that goes after "DAQmxCreateDIChan" i can have a
    single read instead of two in the example above?
    by the way, my device is a pci6229 and i'm using vc++ 2008.
    thank you for reading.
    ZZ
    sorry for double posting...

    Hi ZainZeus!
    The answer lies on the creation of the channel, DAQmx allows you to include different ports on the same line, that should include both ports on the same task. It should be something like this:
     Dev1/port0/line0:7, Dev1/port1/line0:1
    All of this must be on the same line under the " ". You can try this and check if it works.
    Hope this helps.
    Have a great day!

  • How to use two different network cards on RT?

    Hi everyone... I'm currently working on a project where I have to deal with the issue mentioned in the thread's topic: I have a PC with RT LabVIEW that has to be able to establish network connections using two different network cards. One will be used to connect via TCP/IP with a host computer that will show the data transmitted through shared variables; the other will communicate with another PC through Modbus protocol. The key is that each communication is done through a separate network card.
    So far I haven't been able to figure out how to configure both things to happen. Does anyone know how to do this? Any tips will help.
    For the RT communication I'm using a standard RT project, with the RT PC being given one of the IPs, and for the Modbus part, I created an I/O server with a master and a slave. Separately everything works fine, but when I get them together it simply won't work.
    Thanks for your help!
    Solved!
    Go to Solution.

    Sorry it took me so long to answer, I've been busy lately....I've found a solution to the problem I mentioned, and just in case anyone has similar problems in the future, I'll shortly describe what happened.
    As Caseyw suggested, it was necessary to enable both network cards through the Measurement and Automation Explorer. The cause of the connections malfunction was actually that I wasn't using the "right" protocol for the Modbus communication, which ran on the secondary adapter. The solution was to use the URL protocol with the correct path on the field, addressing the right IP address. To avoid making this post a mixture of topics, I won't elaborate futher, but I got the gist of it, so if anyone is having similar problems whether it is working with several network cards or with Modbus communication protocols, feel free to contact me, I'll be glad to help.
    Thanks

  • How to use two different versions of Firefox at the same time on Snow Leopard?

    I recently upgraded to Firefox 4.0 on my 27" iMac running Snow Leopard 10.6.7.
    Previously, I was using Google's "Page Speed" along with Firebug in Firefox 3.6.15 to optimize images in my web pages, and to find other areas to optimize.
    Page Speed is not yet compatible with Firefox 4.0. I wrote to Google about this some time ago -- no answer yet.
    If I run Firefox 3.6.15 in order to use Page Speed, I run into a few problems afterward when I start using Firefox 4.0 again, since they both use the same "Firefox" folder in my "Application Support" folder.
    How can I set it up so that I can have two separate "Firefox" folders in my "Application Support" folder?
    Or is there an easier way to use two different versions of Firefox simultaneously, even if one has extensions and/or plug-ins installed which are not compatible with the other version?
    Thanks for a great browser!

    Please disregard my question. I just conducted more web search and learned how to use Firefox's profile manager in order to make a separate profile for Firefox 3.6.15.
    You can find instructions on this page:
    http://support.mozilla.com/en-US/kb/Managing%20profiles#os=mac&browser=fx35
    '''A small tip:'''
    If your Firefox app is named anything other than "Firefox" -- say for example "Firefox 3.6.15" -- when you follow the instructions at the above link, make sure you escape the blank space that is before the version number by adding a backward slash before it, when you type the command string in the Terminal. In other words, in that string, you should use this:
    Firefox\ 3.6.15
    I hope that helps someone.
    WW

  • SBO - How to use two different Stock Account within the same Item Group

    Hi,
    I'm currently stuck within one of my implementation.
    I'm deploying the same solution worldwide which worked pretty well until now. All the items are connected to an item group, with a unique GL account, supposed to book at the same time the good receipt and the good issue (Balance-Sheet Account = 14xxxxx).
    My new unit is willing to use two different GL accounts when performing its stock entry (let say 14xxx10) and another GL account for the good issue, let say 14xxx20.
    Do you have any clue so i can please them and keep using at the same time the item group ?
    Thanking you in advance
    Stephane

    Hi,
    In fact, we use the GL account as the HQ Account (Reporting Account) while the "Export Code" will be used to store the local GL Account (greek account).
    As such, we can, somehow handle two different chart of accounts.
    In my reporting, i'm only using a single GL account for stock movements, while my greek counterparts want to handle two different accounts.
    Threfore, i have only two solution since there is normally a one to one relationship between a HQ account and a local account that are :
    1 - Duplicate the HQ accounts
    In that case, i do respect anytime the one to one relationship. I've got one HQ account for one local account. But how can i put this since i can only handle one single stock account.
    2 - I keep my single stock account like this but i won't be managing the possibility to get two different Export Codes.
    Regards
    Stephane

  • How to use non-standard port for vnc?

    Our Windows users who use RDC to connect to their desktops from off-site come in on a non-standard port number. Part of our security setup.
    I'd like to do the same with Mac users who use screen sharing and vnc to connect remotely.
    How can I specify another port number at both ends to accomplish this?
    I can find nothing in the Network Utility app, or in the KB.
    Surely there's a short sequence of Terminal commands that will do this?

    I haven't tried this so don't know whether it will work. But I think it will. Presuming the target machine is a Mac, see if editing its /etc/services file will do it. Find the two lines that start with "vnc-server" and change the port number there. Launch Terminal.app as an administratively privileged user, sudo pico /etc/services, ^w to search for vnc-server, make the changes, ^x to exit, y to save and overwrite. Also, you will need to have screen sharing enabled in the target machine's System Preferences' Sharing, and the authorized users defined there, too. Reboot. Now, on the remote client, assuming it is also a Mac, the user would type ⌘k in the Finder (or mouse to Finder > Go > Connect to Server), and enter something like vnc://123.45.67.89:55900 where you substitute the actual IP address or host name for where I have entered 123.45.67.89, and where you substitute the actual alternate port number where I have entered 55900. Of course, in the clients' Screen Sharing's Preferences, they should choose to encrypt the entire session, not just the login. Like I said, I haven't tried this because I just tunnel my vnc stuff through ssh, but I'm thinking that this should work.

  • For the same table in the same page, how to use 2 different forms (simple and tabular)?

    Hello! How I can be on the same page with the same table insert and update operations using 2 different forms (single form and tabular form)
    I have little knowledge of Apex, but I know PLSQL
    Thanks
    Ginger
    Ecuador

    Thank you Gramps.  It took some time, but I've got it working now.  I had to re-do all the user authentication actions from scratch for one of the databases, but it's finally behaving itself now.  I appreciate you pointing me in the right direction.

  • Naming.lookup refuses to work properly when I use a different port

    Ok, here's the deal: I have an application that uses RMI. Until now it has worked wonderfully, but since a new service that "steals" port 1099 is going to be installed on the same machine, I have to update my code to start working with another port.
    Nothing unfathomable, of course. Or so I thought.
    I start the registry with the right port (1211) and I bind my server using the same port:
    Naming.rebind("//localhost:1211/XXX", myXXX)But when I try to get a reference to that object by using Naming.lookup("//localhost:1211/XXX")I get a nasty UnknownHostException!
    And here's the freakish thing: if I try this...
    String[ ] list = Naming.list("//localhost:1211");
    for(int i=0; i<list.length; i++) {
        System.out.println(list);
    XXX myObj = (XXX)Naming.lookup("//localhost:1211/XXX")
    ...first I get a list of the objects contained in the registry, and my "//localhost:1211/XXX" [i]is there, but then when I look it up, I get the exception that says my host 172.x.x.x (the localhost) is unknown!
    I have made sure there are no unwanted blank spaces in the Strings i use for the binding and lookup. I have even tried using the very String that I receive from Naming.list, but nothing works.
    Any ideas? It works like a charm when I simply eliminate ":1211" everywhere in the code. I appreciate any help I can get.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Do you really get the exception on the lookup or when using the stub? Can you post the full exception text and stack trace?

  • How to use non default port 1521 while 11.2.0.1 grid upgrade to 11.2.0.2

    Hi Team ,
    We are planning 11.2.0.1 Grid infra rolling upgrade to 11.2.0.2 with out any downtime.
    But while up gradation due to default scan port 1521 , 11.2.0.1 databases are not able to connect (remote connections)
    We are using 1900 port for existing 11.2.0.1 grid infra scan.
    While up gradation it is taking default port of 1521 insted of existing port 1900.
    Please provide the solution to use non default port while 11.2.0.2 up gradation.
    After upgrade the status as below.
    grdoratst104:/apps/grid/grdhome:+ASM4> srvctl config scan_listener
    SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521
    SCAN Listener LISTENER_SCAN2 exists. Port: TCP:1521
    SCAN Listener LISTENER_SCAN3 exists. Port: TCP:1521
    Here I was getting TNS:no Listener errors from the client connections.
    I have modifyed the scan port then it is working fine.
    grdoratst104:/apps/grid/grdhome:+ASM4> srvctl modify scan_listener -p TCP:1800
    grdoratst104:/apps/grid/grdhome:+ASM4> srvctl config scan_listener
    SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1800
    SCAN Listener LISTENER_SCAN2 exists. Port: TCP:1800
    SCAN Listener LISTENER_SCAN3 exists. Port: TCP:1800
    grdoratst104:/apps/grid/grdhome:+ASM4>
    Here the problem is we need to do the grid infra upgrade with out downtime,but due this default port issue clients are not able to connect to the database.
    Thanks
    Bala
    Edited by: user12032334 on May 31, 2011 11:46 AM

    Why are you using a non default port? It does not improve security. It makes network management more complex. And causes the type of issues that you are facing now.
    So before changing defaults, make sure that your reasons are technically sound. And using port 1900 when 1521 is available, is not technically sound by any means.
    As for addressing the problem you have created for yourself by mucking around with port numbers. Use a NAT firewall (on each RAC node) to rewrite packets headers received on port 1900 and send these to the server's port 1521 instead (on the VIP or static IP as required).
    This can be fairly easily done using iptables if your o/s is Linux. You need to:
    a) create a pre-routing NAT rule
    b) create a post-routing NAT rule
    c) create a forwarding filter rule for port 1900/tcp
    d) create an input filter rule to accept traffic on 1900/tcp

  • How to change & manage different ports in a mixed web environment (BSP/WAD)

    Hi everybody,
    our scenario is the following:
    We constructed a mixed environment web application, consisting out of a BSP application and WAD web templates. Unfortunately the url of web templates and the bsp-application differs - meaning the server is the same, but the port is different. That's why it is not easy to link the application each other, because for transportation reasons, we would like to have relative url paths.
    After searching the SDN and reading several help files, we found out, that the port of the BSP can be changed by adding an entry to the HTTPURLLOC table.
    See also: [Configuration Table HTTPURLLOC|http://help.sap.com/saphelp_nw70/helpdata/en/42/d547ab30b6473ce10000000a114e5d/frameset.htm]
    We managed to do that and in addition we created a BEX role for our BSP application. But with the new port the BSP does not appear in the browser window. So we still didn't fulfil our requirement to call the BSP in a include item of the WAD without passing the complete URL server:port/sap/bsp/...
    Question: How can we link the BSP out of the WAD environment, respectively is it possible to call the BSP with the same port, being used by the web templates...?
    Thanks for any comments and hints!
    Best regards,
    Sebastian

    Hi Raja and everybody,
    thank you for your comments... meanwhile we just solved the problem by appliying method two mentioned above. Therefore we created a Customer web item class as denoted in [Creating an ABAP Class for the Custom Extension Web Item|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/a1c1237d753ca2e10000000a42189b/content.htm].
    In the Initialize method I constructed the IFrame HTML-Code:
      DATA: serverURL TYPE STRING.
      DATA: serverPort TYPE STRING.
      DATA: bspName TYPE STRING.
      DATA: iFrameURL TYPE STRING.
    * Fetch the BSP port from internal table
      SELECT SINGLE VALUE FROM it_table.
    * Create iFrame URL
      serverURL = 'https://www.sap.com'.
      bspName = 'myBSP'.
      CONCATENATE serverURL ':' serverPort '/' bspName INTO iFrameURL.
    * Create the iFrame Tag
      CLEAR generatedHTML.
      generatedHTML = '<iframe src="%IFRAMEURL%" valign="top" width="100%"/>'.
      REPLACE '%IFRAMEURL%' IN generatedHTML WITH iFrameURL.
    In the execute the code is parsed with the method:
    CALL METHOD cl_bics_cons_webitem_util=>string_2_utf8_xstring
    Many thanks to Raja and everybody else for helping me!
    Sebastian

  • How to use two different database Drivers in one application ????

    I want to select datas in a result set of a query on a ms access database table and insert these into a mysql table of a mysql database in one application.
    Now my problem is that only on database driver is acceptet in the same application even it`s instanciatet in a completely different class !!!
    Here's the structure of my program:
    class one:
    String database = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=";
    database += filename.trim() + ";DriverID=22;READONLY=false}";
    java.sql.Driver driver0=new sun.jdbc.odbc.JdbcOdbcDriver();
    DriverManager.registerDriver(driver0);
    DriverManager.getDriver(database);
    con2=DriverManager.getConnection(database,"","");
    DatabaseMetaData dmd2;
    dmd2=con2.getMetaData();
    stmt2=con2.createStatement();
    rs2=("SELECT (.........
    until here all values can be selected correctly from ms access
    class2.get_gas_id(fla_gas);
    Now I want to insert these values into mysql.
    By despair i created a second class with another jdbc-method:
    class2:
    public class gas_select{
    public static int fla_gas_id;
    public static void get_gas_id(String fla_gas)
    java.sql.Statement stmt3;
    java.sql.Connection con3;
    java.sql.ResultSet rs3;
    FileWriter fout1;
    try
    java.sql.Driver driver1=new org.gjt.mm.mysql.Driver();
    DriverManager.registerDriver(driver1);
    DriverManager.getDriver(config.db_rge_stoffe); ==>
    config.rge_stoffe="jdbc:mysql://192.168.10.101:3306/rge_stoffe?user=<user>";
    con3=DriverManager.getConnection(config.db_rge_stoffe);
    java.sql.DatabaseMetaData dmd3;
    dmd3=con3.getMetaData();
    stmt3=con3.createStatement();
    rs3=stmt3.executeQuery("SELECT (Nr) from tblgaseliste where Gasart like "+"\'"+fla_gas+"\'");
    while(rs3.next())
    fla_gas_id=rs3.getInt("Nr");
    fout1.write(fla_gas_id);
    stmt3.close();
    con3.close();
    fout1.close();
    There's no result and no error message. Idon't know what to do !
    Has anyone an idea ???
    Edited by: goberger on Mar 27, 2008 3:35 PM

    Hi!
    If I understand your problem correctly, you can create connections to as many databases as you want in one class. In one of my programs I have connection to 3 separate databases, but here is an example:
    Connection mysql_con = DriverManager.getConnection("jdbc:mysql://localhost:3306/dbmysql", "root", "12345");
    Connection pg_con    = DriverManager.getConnection("jdbc:postgresql://127.0.0.1:5433/dbpgsql", "postgres", "12345");Then from mysql_con and pg_con create PreparedStatement or Statement then load selections into ResultSet and then use getString() to get a basic String type result that you want and so update table from each database.
    HTH
    Victor.
    BTW Here I use port 5433 for PostgreSQL connection because I SSH tunnel it from 5432 to 5433
    Edited by: vic_sk on Mar 27, 2008 4:23 PM

  • How to use the same port twice in composite application

    Hi,
    I have deployed a Dot Net web service which has 2 operation (say provider1 and provider2) both will accepts and return a string. This Dot Net web service has one port and 2 partner links (one for each operation). I created a client wsdl which also has 2 operations(say client1 and client2). Client wsdl contains one port and a partner link.
    I also created 2 different BPEL processes for client1-provider1 and client2-provider2 operations, i want to create a composite application with both this bpel. If I deploy my composite application I can able to see only one connection from client1-provider1. How to add soap binding manully so that I can test both the processes. I am new to web service, need step by step procedure.
    Thanks in advance,
    Natraj

    Snarky McSnarkster wrote:
    twins???!!!
    That's how they did the real and T1000 version of Sarah Connor at the end of T2.

Maybe you are looking for

  • Last_page button is not working in table control-urgent

    hi  all, iam displaying the data in table control.in my pf-status i have first_page,next_page,prev_page and last_page.out of 4 buttons 3 buttons are working finr except last_page. any body can send me the code for this program.iam sending my program

  • Itunes issues on windows 8

    I just bought a new computer with windows 8. I downloaded itunes and signed in. Initially my music played, then when I shut if off and went back, all of the songs were light gray in color and would not play. Then when I went back again, it's as if I

  • Running out of OS level space.

    Hi, Can you guys help me out in this problem. I am using UNiX as OS and running 9i database Running on SUN Machines. For some reason my oracle partition at OS level is running out of space. It's not because my datafiles are full or any file is reachi

  • The new version says it won't support Trend Micro; am i without protection from trend in this case?

    I use Trend Micro as my internet protection. I downloaded the newest version of Firefox and am getting the message when i list my add on(s) that it is not supported by the newest version. Does this mean when I use my Firefox browser i am completely u

  • Item in Transfer Process  - Follow on documents status not displayed

    Hello experts, User created a shopping cart of 12 line items (out of that no 3rd is deleted) and PO is created in backend r/3 system. Now when i see the status of my last item ie 12th line item is "Item in Transfer Process". and for 3rd item which is