On Monday 17 October 2005 12:59, Michael Ralston wrote:
> I'm just sending it to the list so some people who are interested in
> implementing something similar can get an idea of how I did it.
Great, thanks. From what i can see you have submitted patches to the lenya
codebase itself, to become more EJB-friendly but not parts from the actual
implementation right?
> When I find where I put the code for the actual entity beans etc, I'll post
> that too. But it was written on an early alpha version of Jboss EJB3, and
> it no longer compiles as the api has changed quite a bit.
I'm currently implementing the backend using session beans and Hibernate 3
(which is now JBoss' EJB 3 implementation) but without actually using the EJB
3 entity persister etc; just session beans over DAOs on JBoss. This approach
can be tweacked to work on all appservers (i currently deploy Hibernate POJOs
as a HAR).
> I will eventually rewrite all this code to work with lenya 1.4. If anyone
> else is interesting in a database backend for lenya, let me know and we can
> use this as a starting point.
Sounds cool but what are we going to use as a workspace to collaborate?
Currenty my implementation is as follows:
+------------------------------------+
| Custom Implementations of |
| lenya.ac.AccreditableManager etc |
+------------------------------------+
|
RMI
|
+-------------+
| EJBs tier |
+-------------+
|
+------------------------------------+
|Hibernate 3 based DAOs using JTA |
|transactions (managed completely by |
|the container: |
| SessionFactory.getCurrentSession() |
+------------------------------------+
I think the furthest we can go for the lenya trunk (besides making the
signatures more EJB-friendly) is to provide configurable lenya.ac
implementations that will depend on an EJB provided by the user(hence the
configurable part) and an additional interface for that EJB to implement.
I'm currently trying to figure out how to move everything to the database,
including users, groups, roles and user rights and metadata per document etc.
My biggest trouble is to figure out the right places to hook my EJBs to
update this information (when a document is created for example, how to
create the initial metadata and rights for it in the DB).
Manos
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]