cancel
Showing results for 
Search instead for 
Did you mean: 

web as system information

premb
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi All,

Do you have any idea how to get the system environment variables for application server programatically in java? I have got the sap web service to get that, but i do not want that as it needs authorization to fetch the info. I need something like

java properties.

Thanks in advance

Prem

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Prem,

Refer to my answer in thread:

/thread/973871 [original link is broken]

add that code to your JSP file.

Regards,

Yogesh...

Former Member
0 Kudos

Hello,

To know about Server, Port, Version , Protocoltype ....

Use following statements..

String hostName = TaskBinder.getCurrentTask().getProtocolAdapter().getServerName();

int port = TaskBinder.getCurrentTask().getProtocolAdapter().getServerPort();

String Version = TaskBinder.getCurrentTask().getProtocolAdapter().getVersion();

ProtocolType protocol = TaskBinder.getCurrentTask().getProtocolAdapter().getProtocolType();

Regards

LakshmiNarayana

premb
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi LakshmiNarayana,

Thanks for your reply. I am looking for simple JSP and not from

webdynpro component. Do you have any idea?

Thanks

Prem