WebLogic Server 7.0 Code Examples, BEA Systems, Inc.

examples.wtc.atmi.convsimp
Interface TuxedoConversation

All Superinterfaces:
javax.ejb.EJBObject, java.rmi.Remote

public interface TuxedoConversation
extends javax.ejb.EJBObject

The methods in this interface are the public face of the simpapp client. The signatures of the methods are identical to those of the EJBean, except that these methods throw a java.rmi.RemoteException. Note that the EJBean does not implement this interface. The corresponding code-generated EJBObject, ToupperBeanE, implements this interface and delegates to the bean.

Author:
Copyright (c) 1998-2002 by BEA Systems, Inc. All Rights Reserved.

Method Summary
 void conversation(int datasize, int iterations)
          This implements a conversation back and forth to a Tuxedo conversational service.
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

conversation

public void conversation(int datasize,
                         int iterations)
                  throws weblogic.wtc.jatmi.TPException,
                         java.rmi.RemoteException
This implements a conversation back and forth to a Tuxedo conversational service. The conversation does two send and receive loops, starting with a send loop (unless there is only one iteration, since the first data gets sent in the tpconnect call). After the conversation has finished, the method returns.

This method uses TypedCArray data to send, and checks that the output data from tprecv matches the input data sent by tpsend.

Parameters:
datasize - The amount of data to send to the remote conversation
iterations - The number of tpsend/tprecvs to do
Throws:
weblogic.wtc.jatmi.TPException - if something bad happens during the course of the conversation

Documentation is available at
http://e-docs.bea.com/wls/docs70

Copyright © 2002 BEA Systems, Inc. All Rights Reserved.