Le 18/03/15 13:35, Abeer Al-Anazi a écrit :
> Thanks Emmanuel Lécharny.
> I suspend writing the value until I get the value, but also it has null
> value
> @Override
> public void sessionOpened(final IoSession session) throws Exception
> {
> ScheduledThreadPoolExecutor exec = new
> ScheduledThreadPoolExecutor(1);
> exec.scheduleAtFixedRate(new Runnable() {
> public void run()
> {
>
> System.out.println(SwitchId);
> session.write(SwitchId);
> }
> }, 30, 30, TimeUnit.SECONDS);
> }
>
Again, the code you provided does not tell me anything about where the
switchId is initialized. How can I possibly tell you what's going on ?