John Dubchak wrote: >I am using JBoss 2.1 beta with Embedded Tomcat support and have > encountered what appears to be a bug in jBoss. Actually, you've just encountered one of the many confusing things about the EJB spec 8^}) (assisted by the lack of type-safe collections in Java) When you write a BMP finder, you return the keys. This you're doing fine. However, what the container does with the collection of keys is that it uses the keys to find the corresponging entity beans, and _that_ is what is returned to the client! In other words, this code of yours: Iterator iter = c.iterator(); while(iter.hasNext()) { Integer i = (Integer)iter.next(); this.display(i); // Custom method to lookup PK and display row } should be Iterator iter = c.iterator(); while(inter.hasNext()) { TheRemoteInterface anEjb = (TheRemoteInterface)iter.next(); this.disply(anEjb); } The upshot is that your 'display' method doesn't need to do a findByPrimaryKey on the entity. > { > if(conn != null) > try {conn.close();} catch(SQLException e) {} > } You should also close the ResultSet and Statement here. Hope this helped, danch _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user