public void initialize() {
String name = sessInfo.getSessionId().toString();
String username = connInfo.getUserName();
String password = connInfo.getPassword();
int minLargeMessageSize = Integer.MAX_VALUE;
try {
coreSession = server.createSession(name, username, password, minLargeMessageSize, connection, true, false, false, false, null, this, true, connection.getOperationContext(), protocolManager.getPrefixes());
long sessionId = sessInfo.getSessionId().getValue();
if (sessionId == -1) {
this.connection.setAdvisorySession(this);
}
} catch (Exception e) {
ActiveMQServerLogger.LOGGER.error("error init session", e);
}
}