Skip to content

Commit

Permalink
Commented out the message class serialization and left
Browse files Browse the repository at this point in the history
a comment as to why: in 3.1 there is a default service
that automatically does this on clients.
  • Loading branch information
pspeed42 committed Nov 15, 2015
1 parent cea36ff commit 17df399
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -114,7 +114,12 @@ public static String getString(Component owner, String title, String message, St
}

public static void main(String... args) throws Exception {
TestChatServer.initializeClasses();

// Note: in JME 3.1 this is generally unnecessary as the server will
// send a message with all server-registered classes.
// TestChatServer.initializeClasses();
// Leaving the call commented out to be illustrative regarding the
// common old pattern.

// Grab a host string from the user
String s = getString(null, "Host Info", "Enter chat host:", "localhost");
Expand Down

0 comments on commit 17df399

Please sign in to comment.