@Override protected String doResolveRoutingKey(CommandMessage<?> command) { String routingKey; try { routingKey = findIdentifier(command); } catch (InvocationTargetException e) { throw new AxonConfigurationException( "An exception occurred while extracting routing information form a command", e ); } catch (IllegalAccessException e) { throw new AxonConfigurationException( "The current security context does not allow extraction of routing information from the given command.", e ); } return routingKey; }
@Override protected String doResolveRoutingKey(CommandMessage<?> command) { Object aggregateIdentifier; try { aggregateIdentifier = findIdentifier(command); } catch (InvocationTargetException e) { throw new AxonConfigurationException("An exception occurred while extracting aggregate " + "information form a command", e); } catch (IllegalAccessException e) { throw new AxonConfigurationException("The current security context does not allow extraction of " + "aggregate information from the given command.", e); } return aggregateIdentifier != null ? aggregateIdentifier.toString() : null; }
@Override protected String doResolveRoutingKey(CommandMessage<?> command) { String aggregateIdentifier; try { aggregateIdentifier = findIdentifier(command); } catch (InvocationTargetException e) { throw new AxonConfigurationException("An exception occurred while extracting aggregate " + "information form a command", e); } catch (IllegalAccessException e) { throw new AxonConfigurationException("The current security context does not allow extraction of " + "aggregate information from the given command.", e); } return aggregateIdentifier; }
@Override protected String doResolveRoutingKey(CommandMessage<?> command) { String routingKey; try { routingKey = findIdentifier(command); } catch (InvocationTargetException e) { throw new AxonConfigurationException( "An exception occurred while extracting routing information form a command", e ); } catch (IllegalAccessException e) { throw new AxonConfigurationException( "The current security context does not allow extraction of routing information from the given command.", e ); } return routingKey; }