POJO invoker is designated to invoke the method of Plain Old Java™ Object.
public class Asset { public String[] execute(String input){ return input; } }
<POJO id="assert" beanName="com.ibm.btt.ut.Asset" method="getCount"> <parameters> <parameter id="input" type="java.lang.String" /> </parameters> </POJO>
where beanName and method stand for the POJO's class and method. The parameter name input with String type is also defined.
InvokerFactory ivf = new InvokerFactory("jar:///com/ibm/btt/invoker/ut/invoker.xml"); inv = ivf.createInvoker("asset"); result = inv.execute(new Object[]{ “test input”});