Error handler for MBassador message/event bus -


i'm using mbassador 1.2.1 message/event bus. works well. except getting error message in logs, repeated each of instantiated bus objects:

warn: no error handler configured handle exceptions during publication. error handlers can added instance of abstractpubsubsupport or via busconfiguration. falling console logger.

the main project page shows example line on busconfiguration object:

.addpublicationerrorhandler( new ipublicationerrorhandler{...} ) 

…yet neither ide nor see such method on busconfiguration class.

how should go installing error handler mbassador?

add property when building configuration bus:

    ibusconfiguration config = new busconfiguration()             .addfeature(feature.syncpubsub.default())             .addfeature(feature.asynchronoushandlerinvocation.default())             .addfeature(feature.asynchronousmessagedispatch.default())             .setproperty(properties.common.id, "command channel bus")             .setproperty(properties.handler.publicationerror, new ipublicationerrorhandler() {                 @override                 public void handleerror(publicationerror error) {                  }             }); 

i had exact same issue , solved problem.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -