cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Message server port

Former Member
0 Kudos

Dear Experts

1)How can i get Messageserver port and Messagege server host in development.

Plz send a code snippet.(Belonging to sap j2eeengine)

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can use the following code:

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

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

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

thanks & regards,

Manoj

Former Member
0 Kudos

Manoj

host name is ok.

I want portno of j2ee engine in NWDS(like 3900)(when u open j2ee engine in NWDS there we can get one msg portNo ,that i want)

Thanks for ur reply.

Former Member
0 Kudos

hi,

I got you and sorry for the wrong reply. I don't have any idea about how to get the port number of MessageServer and EnqueueServer

Regards,

Manoj

Answers (1)

Answers (1)

former_member193726
Active Participant
0 Kudos

Hi Gurram,

Try opening the default portal page.

http://<hostname>:<portno>/index.html

Click System Information. Give user id and pssword if it requests for one.

You will find the message server's host and port from here.

Regards,

Rekha Malavathu

Former Member
0 Kudos

Rekha

I want the portno through the coding in NWDS.

I think ur not understanding my question.