Paulo Lopes wrote:

I've read on the list a few time ago that openejb team was working hard on the geronimo project, but i'd like to know something... will openejb evolve to support ejb 2.x? or will it die as it is supporting ejb 1.1? is there any future plan for the project?

I was working on CMP 2.1 for OpenEJB. Even though, I can't show it (once I lost it after a disc crash) it would be very easy to reproduce to get to the point I stopped. The only thing that still remains me about the task is a branch in OpenEJB CVS - cmp2. That's where I was supposed to put the code, but believe me I wish I could remember it once I did something working. I always thought it's too early to show anything to the public and kept it locally. Now, I know that I should've been put it in CVS to not only back it up, but also to show where I was and perhaps to get a few others involved.


What I did to accomplish the task was:

o generate java classes representing EJB 2.1 DD using Castor's SourceGenerator
o generate an interpreter of OQL using Antlr (it took me some time, but finally I really came to like it)
o "state pattern"-based simple implementation of entity beans (I finally could understand why sometimes exception had to be thrown, etc. - probably people at Sun approached the problem very similarly)
o "visitor pattern"-based PrintVisitor to print out the OQL tree (then I found that a very similar one is already in Castor)


and perhaps a bit more, but I'm not now able to remember it.

The real problem which caused me to think really, really hard was with distinguishing what CMP engine a request should be handed over to. Since EJB 2.1 requires a container to support EJB 1.1 as well, I couldn't figure out if 'find' method, which is different in 2.1 and 1.1, is supported at all. There's a slight difference in the method's signature if I'm not mistaken.

I'd be glad if I could hand over the task to someone else. I really enjoyed it, but now I would rather work on embedding OpenEJB in Geronimo .

Is anyone interested to take it over?


Thanks, Paulo Lopes

-Jacek




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
http://OpenEJB.sf.net
OpenEJB-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openejb-user

Reply via email to