WebSphere brand IBM WebSphere Telecom Web Services Server, Version 7.1

Sample code to allow Web service implementations to interact with the JCA adapter

Use this sample code to get the Web service implementation layer to interact with the JCA adapter.

// Create a BaseConnectionSpec object by providing the NE related details
BaseConnectionSpec spec = createConnectionSpec(/*<An object which carries data related to NE connection information>*/);

// Create a BaseInteractionSpec object & set the function name
BaseInteractionSpec ispec = new  BaseInteractionSpec();
ispec.setFunctionName("SendMessage");

// Retrieve the InitialContext
InitialContext ic = new InitialContext();

// Create a Connection Factory
connectionFactory = (ConnectionFactory)ic
				.lookup("java:comp/env/eis/SMPP_CF");

// Retrieve the Connection object
Connection cx = connectionFactory.getConnection(spec);

// Create an Interaction object
Interaction ix = cx.createInteraction() ;

// Create the JCA Record object corresponding to JCA Function Name

// Call the execute method in the Interaction object
ix.execute(ispec, /*<created JCA Record&gt;*/);



Terms of use
(C) Copyright IBM Corporation 2009. All Rights Reserved.