Runtime components : Channels components : Mobile Channel : Tasks : Configuring the Mobile Channel
  
Configuring the Mobile Channel
To develop the UNICOM® Digital Transformation Toolkit (UDTT™) server application and eRCP application based on the UDTT Mobile Channel, you need to configure both the client side, and the server side.
See
Configuring the client side
Configuring the server side
See also
Tasks
Configuring the client side
Perform the following steps to configure the client side:
1 Add the bttmobile.jar to the client eRCP application classpath, which includes the interface DataAdapter and implements MobileAdapter.
2 Configure bttmobile.properties as follows:
# For example
#url=http://localhost:9081/MobileServerRCS/mobile
url=http://<serverip>:<port>/<your BTT application context>/<mobileservlet>
3 Add bttmobile.properties to the eRCP application classpath.
See also
Configuring the Mobile Channel
Configuring the server side
Perform the following steps to configure the server side:
1 Add bttcore.jar (UDTT core component) and bttchannel.jar (UDTT mobile channel component) into the UDTT server application classpath.
2 Configure btt.xml to setup Mobile Channel settings:
<kColl id="channelHandlers">
<field id="initializer"
value="com.ibm.btt.channel.ChannelInitializer" />
<!--
BTT provides BTT mobile channels implementation
The configuration parameters:
1) requestHandler: BTT mobile request handler
2) presentationHandler: BTT mobile presentation handler
3) startUpOp : the start up operation to create session context, user needs provide this operation:
-->
<kColl id="mobile">
<field id="requestHandler" value="com.ibm.btt.mobile.MobileRequestHandler" />
<field id="presentationHandler" value="com.ibm.btt.mobile.MobilePresentationHandler" />
<field id="startUpOp" value="CreateSessionOperation" />
</kColl>
</kColl>
3 Configure btt.xml to setup bean collection settings which are used as parameter of Mobile Channel invocation.
<kColl id="data">
<field id="extFile" value="data.xml" />
<field id="initializer"
value="com.ibm.btt.base.DataInitializer" />
<field id="extPrimitive" value="com.ibm.btt.bean.BeanUtils" />
<kColl id="classTable">
<field id="field" value="com.ibm.btt.base.DataField" />
<field id="kColl" value="com.ibm.btt.base.KeyedCollection" description="compound" />

<field id="iColl" value="com.ibm.btt.base.IndexedCollection"
description="compound" />
<field id="bColl" value="com.ibm.btt.bean.BeanCollection"
description="compound" />
<field id="operDef" value="com.ibm.btt.base.OperField" />
<field id="refData" />
</kColl>
</kColl>
4 Configure web.xml to enable MobileRequestServlet.
<servlet>
<servlet-name>MobileServlet</servlet-name>
<servlet-class>com.ibm.btt.mobile.MobileRequestServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MobileServlet</servlet-name>
<url-pattern>/mobile</url-pattern>
</servlet-mapping>
See also
Configuring the Mobile Channel