可以公开 IMSInteractionSpec 属性以进行输出。目前,可以公开的输出属性只有 asyncOutputAvailable、convEnded 和 mapName。要给出输出的这些 IMSInteractionSpec 属性,必须创建新的输出类并修改 J2C Java™ bean 的接口文件和实现文件才能在应用程序中使用。
要公开所有 IMSInteractionSpec 属性以进行输出,请完成下列步骤:
package sample.ims; /** * @generated */ public interface PB { /** * @generated */ public sample.ims.WrapperBean runPB(sample.ims.INPUTMSG arg, int myCommitMode, int myExecutionTimeout, int myImsRequestType, int myInteractionVerb, String myLtermName, String myMapName, boolean myPurgeAsyncOutput, boolean myReRoute, String myReRouteName, int mySocketTimeout, String myUserName, String myPassword, String myGroupName, String myClientID ) throws javax.resource.ResourceException; }
public class WrapperBean implements Serializable {
private OUTPUTMSG output;
private boolean convEnded; private boolean asyncOutputAvailable; private String mapName;
public OUTPUTMSG getOutput(){ return output; } public boolean getConvEnded(){ return convEnded; } public boolean getAsyncOutputAvailable(){ return asyncOutputAvailable; } public String getMapName(){ return mapName; } public void setOutput(OUTPUTMSG output){ this.output = output; } public void setAsyncOutputAvailable(boolean asyncOutputAvailable){ this.asyncOutputAvailable = asyncOutputAvailable; } public void setConvEnded(boolean convEnded){ this.convEnded = convEnded; } public void setMapName(String mapName){ this.mapName = mapName; }
public sample.ims.WrapperBean runBP(INPUTMSG arg) throws javax.resource.ResourceException;
public sample.ims.WrapperBean runBP(INPUTMSG arg) throws javax.resource.ResourceException {
/** * @j2c.interactionSpec class="com.ibm.connector2.ims.ico.IMSInteractionSpec" * @j2c.interactionSpec-property name="commitMode" argumentBinding="myCommitMode" * @j2c.interactionSpec-property name="executionTimeout" argumentBinding="myExecutionTimeout" * @j2c.interactionSpec-property name="imsRequestType" argumentBinding="myImsRequestType" * @j2c.interactionSpec-property name="interactionVerb" argumentBinding="myInteractionVerb" * @j2c.interactionSpec-property name="ltermName" argumentBinding="myLtermName" * @j2c.interactionSpec-property name="mapName" argumentBinding="myMapName" * @j2c.interactionSpec-property name="purgeAsyncOutput" argumentBinding="myPurgeAsyncOutput" * @j2c.interactionSpec-property name="reRoute" argumentBinding="myReRoute" * @j2c.interactionSpec-property name="reRouteName" argumentBinding="myReRouteName" * @j2c.interactionSpec-property name="socketTimeout" argumentBinding="mySocketTimeout" * @j2c.interactionSpec-returnProperty * name="convEnded" * outputBinding="convEnded" * @j2c.interactionSpec-returnProperty * name="asyncOutputAvailable" * outputBinding="asyncOutputAvailable" * @j2c.interactionSpec-returnProperty * name="mapName" * outputBinding="mapName" * * @j2c.connectionSpec class="com.ibm.connector2.ims.ico.IMSConnectionSpec" * @j2c.connectionSpec-property name="userName" argumentBinding="myUserName" * @j2c.connectionSpec-property name="password" argumentBinding="myPassword" * @j2c.connectionSpec-property name="groupName" argumentBinding="myGroupName" * @j2c.connectionSpec-property name="clientID" argumentBinding="myClientID" * * @generated */