on 12-17-2008 9:29 AM
hi guru,
Is there any method to get the portal Domain and Port .
http://<domain>:<port>/irj/portal
http://<Domain><port>; /irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator.sap.bwc.Transaction?System=NIB_Aliase&SAP_TCode=se80
in our project we are hard coded the Domain and port .
if we transfer the application is some other server again we want to change.
So is there any solution for that.Please help me in this situation
Advance thank's
Regard's
Vivekanathan.S
WDSystemLandscape.getSLDHost() ;
WDSystemLandscape.getSLDPort() ;
[WDSystemLandscape|http://help.sap.com/javadocs/NW04/current/wd/com/sap/tc/webdynpro/services/sal/sl/api/WDSystemLandscape.html]
nikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
import com.sap.tc.webdynpro.services.sal.deployment.api.WDDeployableObjectPart;
import com.sap.tc.webdynpro.services.task.TaskBinder;
WDDeployableObjectPart d = wdComponentAPI.getDeployableObjectPart();
String hostName = TaskBinder.getCurrentTask().getProtocolAdapter().getServerName();
int port = TaskBinder.getCurrentTask().getProtocolAdapter().getServerPort();
* *
With the above code you can get the host name, and port.
If your problem is solved, award me the points.
Thanks,
Srini
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.