(Sidenote: Active Versus webMethods)
The good news is that while the main solution structure for EAI is as elusive today as it was back when people started building ETL systems, the webMethods pipeline structures are extremely time efficient to construct and use. For example, here are three different techniques to create ten thousand simple fields for a document type (and an old active BrokerEvent). I used ten thousand as an arbitrarily large number that is way beyond good taste. I built a java class to create the BrokerEvent, a java service in wM developer to do the same thing with a document type, and a flow service that again builds a document type. The timing results were then reported back to me using an appropriate mechanism.
Here is the java class code for the old BrokerEvent:
import COM.activesw.API.client.BrokerEvent;
public class BrokerEventCreateTime extends Object {
public static void main(String[] arguments) {
try {
long startTime = (new java.util.Date()).getTime();
BrokerEvent event = new BrokerEvent(null,“sw::simpleTimingTest”);
for (int index = 0; index < 10000;index++) {
event.setStringField(“values” + index,“” + index);
}
long endTime = (new java.util.Date()).getTime();
System.out.println(“total time to process was " + (endTime - startTime) + " milliseconds”);
} catch (Exception exception) {
exception.printStackTrace();
}
}
}
And the wM developer java service code:
IDataCursor cursor = pipeline.getCursor();
long startTime = (new java.util.Date()).getTime();
for (int index = 0; index < 10000;index++) {
cursor.insertAfter(“values” + index,“” + index);
}
long endTime = (new java.util.Date()).getTime();
cursor.insertAfter("total time to process was “, “” + (endTime - startTime) + " milliseconds”);
cursor.destroy();
And the flow service
The flow service was a two step flow with a repeat 10000 on success, and an append $retries to value[].
The timing results:
java class for BrokerEvent: 6 seconds
flow service: 2 seconds
java service: 30 milliseconds
Regardless of the tractability of the solution (which doesn’t change no matter what EAI or B2B tool you are using), webMethods does have some advantages over the old ActiveWorks tools. Of course, a real discussion of the advantages and disadvantages of each, while fun, would be well beyond the scope of this thread.
Enough! This post obviously isn’t the final word on this subject, in fact, it is a starting point, and seven pages is more than enough to start. Please, feel free to disagree with me, replies and retorts are always welcome: that is how we all learn!
-greg