13.07.2015 Views

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2. Configure each resource adapter and associated connection factory throughthe Admin Console.3. In the application component, perform a JNDI lookup to find thecorresponding connection factory and get the connection.Example 7-12 Accessing data using a JCA connectorjavax.naming.InitialContext ctx = new javax.naming.InitialContext();connectionFactory = (javax.resource.cci.ConnectionFactory)ctx.lookup("java:comp/env/eis/myConnection");// create a connectionconnection = connectionFactory.getConnection();// Create Interaction and an InteractionSpecinteraction = connection.createInteraction();interactionSpec = new InteractionSpec();interactionSpec.setFunctionName("GET");// Create input recordinRec = new javax.resource.cci.Record();// Execute an interactioninteraction.execute(interactionSpec, inRec, outRec);// Process the output...// close the interaction and connectioninteraction.close();connection.close();4. Create an InteractionSpec object from the Connection object.5. Create a Record object for the input / output data used by the functions.6. Execute the functions through the Interaction object, process Record dataand close the connection.7.4 Where to find more informationFor more information on the security aspects of J2EE, see the followingdocuments:► The Java 2 Platform Specification V1.3 at:►►http://java.sun.com/j2ee/docs.htmlThe specifications for JCA (Java Connector Architecture) and JMS (JavaMessage Service) are also available at the previous URL.The W3C Web site hosts most of the Web Services related specifications,recommendations and notices at:http://www.w3c.org.178 <strong>IBM</strong> <strong>WebSphere</strong> <strong>V5.0</strong> <strong>Security</strong> Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!