roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jencks (JIRA)" <>
Subject [Roller-JIRA] Updated: (ROL-1482) Allow jndi lookup of jpa emf
Date Tue, 17 Jul 2007 21:04:30 GMT


David Jencks updated ROL-1482:

    Attachment: ROL-1482.patch

Attached patch has these changes:

- introduces 2 new properties, 

the first if set to jndi indicates the emf should be looked up in jndi, otherwise constructed
as in current code.  
the second indicates the jndi name to use.

- changes  apps/weblogger/src/java/org/apache/roller/weblogger/business/jpa/
to pay attention to these properties (and clean up javadoc and needless code a bit)

- changes apps/weblogger/web/WEB-INF/web.xml to the servlet 2.5 schema and includes a persistence-unit-ref
for RollerPU.

For the purposes of the geronimo-roller plugin the first two are very useful, but we can get
by without the third if you don't want to upgrade to servlet 2.5 yet.

> Allow jndi lookup of jpa emf
> ----------------------------
>                 Key: ROL-1482
>                 URL:
>             Project: Roller
>          Issue Type: Improvement
>          Components: JPA Backend
>    Affects Versions: 4.0
>            Reporter: David Jencks
>            Assignee: Roller Unassigned
>         Attachments: ROL-1482.patch
> Just like there's a choice between looking up a datasource in jndi or using a driver,
please allow the choice of looking up the jpa emf in jndi or constructing it in code.  This
will make running roller on javaee5 app servers a lot more straightforward.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message