Calling BTT Operations

BTT provides BTT operation step adaptor to wrap the invocation of operation step. You can call the operations by POJO invoker or EJB invoker. POJO invoker is used when the business layer and presentation layer are deployed in the same machine, while EJB invoker is for the distributed environment. The only difference between them is the BTT invoker configuration file.
  • Calling BTT Operations by POJO invoker:

    The invoker configuration file is as follows:

    <?xml version="1.0"  encoding="UTF-8"?>
    <btt_root>
    		<rule>
    			<property name="POJO" value="com.ibm.btt.invoker.pojo.POJOInvoker" />
    			<property name="EJB" value="com.ibm.btt.invoker.ejb.EJBInvoker" />
    			<property name="WSProxy" value="com.ibm.btt.invoker.ws.WSProxyInvoker" />
    			<property name="InvokerParameters" value="com.ibm.btt.invoker.InvokerParametersImpl" />
    		</rule>
    
    		<defaults>
    			<property name="JMSlocation" value="http://localhost:1209" />
    			<property name="EJBlocation" value="iiop://localhost:2809" />
    			<property name="timeout" value="60000" />
    		<defaults>
    
    		<invoker id=".*" type="POJO">
    			<parameters>
    				<parameter name="params" type="java.util.Map" />
    			</parameters>
    			<properties>
    				<property name="beanName" value="com.ibm.btt.server.bean.OpStepAdaptor" />
    				<property name="method" value="execute" />
    			</properties>
    		</invoker>
    </btt_root>
  • Calling BTT Operations by EJB invoker:

    If you want to use the EJB invoker, you need to deploy the EJB jar file to your ear file and define the invoker configuration file as follows:

    <?xml version="1.0"  encoding="UTF-8"?>
    <btt_root>
    		<rule>
    			<property name="POJO" value="com.ibm.btt.invoker.pojo.POJOInvoker" />
    			<property name="EJB" value="com.ibm.btt.invoker.ejb.EJBInvoker" />
    			<property name="WSProxy" value="com.ibm.btt.invoker.ws.WSProxyInvoker" />
    			<property name="InvokerParameters" value="com.ibm.btt.invoker.InvokerParametersImpl" />
    		</rule>
    
    		<defaults>
    			<property name="JMSlocation" value="http://localhost:1209" />
    			<property name="EJBlocation" value="iiop://localhost:2809" />
    			<property name="timeout" value="60000" />
    		<defaults>
    
    		<invoker id=".*" type="EJB">
    			<parameters>
    				<parameter name="params" type="java.util.Map" />
    			</parameters>
    			<properties>
    				<property name="JNDIName" value="ejb/com/ibm/btt/server/bean/ejb/OpStepAdaptorEJBHome" />
    				<property name="homeClass" value="com.ibm.btt.server.bean.ejb.OpStepAdaptorEJBHome" />
    				<property name="isLocal" value="false" />
    				<property name="beanName" 	value="com.ibm.btt.server.bean.ejb.OpStepAdaptorEJB" />
    				<property name="method" value="execute" />
    			</properties>
    		</invoker>
    </btt_root>
Note: BTT invoker supports using regular expression to define match criteria.