Created
February 10, 2015 14:45
-
-
Save abhirockzz/13056476986853eb81b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void onMsg(@Observes String msg) { | |
//different WS enpoint instance - notice the hash code value in the server log | |
System.out.println("WS End point class ID -- " + this.hashCode()); | |
try { | |
client.getBasicRemote().sendText(msg); | |
} catch (IOException ex) { | |
Logger.getLogger(ServerEndpoint.class.getName()).log(Level.SEVERE, null, ex); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment