12.5 Best practices

 < Day Day Up > 



12.5 Best practices

Some best practices for J2EE Connector application developers are:

  • Use J2EE Connectors in a managed environment.

    From an application developer's perspective, the greatest benefit of utilizing J2EE Connectors is the Quality of Services (QoS) provided by the system contracts. Choosing the managed environment simplifies the development of scalable, secure, and transactional resource adapters for a wide range of EIS.

  • Minimize the resource adapter-specific calls.

    Do not use the resource adapter-specific calls directly if the function is provided by CCI. Encapsulate resource adapter-specific CCI classes—such as ConnectionSpec, InteractionSpec, or the other resource adapter-specific calls—to make the client application more independent of the resource adapters.

  • Cache the connection factory to minimize JNDI lookups.

    Looking up the naming context and connection factory from JNDI for each interaction can be expensive. You can improve performance by caching the connection factory.



 < Day Day Up > 



Patterns Direct Connections for Intra- And Inter-Enterprise. Direct Connections for Intra- And Inter-Enterprise (IBM Redbook) (Paperback)
Patterns Direct Connections for Intra- And Inter-Enterprise. Direct Connections for Intra- And Inter-Enterprise (IBM Redbook) (Paperback)
ISBN: N/A
EAN: N/A
Year: 2003
Pages: 139

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net