Context Parameter with remote port

 

Please check the port  with linux Terminal

 

Context parameters

public class Main {

    public static void main(String[] args) throws Exception {        
        InitialContext ctx = new InitialContext();      
        CalculatorRemote bean = (CalculatorRemote) ctx.lookup("java:global/TestEAR/TEjb/Calc!com.CalcRemote");
        bean.sayHello("java.someload.com");
    }
}