title: Injection variable to websocket annotation @ServerEndpoint("/myVar")
body: <p>I have chat which mapping to static URL. I need get the opportunity creating rooms for user. </p>
  
  <p>How to inject variable in annotation  <code>@ServerEndpoint("/myVariable")</code> when app already running?</p>
  
  <pre><code>class SomeClass{
      public void createRoom(User user) {
          String name = user.getName();
          //...Somehow inject name to annotation @ServerEndpoint("/name")...
      }
  }
  
  @ServerEndpoint("/chat") //May be replace to @ServerEndpoint(someGetteUserName())
  public class ChatEndpoint {
      @OnMessage
      public void message(String message, Session client)
              throws IOException, EncodeException {
  
          for (Session peer : client.getOpenSessions()) {
              peer.getBasicRemote().sendText(message);
          }
      }
  }
  </code></pre>
  
  <p>I don't use Spring this is clear websocket and Glassfish.</p>
  
  <p>Help me create implementation variable injection to annotation. Thank You.</p>