Forums » Union Coders »
Fridge Demo - How to setup the Java(server side)?
Added by Niel Smith 605 days ago
Hi,
my server is running local with the ip 192.168.178.x and I got all examples working except the ones which uses the server side modules like the fridgemagnet example.
I dont know exacly where to put the FridgeMagnetsRoomModule.java. I guess it must be somewhere near the union server...
Flash gives out this:
6/9/10 15:33:42.169 UTC+2 INFO: [ROOM_MANAGER] Room creation result for room [fridgemagnets]: ERROR
6/9/10 15:33:42.172 UTC+2 INFO: [ROOM id: fridgemagnets] Dereferencing resources.
6/9/10 15:33:42.174 UTC+2 INFO: [ROOM id: fridgemagnets] Shutdown complete.
6/9/10 15:33:42.175 UTC+2 INFO: [ROOM_MANAGER] Join result for room [fridgemagnets]: ROOM_NOT_FOUND
I also set up the union.xml with the module like this.
<module>
<id>FridgeMagnetsRoomModule</id>
<source type="class">FridgeMagnetsRoomModule</source>
</module>
Any help? Thanks in advance.
Replies
RE: Fridge Demo - How to setup the Java(server side)? - Added by derek clayton 603 days ago
Hi Neil,
You have to compile the FridgeMagnetsRoomModule.java file first. This will produce a .class file. Then the easiest way to deploy the class is to create a jar file and place the jar file into the modules directory.
You can see an example at: http://www.unionplatform.com/?page_id=11&page=5
Regards,
Derek