Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 242
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Lessons on Wi-Fi & Recommendations on KRACK

Simplicity and security can be a difficult  balance for any business to tackle. Join us on December 6th for a look at your company's biggest security gap. We will also address the most recent attack, "KRACK" and provide recommendations on how to secure your Wi-Fi network today!

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