Getting host name and port number from an application

Does anyone know how I would be able to get the host name
and port number from an application launched by java webstart ?
This is the host and port of the URL that this application is launched from.

A couple of suggestions:
-The note is about 6.40. Doesn't fit for your server
-Don't!
-Reinstall!
Regards,
Benny

Similar Messages

  • Getting host name and port number from application

    Does anyone know how I would be able to get the host name
    and port number from an application launched by java webstart ?
    This is the host and port of the URL that this application is launched from.

    A couple of suggestions:
    -The note is about 6.40. Doesn't fit for your server
    -Don't!
    -Reinstall!
    Regards,
    Benny

  • Replacing Host Name and Port number throughout Environments

    So I am currently working on a project that have several classes using simple JDBC code. I'm switching all of it to use JNDI instead of what is currently being used. I'm using Weblogic and the plan is to have the code run in a cluster.
    Here is a code Snippet of some of the code.
    Context ctx = null;
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.PROVIDER_URL,
    "t3://hostname:port");
    My problem lies in the the "t3://hostname:port" String. I don't want to hardcode that since I know its bad code practice but my question is what is the best way to replace that with the Host Name and Port number as I move environments. Should I have a Class with a Static Variable and just reference that through the other classes or should I put it in some Property file and read the value from there? Any insight into this would be greatly appreciated.
    Thank you.

    would it be something like this?
    Properties properties = new Properties();
              try {
         properties.load(new FileInputStream("src/jndi.properties"));
         String url = properties.getProperty("url");
         System.out.println(url );
         } catch (IOException e) {
         }

  • How to get the Host name and port number

    Hi all,
    I am working in xRPM. I need to get the server name, host name & port number for the portal and i need to diaplay as a link in the Workflow step. I cant give the portal link as static, as it will vary depends on the DEV, QUAL, PROD. Is there any FM or class is available, so i can get the server name, port no. for my purpose?.
    Regards,
    Vinoth

    Hi Kanagaraja,
    My client has configured the portal and backend in different stack. So when i execute the FM you provided and with class: CL_HTTP_SERVER, CL_WD_UTILITIES, i am getting only the backend host name and port no. not the portal's info. So please help is there any way we can get the portal's info.
    Thanks for your reply.
    -Vinoth

  • How to get Host name and port inside UDF

    Hi,
    I want to access the Host and port in UDF to pass it to a link http://host:port/AdapterFramework/ChannelAdminServlet?party=&service=&channel=*&action=status dynamically.
    How can I acieve it?
    Manisha

    Hi
    With this code. I am getting error:
    try
    java.net.InetAddress addr = java.net.InetAddress.getLocalHost();
    String host = addr.getCanonicalHostName();
    catch (UnknownHostException e){}
    if (ProcessMode.equals("P"))
    try{
    String xyz="/AdapterFramework/ChannelAdminServlet?party=&service=&channel="Name"&action=stop";
    URL server = new URL("http", host, 8XXX, xyz);
    tring userPassword =Userid + ":" + Password;
       String encoding = new sun.misc.BASE64Encoder().encode (userPassword.getBytes());
        URLConnection uc=server.openConnection();
        uc.setRequestProperty ("Authorization", "Basic " + encoding);
        BufferedReader br = new BufferedReader(new InputStreamReader(uc.getInputStream()));
         while ((inputLine = br.readLine()) != null)
         output+=inputLine;
        br.close();
    catch (Exception e){}
    ERROR:
    cannot resolve symbol
    symbol : variable host location: class com.sap.xi.tf._MM_CommunicationChannel_Stop
    _ URL server = new URL("http", host, 8xxx, xyz);
    ^ 1 error
    Any other way to get host and port?
    Manisha

  • Find host name and port number using query

    Hi,
    How do find the system_name, host_name and port no
    using sql query or data dictionary.
    plz

    SELECT i.instance_name, i.host_name, f.release_name RELEASE, i.version, k.patch_level FROM
    v$instance i, fnd_product_groups f, fnd_product_installations k WHERE
    UPPER(SUBSTR(i.instance_name, 1, 4)) = UPPER(SUBSTR(f.applications_system_name, 1, 4)) AND
    k.application_id = '200';

  • Getting WLS host url and port number

    Hello Experts,
    I need to forward an authenticated request to JAAS LoginModule. How can I get wls host name and port numbe in the LoginModule?
    Thank you in advance,
    Thanks for reading my post

    Hi friends.
    I have used the last post, but it is not working.
    Mat be the API had changed.
    What class or interface could give me this data in web dynpro component?
    Too, I'm using the SAP NetWeaver Developer Studio
    Version: 2.0.16
    Build id: 200602130353
    Thank you.
    Manuel Loayza
    Living La Vida JAVA
    Edited by: Manuel  Loayza Gahona on Jul 23, 2008 6:54 PM

  • ITS host name and port.

    Hi Experts,
    What is integrated ITS host name and port for portal services? Where can I find the ITS Parameters to create a SYSTEM in Portal?
    Regards,
    Amit.

    Hi Amit,
    GO to SMICM toce in R3 system and clcik on (F) servicess button , u will get ITS host path and port number .
    GIve this details in System object ITS .
    ITS  host name : from SMICM
    ITS path should be /sap/bc/gui/sap/its/webgui
    Surekha.

  • TA38622 how do you delete a contact name and phone number from this?  i have deleted it from my regular contacts, but it remains in a text memory when i begin to type the beginning of a name

    How do I delete a contact name and phone number from my texting memory?  I have deleted this contact from my regular contact information; however when I text and begin to text a contact beginning with the 1st letter of the name I had deleted, it brings up the old, deleted contact information in my texting history only.

    You would have to restore as new.

  • Configuring server name and port number through action links - obiee11g

    Is it possible to configure host name and port when using action links ?
    Say some session variables hold these values. Is there any way to use these values ?
    Thanks
    SM

    Any pointers ?

  • Need dissociation street name and street number from one column?

    Hi all,
    I have one table A with one column with Street name and street number.
    And I was adding second column and now need update this second column with street number
    and delete street number from first column.
    How can unpluging street name and street number from one column?
    (street name are 90% char, number is 100 numeric, in 10% street name name
    starts with number (1.HEROES 223, 1.HEROES 224...)
    Gordan

    Hi,
    Solution of Mr. Wijk come first, however I like to post (it's very similar and incomplete, I know...). Supose you have a table call address (use position -1 like Mr. Wijk to look backward). It's better in cases like '1.My Street 123' (the space before the number is very important)
    SELECT substr(a.street_name,
                  1,
                  instr(a.street_name,
                        -1) - 1) street_name,
           substr(a.street_name,
                  instr(a.street_name,
                        -1) + 1) street_number
      FROM address a;Regards,

  • How to get Storage unit and Warehouse number from Handling Unit.

    hello all,
    I have Handling unit and Material in my program as an input, using these two fields i have to get corresponding storage unit and ware house number, to pick up transfer order.
    Can anybody explain me who can we get Storage Unit and Warehouse Number from Handling Unit.
    I know we can pull transfer order from table LTAK & LTAP using warehouse number.
    But i dont understand how to get warehouse number from handling unit.
    There is table LSUTO which has warehouse and Handling unit relation, but in our system there is not data maintained in that table. So, i was just wondering how can i get warehouse number from the given handling unit number.
    please guide me
    thanks
    Edited by: Mr A on May 12, 2008 1:23 AM

    Hi ,
        Check out the handling unit item table VEPO. You got storage location(LGORT) in it.
    Reward points if it was useful.
    Regards,
    Abhishek

  • SMICM and WAS host name and port

    Hi all,
    Can someone please throw some light on the activity WAS host name and port in port... the question is:
    Q. The information about host name and port is available in Tx SMICM, looking there in my case I find port 80xx whereas the portal runs on port 500xx. What value should we enter in the port field of "Connecting to a WAS system" in portal?
    Is it what is given in SMICM or we should use 500xx?
    Regards.

    (80xx assuming you're starting Web Dynpro ABAP apps, integrated ITS and BSPs.)
    Thanks Michael,
    How about in case when it's not ABAP it's java apps i.e. when we are connecting BI to portal with SSO on dual stake. BI uses the 500xx port on FQDN and thus it's confusing me, whether to use 80xx or 500xx (when 500xx seems the port in use on BI portal).
    Hope I made my point clear.
    Regards.

  • Application server name and port number

    Hi
    Is it possible to get the application server name(ip) and port number at runtime. Becuase i want to open an html file which is in the application server, when a button is pressed by using web.show_document ();
    Can anyone guide me please.
    Thanks in advance
    geethu

    application server name and port number

  • Getting host name and IP address

    I have develop different types of forms which resides on server and clients are acessing it.Now from my end i want to track that which user is accessing my forms on the server i.e i want to know the client IP address and host name.When the user execute some query on the database then i will get it easily using sys_context function but if it perform some functions within the form and i catch the host name then it returns the server host name where the actual forms resides not the client host name and i want to know the client host name and IP address who is running the forms.Plz let me know the way so i can do that easily .
    thanks

    Hi Grant,
    I want to get ip/address host name of reports server, sitting on forms server.
    can you tell me how to do this.
    in a web base environment.
    i have several report server instances running on different machines.
    when i run a report using RUN_REPORT_OBJECT using report_server=mac_rep1
    i want to know mac_rep1 resides on which host/ip machine.
    regds

Maybe you are looking for

  • Something's wrong with my mouse

    When I try double-clicking on files in the Finder, sometimes the item won't open. I have to click on a blank part of the screen in order to get it "working" again. I've tried changing the double-click speed both to the lowest setting and the highest,

  • Disk Imaging problem

    We're using a PXI-8185 for an autonomous experiment. We would like to make a backup image of the disk with Norton Ghost so that if the disk crashes, we can get a duplicate disk running quickly. I've done this previously with the old Power Quest Disk

  • Show the last edit date and time ?

    I can't find a way to see the actual date and time of the last edit made. I see where you can sort the view by this in grid mode. Has anyone figured this out? Thanks.

  • Adjusting FIN and CAP buckets when planned start changes

    Hello, I have a task to update the financial and capacity buckets when the planned start date of a project is changed.  For instance, if the planned start date is moved out two months I need to move all of the data in the buckets out two months and c

  • Read-only attributes

    Using OCS 9 I would like to set the default rights of calenders so that by default nobody can see the tasks and events of others, and then open up for others on an as-needed basis, usually everyone in the department. To avoid to have to do this for s