Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [gemini-dev] JPA in a WAB

On 16/4/2010 3:30 PM, Mike Keith wrote:
Well, we wouldn't want Gemini web to have to look through all of the WAR looking for persistence.xml files, so maybe we could limit the support to just looking for WEB-INF/classes/META-INF/persistence.xml?

That would be my opening suggestion. :)

The other places to look would be in jars in WEB-INF/lib to see if they have a META-INF/persistence.xml.  This may be expensive so perhaps it could be optional?

    Shaun

On 4/16/2010 2:03 PM, Shaun Smith wrote:
I'd like to propose Gemini Web provide support for JPA in WABs.

It's pretty common for developers to put both their web components and their backing JPA Entities into a WAR and so I think it would be useful to provide support for this configuration in Gemini.  I think support for JPA in a WAR would amount to detection of a persistence.xml file inside the WAR and the addition of the necessary "Meta-Persistence" entry into the Manifest of the WAB.  And coordination of Gemini JPA and Web services would be necessary to ensure peaceful co-existence when a bundle contains both JPA and web content.

Before going deeper does anyone have any thoughts on this?  Is this already in the plans for Gemini Web?

    Shaun

--
Oracle
Shaun Smith | Principal Product Manager
Phone: +19055023094
Oracle Server Technologies, Oracle TopLink
ORACLE Canada | 110 Matheson Boulevard West, Suite 100, Mississauga, Ontario | L5R 3P4

Green Oracle Oracle is committed to developing practices and products that help protect the environment
_______________________________________________ gemini-dev mailing list gemini-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/gemini-dev
_______________________________________________ gemini-dev mailing list gemini-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/gemini-dev

--
Oracle
Shaun Smith | Principal Product Manager
Phone: +19055023094
Oracle Server Technologies, Oracle TopLink
ORACLE Canada | 110 Matheson Boulevard West, Suite 100, Mississauga, Ontario | L5R 3P4

Green Oracle Oracle is committed to developing practices and products that help protect the environment

Back to the top