• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 244
  • Last Modified:

J2EE adding name questions

Hello,

Please let me know if I am asking in  the wrong TA.

I am a J2EE programmer. I have deployed my application successfully to Tomcat and it works fine by specifying like http://localhost:8080/MyWebApp. Now, how can I add the name to it so that it is accessible within the LAN by specifying http://intranet.david.com/MyWebApp or http://intranet.david.com:8080/MyWebApp

I may be interested in both Linux and Windows 2000.

Thanks
David

0
suprapto45
Asked:
suprapto45
  • 5
  • 5
2 Solutions
 
girionisCommented:
YOu need to change the <host> element in your server.xml file to represent the host the request is coming from.
0
 
girionisCommented:
And you should better ask this to the Java TA.
0
 
suprapto45Author Commented:
Thanks girionis,

At first, I thought that this is networking configuration ;). Is it only changing the <host> in the server.xml?

David
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
girionisCommented:
Yes, as long as the rest can find the dns you will input.
0
 
suprapto45Author Commented:
let me google them for a sec. Do you have any good URL for it?

David
0
 
suprapto45Author Commented:
Do I need to  use Apache as well?

I will be going for few hours now

David
0
 
girionisCommented:
You only need to use Tomcat as you are already using it. As for a url, have a look here: http://www.onjava.com/pub/a/onjava/2002/07/31/tomcat.html that explains briefly the server.xml file.
0
 
girionisCommented:
BTW I will be away for the next week, so I won't be able to answer any more questions. If you need clarifications hopefully some other expert will jump in.
0
 
suprapto45Author Commented:
Do not worry girionis,

Your answer is enough for me. I will approve your answer soon.

David
0
 
suprapto45Author Commented:
Thanks girionis,

Appreciate it.

David
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now