Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

how to access servlet only via specific port?

sagimannJan 22 2012 — edited Jan 23 2012
Hi all,
I have an app with 2 servlets, I want each servlet to be accessible via a different port.
so I open HTTP on my web server, on port 80 and 18080, but now BOTH servlets are available via BOTH ports.
how can I make sure that servlet 1 is accessible only via port 80, and servlet2 is only accessible via port 18080?
tnx

Comments

865185

Very good article for a docker starter.

3387467

Me gustó, bastante clara la explicación para cualquier persona que quiera iniciarse en tecnología Docker.

1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Feb 20 2012
Added on Jan 22 2012
2 comments
550 views