WebSphere Application Server Network Deployment, Version 6.0.x     Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

Disabling flush-before-find

Why and when to perform this task

On container managed persistence (CMP) beans in an Enterprise JavaBeans (EJB) version 2.0 module marked with the designated disable flush before find flag, no flush is performed when your application invokes application specific finder methods.

You can set the flag in one of two ways, either by editing the deployment descriptor or by including the setting in your application code.

Steps for this task

  1. Set the flag by editing the EJB deployment descriptor. Use any standard Java 2, Enterprise Edition (J2EE) tooling such as Rational Application Developer.
    1. Start the tool.
    2. Select the EJB deployment descriptor of the bean you want to work with.
    3. Select EJB environment entries.
    4. Enter com/ibm.websphere/ejbcontainer/disableFlushBeforeFind This name is type java.lang.Boolean. Set True to disable flush-before-find, False to enable default behavior
    5. Save your changes.
  2. Set the flag in your application code. The EJB implementation class can (directly or indirectly) implement a WebSphere-specific marker interface.
    1. Insert com.ibm.websphere.ejbcontainer.DisableFlushBeforeFind into the appropriate part of your code.
    2. Save your changes.



Related tasks
tatk_edit_deploymentdesc.html

Task topic    

Terms of Use | Feedback

Last updated: Mar 17, 2005 4:28:29 AM CST
http://publib.boulder.ibm.com/infocenter/ws60help/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/tdat_disflush.html

© Copyright IBM Corporation 2005. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)