0 Replies Latest reply on Nov 29, 2002 7:53 PM by Jimmy

    CMP 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 evoked the findByPrimaryKey() method and looked up a specific record in the USERS table... 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.