> Are your sure that you imlemented equals correctly?  

Pretty sure:

public class Queue
  implements java.io.Serializable
{
  static final long serialVersionUID = 554203L;  

  private java.util.LinkedList list = 
    new java.util.LinkedList();
  
  // some methods...
  
  public boolean equals(Object that)
  {
    return that instanceof Queue 
      && ((Queue) that).list.equals(list);
  }

  public int hashCode()
  {
    return list.hashCode();
  }
}


My jbosscmp-jdbc.xml:
<jbosscmp-jdbc>
  <defaults>
    <create-table>true</create-table>
    <remove-table>true</remove-table>
    <read-only>false</read-only>
    <pk-constraint>true</pk-constraint>
    <read-ahead>true</read-ahead>
  </defaults>
</jbosscmp-jdbc>


In my jboss.xml, the configuration-name for the bean 
containing the queue field is "Standard CMP 2.x 
EntityBean".

In my ejb-jar.xml the field is listed along with other 
fields within a bean as: 
<cmp-field>
  <field-name>input</field-name>
</cmp-field>


--
Eric Jain

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to