cancel
Showing results for 
Search instead for 
Did you mean: 

port 50000 ??

Former Member
0 Kudos

Hi!

From where can this information obtained that the port is really

50000?

http://localhost:50000/

regards

sas

Accepted Solutions (1)

Accepted Solutions (1)

sridhar_k2
Active Contributor
0 Kudos

Sas,

You can get your Server url and port number like this.

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

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

wdComponentAPI.getMessageManager().reportSuccess("hostName :"+hostName "port :"port);

Regards,

Sridhar

Former Member
0 Kudos

Hi Sridhar!

Where is the best suitplace place to edit these lines whithin

WebDynpro Project ?

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

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

wdComponentAPI.getMessageManager().reportSuccess("hostName :"+hostName "port :"port);

Former Member
0 Kudos

Do you want to get the port in webdynpro or just want to know the port number of your system.

If you just want to know the port number of your system then it will of the following format 5XX00 where XX is the system number .

You can place the code any where .. you can put it in Wddoinit( )

sridhar_k2
Active Contributor
0 Kudos

Sas,

You can place any where. Best place would be init. So that you can use them every where. You can assign these Server URL and Port No to global variables or context variables.

Regards,

Sridhar

Answers (2)

Answers (2)

former_member193726
Active Participant
0 Kudos

Hi Mr. Sas,

The Standard convention to be followed for checking the J2EE port no. is, 5<instance no.>00. You will know the instance number if you would have installed the WAS setup. Else if you have remote access to the server, you may check the folder name F:\usr\sap\J2E\<JC(instance no.)> to get the instance number.

Hope this helps.

Regards,

Rekha Malavathu

Former Member
0 Kudos

Hello!

TaskBinder is unknown . Whats wrong. Did I forget to import any Java package?

reagards

sas

Former Member
0 Kudos

Hi,

import com.sap.tc.webdynpro.services.task.TaskBinder

Regards

Ayyapparaj