@Override public void onConnectionInit(Event event) { Connection conn = event.getConnection(); Session ssn = conn.session(); Sender snd = ssn.sender("sender"); conn.open(); ssn.open(); snd.open(); }
@Override public void onUnhandled(Event event) { if (TRACE_LOGGER.isLoggable(Level.FINE)) { TRACE_LOGGER.log( Level.FINE, "Connection.onUnhandled: name[" + event.getConnection().getHostname() + "] : event[" + event + "]"); } super.onUnhandled(event); }
@Override public void onConnectionRemoteOpen(Event event) { super.onConnectionRemoteOpen(event); event.getConnection().open(); }