I've been working on geronimo's ejb lite support.  The way geronimo is set up 
we tell DeploymentLoader to look in META-INF or WEB-INF for ejb-jar.xml, and 
expect openejb to decide that any module that it finds ejbs in, whether by 
finding an ejb-jar.xml or by finding annotated classes, is an ejb module.

Right now openejb is deciding that a module is an ejb module if it has an 
ejb-jar.xml, but a web module if it has a web.xml but no ejb-jar.xml, even if 
there are annotated ejbs.

I don't understand why this would be appropriate for openejb, so what I'm 
provisionally implementing is:

- provide a flag in a constructor, preferEjb
- if its true, check for ejb-jar.xml and annotated ejbs before looking for 
web.xml, and if found decide the module is an ejb module
- if its is false, the current behavior, where we check for ejb-jar.xml, then 
web.xml, then annotated ejbs.

If the preferEjb=true behavior would be more appropriate for openejb by itself, 
let me know and I'll adjust the code appropriately.

many thanks
david jencks

Reply via email to