Ok thank you ... I'm going to transform my CMP entity beans into BMP entity beans. I thought it was possible to keep CMP beans even with complex finders because of the following section in the documentation :

" Finders for CMP Beans
If you want to create additional finders, you have two options.
First, you can declare them in your home interface and then create finder definitions in your JAWS deployment descriptor (see The JAWS Deployment Descriptor). This is suitable for queries that only involve the table your entity bean is stored in : effectively, you can write the WHERE clause of a SQL query, but the FROM clause is fixed.

Second, you can implement the finders yourself, even if the rest of your bean uses CMP. This is best for complex queries that require other tables. Any time you implement a finder yourself (even for the default finders mentioned above), JAWS will use it rather than ignoring it. But you probably don't want to do that unless you really need to."

In fact, I wanted to have more information about this second option because it was exactly what I needed ...

Thanks again ...

Rickard Öberg wrote:

Hi!

Jerome Veillard wrote:
> Sorry, I have already asked this question but I really need an answer
> ... :-)
> I just would like to know where I can find CMP entity bean examples
> running with jBoss in which there are "complex finders".
> On the jBoss site, there is a jBoss test suite and it says that complex
> Finders for CMP are among those tested. But I looked for them in the
> different beans and I didn't find anything ... Is this feature really
> tested in this test suite?
> In fact, I need to know what I have to change exactly in my code in
> order to add a complex finder.

With CMP you cannot have ejb* methods being invoked. It is only possible
to declare the WHERE and ORDER BY clauses of CMP finders. It sounds like
you want to use BMP and not CMP.

regards,
  Rickard

--
Rickard Öberg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com

--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to