mediator

WSO2 ESB - writing files out of base64

拥有回忆 提交于 2019-12-02 05:08:11
I have a proxy which accepts XML files with Base64 encoded files in it. For example the XML looks like: <message> <content>Hello World</content> <attachements> <attachement>*Base64 code here*</attachement> <attachement>*Base64 code here*</attachement> <attachement>*Base64 code here*</attachement> </attachements> </message> My Problem: I like to save the decoded files from the message into a folder of the filesystem of the server running the ESB. But how can I do this? If I encode a simple text like "Hello World" with Base64 I can decode it with an Script Mediator and Javascript, but how can I

Difference between Facade and Mediator Design pattern?

你离开我真会死。 提交于 2019-12-01 07:07:39
问题 What is the difference between facade and mediator design pattern. I want understand which design pattern to choose between these two in which scenario. I was going through the following links and found both same in terms of use case. Facade design pattern : http://www.tutorialspoint.com/design_pattern/facade_pattern.htm Mediator design pattern : http://www.java2s.com/Tutorial/Java/0460__Design-Pattern/CoordinatingYourObjectswiththeMediatorPatterns.htm I have confusion in following code

wso2 ESB : Split / Gather Pattern - Single Response

允我心安 提交于 2019-11-30 15:28:42
问题 This is not a question but rather an answer . I am quite new to wso2 ESB and wanted to make a test run implementing the split/gather EIP as part of a POC. I followed the examples I found and immediately got a working config that returned a single response. However to get all the responses back took quite some amount of time to figure out. Most given samples seemed to create the same unexpected result. I hope that if you run into the same kind of problem these lines will be helpfull to you.

wso2 ESB : Split / Gather Pattern - Single Response

萝らか妹 提交于 2019-11-30 14:31:09
This is not a question but rather an answer . I am quite new to wso2 ESB and wanted to make a test run implementing the split/gather EIP as part of a POC. I followed the examples I found and immediately got a working config that returned a single response. However to get all the responses back took quite some amount of time to figure out. Most given samples seemed to create the same unexpected result. I hope that if you run into the same kind of problem these lines will be helpfull to you. Setup I used the soapUI sample service (search operation) as service backend. I sent a combined message

MVVM Light Toolkit - Messenger uses Event Aggregator or Mediator Pattern?

时光怂恿深爱的人放手 提交于 2019-11-30 14:19:25
问题 Can someone please help me sought out if I/Messenger class (and implementation) from MVVM light toolkit demonstrates usage of Event Aggregator Pattern or Mediator Pattern? If someone proposes that it is following partially both the patterns then I request details of which part of implementation resembles which pattern to keep the answer valid. Ref: One comparison between the two pattern, which is absolutely interesting. 回答1: I think the Messenger isn't a pure Event Aggregator nor a pure

WSO2 ESB DBLookup mediator query multiple rows

*爱你&永不变心* 提交于 2019-11-30 14:03:47
As it says in the documentation of the DBLookup Mediator it only returns the first row of the query, the other results if they are, were ignored. I want to know if there is a "best way" to run a query (SELECT * FROM X) that return multiple records and then process them. Now a days we are doing that implementing axis2 services but there is another way using a combination of the mediators provided by wso2 esb to accomplished that requirement?? Thanks in advance. Santiago. Yes DBlookup mediator will not return multiple rows. You can use two alternatives. 1) Use WSO2 Data services Server to create

MVVM Light Toolkit - Messenger uses Event Aggregator or Mediator Pattern?

折月煮酒 提交于 2019-11-30 10:15:35
Can someone please help me sought out if I/Messenger class (and implementation) from MVVM light toolkit demonstrates usage of Event Aggregator Pattern or Mediator Pattern ? If someone proposes that it is following partially both the patterns then I request details of which part of implementation resembles which pattern to keep the answer valid. Ref: One comparison between the two pattern, which is absolutely interesting. I think the Messenger isn't a pure Event Aggregator nor a pure Mediator . If I where to choose between one of them I'd go for the Mediator . Lets do a little comparison.

Good pattern to use for multiple xmlhttprequests used by different processes

馋奶兔 提交于 2019-11-28 11:15:07
问题 I wonder what is a good pattern to use when you could have multiple xmlhttprequests that are part of different processes like (check login, fetch tooltip and display, show sub records/open details). Your input on my code so far is more than welcome so are some good articles for reference on asynchronyous handling of processes. Here is what I got so far trying to use a mediator and trying to define a sequence of events to be triggered by the mediator and initiated by a worker for a certain

Façade vs. Mediator

一笑奈何 提交于 2019-11-28 02:56:49
I've been researching the difference between these two patterns. I understand that facade encapsulates access to a sub system and mediator encapsulates the interactions between components. I understand that sub system components are not aware of the facade, where as components are obviously aware of the mediator. I'm currently using a facade for encapsulating the method of retrieving configuration information, e.g. App.Config, user setting stored in SQL, Assembly info, etc, and a mediator for navigation between different windows forms. However, most sites point out that the mediator “adds

global communication in angular module: event bus or mediator pattern/service

可紊 提交于 2019-11-27 18:38:07
So far I have seen many solutions of the problem. The simplest one is, of course, to $emit an event in $rootScope as an event bus e.g. ( https://github.com/btilford/anti-patterns/blob/master/angular/Angular.md ) angular.module('myModule').directive('directiveA', function($rootScope) { return { link : function($scope, $element) { $element.on('click', function(event) { $rootScope.$emit('directiveA:clicked', event); }); } } }); angular.module('myModule').directive('directiveB', function() { return { link : function($scope, $element) { $rootScope.on('directiveA:clicked', function(event) { console