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

LVL 16
suprapto45Asked:
Who is Participating?
 
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
Improve Your Query Performance Tuning

In this FREE six-day email course, you'll learn from Janis Griffin, Database Performance Evangelist. She'll teach 12 steps that you can use to optimize your queries as much as possible and see measurable results in your work. Get started today!

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.