0 Replies Latest reply on Nov 27, 2002 10:25 PM by Jimmy

    CMP entity bean in JBoss 3.0.4

    Jimmy Newbie

      Hi guys,

      I am new to JBoss and just had a question about container-managed entiry beans. I configure the datasource in JBoss, which is to connect to an Oracle database.

      At first I created a simple session which used the DS to run a simple query and return a list of records from the USERS table. This worked fine.

      Now I created an entity bean and did evoked the findByPrimaryKey() method and looked up a specific user... but I get the following exception:

      javax.ejb.ObjectNotFoundException: No such entity!

      But I know that record exists... so what am I missing here?

      Any help is appreciated.