I'm using EntityBean BMP. I'm running a sample code that performs the following steps:
1. retrieve a particular instance of an EntityBean using the findByPrimaryKey method 2. call the get method of an attribute on that retrieved object 3. some instructions after I try to retrieve again the same EntityBean, so using the same primary key values as before Logging all the methods I found the following behaviour, corresponding to the previous points: 1. call the findByPrimaryKey call the ejbFindByPrimaryKey 2. call the ejbLoad call the get method of the desired attribute 3. call again the ejbFindByPrimaryKey (EVEN IF Jboss has already previously loaded the requested EntityBean) No differences I found moving from JBoss 3.2.8 to the last 4.0.4.GA. Running the same code under Websphere, for instance, no ejbFindByPrimaryKey method is called when I perform the second retrieve of the object (the previous point 3). Is there a configurable property that avoid Jboss to run the ejbFindByPrimaryKey for the second time? Because the ejbFindByPrimaryKey method execute an unuseful Select SQL statement.... Thank in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955402#3955402 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955402 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user