Java Reference
In-Depth Information
//Get object for accessing EIS functions
javax.resource.cci.Interaction interaction
=ctx.createInteraction();
//Get record factory
javax.resource.cci.RecordFactory rfact =
cf.getRecordFactory();
javax.resource.cci.IndexedRecord input
=rfact.createIndexedRecord("<recordName>");
javax.resource.cci.IndexedRecord output
=rfact.createIndexedRecord("<recordName>");
//Look up a preconfigured InteractionSpec
javax.resource.cci.InteractionSpec interSp =
... ;
interaction.execute(interSp, input, output);
int index_of_element = ...;//index of element
to return
System.out.println("The result :
"+output.get(index_of_element));
//close
interaction.close();
ctx.close();
} catch (Exception ex) {
ex.printStackTrace();
}
Latest improvements
Talking about novelty, the Java EE Connector Architecture 1.7 was slightly improved.
Indeed, in this specification, it is more a matter of clarification and requirements
statements. That said, JCA 1.7 has introduced the following changes:
• It insists on the availability of the the application component environment
namespace of the endpoint to the resource adapter when the end-
pointActivation and endpointDeactivation methods are called
Search WWH ::




Custom Search