Le 18/03/15 18:59, Abeer Al-Anazi a écrit : > the switchId is initialized in a class named superController, then the > superController class call recevieFromSuperController(requiedSwitch) which > is a method in server handler class, and send the switchId to the server > handler because I want to send it to the client
That does not mean the SwitchID value is initialized *before* the session Opened event arrives. Be sure that it is the case. Also you don't say if this variable is a static value. This is your code, we can't magically infer things from what we don't know here. What you just have to understand about MINA is that it's an asynchronous framework, ie you can't assume something will actually hapen at a specific time. In other word, be ready to handle events that can arrive at any moment.
