When you package your task as a J2EE session EJB, the task name is given to a method which performs the task when invoked. The Attachmate EJB interface contains one method per task in each task file for which an EJB is generated.
To integrate your J2EE session EJB with an application |
---|
|
In this example, you set task inputs, execute the task, and get task outputs.
//create inputs object, define outputs variable AccountQueryStateful.AccountLookupTaskInput.IMSInputs si= new AccountQueryStateful.AccountLookupTaskInput.IMSInputs(); AccountQueryStateful.AccountLookupTaskOutput.IMSOutputs so = null; // set task input(s) si.setAccountNumber(AccountNumber); // execute task with inputs and collect outputs so = ejb.AccountLookupTask(si); // get task output(s) Balance = so.getBalance();
![]() |