Skip to content

Commit

Permalink
fix auto configure server bug due to refactoring of save node code
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed May 22, 2012
1 parent ee5f838 commit 0ef4799
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -342,7 +342,9 @@ protected void autoConfigRegistrationServer() {
&& parameterService.is(ParameterConstants.AUTO_INSERT_REG_SVR_IF_NOT_FOUND, false)) {
log.info("Inserting rows for node, security, identity and group for registration server");
String nodeId = parameterService.getExternalId();
nodeService.save(new Node(parameterService, symmetricDialect));
node = new Node(parameterService, symmetricDialect);
node.setNodeId(node.getExternalId());
nodeService.save(node);
nodeService.insertNodeIdentity(nodeId);
node = nodeService.findIdentity();
nodeService.insertNodeGroup(node.getNodeGroupId(), null);
Expand Down

0 comments on commit 0ef4799

Please sign in to comment.