consumerRegistry.setFederatingPortletInvoker(federatingPortletInvoker);
consumerRegistry.setSessionEventBroadcaster(new SimpleSessionEventBroadcaster());
consumerRegistry.start();
// set up a NullInvokerHandler so that when a remote producer is queried, we can start it if needed
ActivatingNullInvokerHandler handler = new ActivatingNullInvokerHandler();
handler.setConsumerRegistry(consumerRegistry);
federatingPortletInvoker.setNullInvokerHandler(handler);
}
catch (Exception e)
{
throw new RuntimeException("Couldn't start WSRP consumers registry.", e);