I never got into JBoss enough to know for sure what they use, but it should be in the JBoss docs.
Originally posted by Aftab:
But in my code I want to find by workflowcode and eventname(instead of eventcode). How should I do this with CMP?? My EJB book says this is vendor specfic for each App server. But does explain how it is done. With BMP this would be straightforward..you just write JDBC code for each finder.
As far as I know, JBoss is EJB 2.0 compliant. That means that you can use CMP 2.0 with EJB QL, so you can place queries in the deployment descriptor.
Oddly enough just been looking at how to do finders.
Basically you need to put the finder 'SQL' in the jaws.xml, the jBoss specific descriptor file.
Following reference explains how to do it:
Looking at version 2.4.4, it appears it is only 1.1 compliant with some bits of 2.0 such as message driven beans. I think you will need to wait until JBoss version 3 to get full 2.0 compliance.
However I'm just starting on JBoss. Anybody knows better please tell me.
I would prefer to use EJB QL, but I think Phil is right. I don't think my current version of jBoss support EJB QL. (I will try it). jBoss 3.0 is EJB 2 compliant. Thanks for link to jBoss site.
Thanks for all the help guys,