Hi, I have been trying to get ServerX to work with CGate. (Toolkit, Piced both work OK) I can start up CGate and then the command interface. I can load the project and use the project 'project use prjname' I can then list the 2 networks using NET LIST I can turn ON/OFF lights using ON/OFF 254/56/112 In ServerX, using the CGate command line interface, I can also do PROJECT USE PRJNAME with an OK result When trying to do the above commands ON OFF 'NET LIST', they all fail as it cannot find the network(s). As such, the C-Gate Network Browser list is empty. (Although a 'NET LIST_ALL' does work, a 'NET LIST' fails with --> 132 no networks found ) I can do the following in ServerX ON //PRJNAME/254/56/112 just not ON 254/56/112 Any ideas on why ServerX can access CGate, the Projects but NOT find the Networks? Marty
Hi Marty I have had the same problem so would be interested to here from you if you find out whats wrong. I was going to try to delete all of the demo projects in the toolkit and seeing if that made any difference so there would only be one project in the NET LIST_ALL. But I got carried away with modifying the demo JSP code to send the project name through to cgate so I could at least have the demo pages working, which is due to the same problem. Also the demo code does not send through the application number so I wired that in. Cheers, Mark
Server X is a product from our Malaysian engineering team. They don't tend to hang out on the forums much. Try contacting tech support who can relay any specific issues through to the relevant people.
"Project Use" doesn't stick Hi, From what I can see in the C-Gate logs the ServerX classes make a new connection to C-Gate every time they send a command. The "Project use" command in C-Gate is only effective for the connection in which it is sent - with the effect that when you issue "project use" via the command line web page it doesn't seem to "stick" - the connection to C-Gate is closed immediately after sending the command. As Mark pointed out if you modify the sample.jsp to include your project name and specify the application then it is all good. I guess these pages are only meant to be an example of using the supplied java classes. If I were to build a system based on ServerX I would add a configuration parameter to the web.xml file that specified the project - it is not something that should be exposed to an end-user. Paul
The problem is probably easily solved by setting the default project in the cgate configuration file ("C-GateConfig.txt") project.default=MYPROJ