setConnectionFlag(CONNECT_IMMEDIATELY, DEFAULT_CF_CONNECT_IMMEDIATELY);
setConnectionFlag(Flag.STATEFUL, DEFAULT_CF_STATEFUL);
setConnectionProperty(Connection.Property.MODALITY, DEFAULT_CP_CONN_MODALITY);
setConnectionProperty(Connection.Property.MAX_CONNECT_ATTEMPT, DEFAULT_CP_MAX_CONNECT_ATTEMPT);
setConnectionProperty(Connection.Property.PROTOCOL_FACTORY, new DefaultProtocolFactory());
setConnectionProperty(Connection.Property.CONNECTION_FACTORY, new DefaultConnectionFactory());
setHeartbeat(DEFAULT_HEARTBEAT_SEC);
}