Servlets and port number

I am looking for a way to do the following:
When a user types in the url: http://sunco.front.int/att
I would like the url to automatically change to
http://sunco.front.int:9922/att
Is this accomplished through a server config file, or must it reside with dns?
Thanks

you could always just redirect the request to the port you require.
-Justin

Similar Messages

  • 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

  • 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) {
         }

  • 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

  • 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

  • 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

  • Given raw IP and port number,create a scoket.

    Dear All,
    Given a raw IP number 126.124.35.41 and port number 1950,how to create a socket? I am going to use
    Socket s = new Socket(InetAddress address, int port)
    I know the key is to use raw IP to create a InetAddress. But how?
    Thanks a lot.
    Kevin

    By the way, if you like to get InetAddress, you can do it by
    InetAddress address= InetAddress.getByName("126.124.35.41");

  • Visual Voicemail gone after upgrade to 2.0 (and porting number)

    Anyone else experience this? I upgraded to 2.0 and at the same time I ported the old iPhone to another cell phone number on my account with ATT. The upgrade to 2.0 and porting appeared to go OK as everything else is working EXCEPT when on the phone application, I can not get the visual voicemail button to do anything. I press it and it acts like it is taking some time to open but it never brings up the visual voicemail screen. The phone part works as usual in all other ways.

    I upgraded to the pre-release version of 2.0 and it worked fine. Then this morning i tried to update to the official 2.0 and it could not connect to iTunes, and that pinwheel kept spinning. So I pressed home button and power button until it (iPhone) rebooted. Then i connected it to iTunes and it asked me to restore.... So i pressed the option key (in mac, idk what it is in windows) and selected the prerelease version to downgrade to and now its fine. So...... good luck all

  • 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

  • About  localhost and port number

    following jdbc:microsoftLsqlserver:// , why is the host name localhost and the port number is 1433? how to change the port number into others? please help
    thanks

    "localhost" is usually but not always set up as a hostname for current host, and resolves to the IP address 127.0.0.1
    You can connect to any host or port you want (that has a database running on that port), just change the values in the connection URL.
    If your question is "how can I get SQL Server to run using a different port", you'll need to consult Microsoft's documentation for that.

  • Given IP and port number, Is there a way to find the service name?

    Hi,
    In the Java language, if I am given the IP and the Port number, is there way to lookup the corresponding service name?
    thanks, grace

    There are a number of standard services by port number. You can get that from /etc/services on any nx system and put it into a map or array. That list doesn't change all that often.
    In general though, as Dave says, no.
    Assuming the service is not one of the standard ones and the same port may provide different services on different IP addresses, there would need to be some standard protocol for naming services that you could access at those IPs--either a "list of ports/services" service that's at a known port, or a request/response that would be standard across all IPs and ports. As far as I know, neither of those exist.

  • Suggestion for new version: SID name and port number

    Hi, I suggest that XE 11g installer optionally request a name from SID (XE by default) and a port number (1521 by default), it would be easier to have two different editions of Oracle Database on the same machine.
    Roberto
    Edited by: rober584812 on Apr 3, 2011 2:41 PM

    >
    Hi, I suggest that XE 11g installer optionally request a name from SID (XE by default) and a port number (1521 by default), it would be easier to have two different editions of Oracle Database on the same machine.
    >
    Please Read Me
    >
    Quote from manual:
    Only one installation of Oracle Database XE can be performed on a single computer. This does not affect any existing installation or new installations of Oracle Database 11g Standard Edition, Oracle Database 11g Standard Edition One, or Oracle Database 11g Enterprise Edition.
    >
    Regards,
    Phiri

  • Preorder and port number over from AT&T?

    My contract is up with AT&T. I want to pre-order an iPhone 6 and port my number to Verizon. Can I do this ordering through Apple,com? I'm not sure how this process works...

    Personally I would not port right now.
    Many people will be pr-ordering and quite frankly there is no phone in the world that I am going to jump through hoops to get.
    They will have them in the stores. If you are going to port out from AT&T I would say first wait until Apple has them in the stores (apple stores) and then go in and get one for the carrier of your choice.
    I would even go to a Verizon Corporate Store and do the port at the same time you buy the device. This would be the easy way. Are you looking at paying full price? Contract price? Edge Agreement? they are all to be considered.
    Good Luck

  • Getting the IP address and port number and placing it in a window

    Hi Everyone,
    I have written the code which gives the system time in a window. But I need also to have the Internet address and the port number of the client in the window. the TimeserverRF considers incoming DatagramPackets as a request for the current time, if the client wishes to receive the current time from TimeserverRF, it has only has to send a DatagramPacket to TimeserverRF.
    I am not sure how to do this writing DatagramPackets .
    I have the TimeClient class application. Timeclient should send the Internet address and the port on which it is running.
    Do You have any ideas.
    // the code for system time.
    import javax.swing.*;
    public class Window1 {
    public static void main(String[] args) {
    JFrame win = new JFrame("TimeServer running on port 9999");
    JTextArea tA = new JTextArea(1, 30);
    win.getContentPane().add(tA);
    win.pack();
    win.setVisible(true);
    String s1; // initialise variables
    TimeData t1; // TimeData object initalise to t1 variable
    t1 = new TimeData(System.currentTimeMillis()); // start of loop body
    s1 = t1.toTimeString(); // system time held sring s1
    tA.append("Sent "); tA.append(s1); // Prints statement and time in Frame
    }

    Study this networking tutorial and then, if you have a specific question, create a new post with it.
    http://java.sun.com/docs/books/tutorial/networking/index.html

  • FTP a file to given mailbox loacted at ip-address and port number

    I need technical suggestion on the following.
    Actually I got struck up with a technical issue related to FTP a file to UNIX mailbox through ABAP.
    We have tried with FM: SXPG_CALL_SYSTEM and FTP_CONNECT, which all works purely based on IP, USER ID and PWD.
    But we have an extra PORT NUMBER, which any of this FM doesnu2019t take up.
    Can you please suggest me any other FM that I can use to FTP a file to specified IP with Port Number along with User id and PWD.
    Else are we supposed to go for a separate script for this purpose?
    As i have no clue on UNIX, if i go for a script than what would be the reuirement for this script and where to place them and how to call them in to my ABAP?
    Timely help would be appreciable.
    Thanks in advance
    Edited by: yamuna pillai on Nov 11, 2008 8:37 AM

    Hi Yamuna,
    Can you let us know hw u did this..because we are facing the same kind of issue.
    Thanks
    Gayathri

Maybe you are looking for