1. Make sure the Scheduler is running in the Master mode, in other words is listenning for connections (see Tools/Options menu) 2. Change String serial = new String("00000-00000") to String serial = new String("") It looks like you are playing with an old sample. Please check out latest updated samples. : Hi, : I am trying to connect to the 24x7 scheduler using the java interface remote : controller classes. I tried to follow the examples but still can't connect. : Steps: 1: Start Scheduler. : Setting in tools\options\network : * Port/Service :10099 : * Location: 127.0.0.1 : Setting in tools\options\service : * Service Mode: Normal : * (I always have it running as an NT service) : The java code I use to try and connect is (from example) : JDPB_Connection myConnection = null; : jdpb_24x7 myRemoteControl = null; : Integer portNo = new Integer(10099); : String hostName = new String("127.0.0.1"); : String userID = new String("gmacari"); : String userPass = new String("cardbase8"); : String serial = new String("00000-00000"); : String connectString = new String(""); : myConnection = new JDPB_Connection(); : try { : myConnection.connect(hostName,portNo.intValue(), userID,serial, : connectString); : }catch(java.lang.Throwable e) : { : //FAIL WITH MESSAGE "Connection refused" : System.out.println( "Exception: " + e.getMessage() ); : } // end catch : Questions: 1 Is the userId and password my network userId and password ? : 2 Why do I pass an empty connectionString, what about the password? : thanks, : Gerardo
|