I've been working with Peter Petersson to get roller 4 running on
geronimo 2, and we've now succeeded. As a result we have some ideas
to make roller more javaee friendly and geronimo friendly.
1. Provide an option to look up the EntityManagerFactory in jndi
rather than constructing it through java code. Generally in ee5 app
servers you want to use the ee5 mechanisms to access the ee5
features :-) so just as there is an option to look up the datasource
in jndi rather than using a Driver class directly, it would be great
to have the option to look up the EMF in jndi as well. I don't see a
convenient way to use the ee5 injection features since AFAICT there
aren't any managed objects (servlets, filters, listeners, or jsf
managed beans) very near the code that needs the EMF. I've
implemented this and it works in geronimo, see ROL-1482. The only
possibly objectionable part of this patch I can imagine is the switch
to the servlet 2.5 schema for the persistence unit ref. In geronimo
at least we can work around a 2.4 web.xml if you don't want to
upgrade yet: the remainder of the patch would still be extremely
helpful.
2.jpa mapping info. I notice you are currently using orm.xml files.
Do you have plans to move to annotations, and is anyone working on
that? Also IIUC it's possible to make the annotations or orm files
match the script generated schema more closely by including stuff
like column sizes, does anyone have an opinion on if that is desirable?
3. For deployment in geronimo, and use in a geronimo plugin, we need
to get at at least the roller war and possibly some inner details
such as the core jar. It would be most convenient for us if these
were available through a maven repository. So this leads to the
questions...
3a. Would you consider including some use of the maven ant tasks in
the ant build scripts to get various artifacts into maven repositories?
3b Are you completely thrilled with the ant build or would you be
interested in considering a maven build system?
If anyone's interested the current geronimo roller plugin is at
https://svn.apache.org/repos/asf/geronimo/plugins/roller
I put some really basic and probably hard to follow build
instructions in a README.
many thanks
david jencks
- roller + javaee + geronimo David Jencks
-