Can any one help me to get primary port number of the server,here in java service i tried with int intCurrentPort = com.wm.app.b2b.server.ServerAPI.getCurrentPort(); with single code line in java service,this is giving as a “-1” in runtime,if i run the java service from developer it is giving correct port number,but it is not giving correct port number at runtime giving as a -1 in the output.
can any one help me to get the primary port number at runtime.
//and put the values on pipeline
IDataCursor pipelineCursor= pipeline.getCursor();
Enumeration enum = props.propertyNames();
for (; enum.hasMoreElements(); ) {
// Get property name
String propName = (String)enum.nextElement();
// Get property value
String propValue = (String)props.get(propName);
IDataUtil.put( pipelineCursor, propName, propValue);
}