Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2005

Tip: Looking for answers? Try searching our database.

Programmatically Determine Connector Port Numbers etc.

Thread view: 
junk5@microserf.org.uk - 18 Oct 2005 13:42 GMT
Hi

I am writing a custom JSP tag and I need to be able to determine how
the servlet container is configured. Specifically, I want to be able to
do things like get a list of the port numbers in use and which schemes
they are using (e.g. HTTPS on port 8443).

Is this possible?

I know I can manually read my server.xml file or whatever, but I need
the JSP tag to be able to ask the servlet container.

Your advice would be appreciated.

C
Roedy Green - 19 Oct 2005 10:05 GMT
On 18 Oct 2005 05:42:05 -0700, junk5@microserf.org.uk wrote or quoted

>I am writing a custom JSP tag and I need to be able to determine how
>the servlet container is configured. Specifically, I want to be able to
>do things like get a list of the port numbers in use and which schemes
>they are using (e.g. HTTPS on port 8443).
>
>Is this possible?

Generally that sort of stuff is considered none of your business and
Java does not give you hooks to find it.  I take it you have looked.

This leaves you next studying the native API looking for some C++
access to what you want. Then you can build some JNI glue to get what
you want.

See http://mindprod.com/jgloss/jni.html
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.