title: how do I pass a parameter to the @OnOpen method with JEE7 Websockets,
body: <p>I have this code </p>
  
  <pre><code>@ServerEndpoint(value = "/websocket")
  public class Service {
      private String clientId; 
      @OnOpen
      public void init(Session session) throws IOException {
           //opening a websocket
           // get clientId
           clientId = // Code here to get initialization parameter.
      }
  
  }
  </code></pre>
  
  <p>How do I get initialization parameters from the client opening the socket?.</p>