Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-17 Thread David Blevins
On Aug 11, 2006, at 2:41 PM, David Blevins wrote: On Aug 9, 2006, at 1:21 AM, David Blevins wrote: I'm going to start a branch tomorrow to experiment with JPA stuff Done. Got a branch up here: - Revision 430900: /geronimo/branches/jpa-plugin Didn't turn out to need this as I'm not

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-14 Thread David Blevins
On Aug 12, 2006, at 2:52 PM, David Blevins wrote: Seems like I'm walking in mid-conversation, but I hope I can add some details. Geez, I just had *seven* missing emails in this thread show up in my mailbox. Not sure what's going on with the mail, but that explains the strange gaps.

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-13 Thread David Blevins
On Aug 12, 2006, at 10:03 PM, Jeff Genender wrote: David Blevins wrote: Seems like I'm walking in mid-conversation, but I hope I can add some details. On Aug 11, 2006, at 8:30 PM, Aaron Mulder wrote: On 8/11/06, Jeff Genender [EMAIL PROTECTED] wrote: Ok, I understand where you are going

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-12 Thread Dain Sundstrom
This isn't a problem. The spec actually says that the web app should be able to see both persistence units. Also, we are just creating a map of the persistent units visible, the user still has to choose which ones to lookup using our magic namespace which is way out side the

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-12 Thread Dain Sundstrom
On Aug 11, 2006, at 8:30 PM, Aaron Mulder wrote: On 8/11/06, Jeff Genender [EMAIL PROTECTED] wrote: Ok, I understand where you are going with this. I totally agree with your thinking here. But...IIUC...in the web app, if you are including your own PU, you likely wouldn't be using the JNDI

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-12 Thread David Blevins
Seems like I'm walking in mid-conversation, but I hope I can add some details. On Aug 11, 2006, at 8:30 PM, Aaron Mulder wrote: On 8/11/06, Jeff Genender [EMAIL PROTECTED] wrote: Ok, I understand where you are going with this. I totally agree with your thinking here. But...IIUC...in the

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-12 Thread Jeff Genender
David Blevins wrote: Seems like I'm walking in mid-conversation, but I hope I can add some details. On Aug 11, 2006, at 8:30 PM, Aaron Mulder wrote: On 8/11/06, Jeff Genender [EMAIL PROTECTED] wrote: Ok, I understand where you are going with this. I totally agree with your thinking

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-11 Thread David Blevins
On Aug 9, 2006, at 1:21 AM, David Blevins wrote: I'm going to start a branch tomorrow to experiment with JPA stuff Done. Got a branch up here: - Revision 430900: /geronimo/branches/jpa-plugin Also threw up a wiki page: - http://cwiki.apache.org/confluence/display/GMOxSBOX/JPA+Plugin I

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-11 Thread David Blevins
On Aug 8, 2006, at 12:22 PM, Jeff Genender wrote: Aaron, Please look at the openejb3-persistence module as it does a majority of what you described below... 1) Takes a classloader 2) looks for persistence.xml files 3) parses found persistence.xml files 4) Creates EntityManagerFactories

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-11 Thread Jeff Genender
David Blevins wrote: On Aug 8, 2006, at 12:22 PM, Jeff Genender wrote: Aaron, Please look at the openejb3-persistence module as it does a majority of what you described below... 1) Takes a classloader 2) looks for persistence.xml files 3) parses found persistence.xml files 4)

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-11 Thread David Blevins
On Aug 8, 2006, at 11:52 AM, Aaron Mulder wrote: So far the idea is to put an EntityManagerFactory in JNDI for each persistence unit at java:comp/env/jpa/(persistence-unit-name) . The problem is that every component type in Geronimo uses a different GBean and attribute to hold the JNDI

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-11 Thread Aaron Mulder
Weird, but possible, I guess. :) Thanks, Aaron On 8/11/06, David Blevins [EMAIL PROTECTED] wrote: So check this idea out -- you'll flip. What if we use the context.xml to override the class that registers the root java: jndi provider :) Dain and I were going back and forth on what would

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-11 Thread Aaron Mulder
So what happens if an EJB JAR has a persistence.xml and a web app in the same EAR has a separate persistence.xml? If we just look in the class loader, when we go to deploy the web app, we'll see them both because the EJB JAR is added to the parent classpath of the WAR. Is there a good way to

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-11 Thread Jeff Genender
Isn't this the same problem we (and other app servers) have with Spring and Commons Logging? If you are duplicating the persistence units, then it should be handled the same way its handled for Spring, yes? Aaron Mulder wrote: So what happens if an EJB JAR has a persistence.xml and a web app in

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-11 Thread Aaron Mulder
On 8/11/06, Jeff Genender [EMAIL PROTECTED] wrote: Isn't this the same problem we (and other app servers) have with Spring and Commons Logging? If you are duplicating the persistence units, then it should be handled the same way its handled for Spring, yes? What way is that? Thanks,

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-11 Thread Jeff Genender
Aaron Mulder wrote: On 8/11/06, Jeff Genender [EMAIL PROTECTED] wrote: Isn't this the same problem we (and other app servers) have with Spring and Commons Logging? If you are duplicating the persistence units, then it should be handled the same way its handled for Spring, yes? What way is

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-11 Thread Aaron Mulder
On 8/11/06, Jeff Genender [EMAIL PROTECTED] wrote: With regard to duplicating PUs, in theory, it shouldn't make a difference if the PU was already loaded in a parent loader. I think it does. The web app is not necessarily supposed to see JPA configurations in an EJB JAR, only JPA

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-11 Thread Jeff Genender
Aaron Mulder wrote: On 8/11/06, Jeff Genender [EMAIL PROTECTED] wrote: With regard to duplicating PUs, in theory, it shouldn't make a difference if the PU was already loaded in a parent loader. I think it does. The web app is not necessarily supposed to see JPA configurations in an EJB

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-11 Thread Aaron Mulder
On 8/11/06, Jeff Genender [EMAIL PROTECTED] wrote: Ok, I understand where you are going with this. I totally agree with your thinking here. But...IIUC...in the web app, if you are including your own PU, you likely wouldn't be using the JNDI (and thus the container) for this and would be

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-11 Thread Jeff Genender
Aaron Mulder wrote: On 8/11/06, Jeff Genender [EMAIL PROTECTED] wrote: Ok, I understand where you are going with this. I totally agree with your thinking here. But...IIUC...in the web app, if you are including your own PU, you likely wouldn't be using the JNDI (and thus the container) for

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-09 Thread David Blevins
Personally, I'm happy that Aaron still wants to work on Geronimo at all. If he wants to work out on SourceForge, that's really his decision no matter what the reasons. I don't see an upside to pushing the topic. As long as he doesn't get upset that others are working on potentially the

JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-08 Thread David Blevins
On Aug 8, 2006, at 11:10 AM, Aaron Mulder wrote: On 8/8/06, David Blevins [EMAIL PROTECTED] wrote: I'm hacking away at some way to allow people to use OpenJPA in their apps -- don't know how that will turnout just yet -- and was thinking a plugin would be best for that as it wouldn't force

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-08 Thread Andrus Adamchik
Can't speak for Aaron, but I guess this is not so much the code referencing provider-specific API, but configuration including provider jars... ant testing that it works of course :-) Andrus On Aug 8, 2006, at 2:26 PM, David Blevins wrote: On Aug 8, 2006, at 11:10 AM, Aaron Mulder wrote:

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-08 Thread Aaron Mulder
On 8/8/06, David Blevins [EMAIL PROTECTED] wrote: What approach are you taking to get this done? I was thinking to do App-managed EntityManagers, the EntityManagerFactories looked up through JNDI, and available to both web apps and ejbs. First of all, the work I'm doing on this is mostly

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-08 Thread Aaron Mulder
I forgot to mention -- it seems that every JPA provider has been compiled against a different version of the JPA spec, which is a little obnoxious. :) Thanks, Aaron On 8/8/06, Aaron Mulder [EMAIL PROTECTED] wrote: On 8/8/06, David Blevins [EMAIL PROTECTED] wrote: What approach are you

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-08 Thread Jeff Genender
Aaron, Please look at the openejb3-persistence module as it does a majority of what you described below... 1) Takes a classloader 2) looks for persistence.xml files 3) parses found persistence.xml files 4) Creates EntityManagerFactories based on the persistence.xml file specifications. 5) Loads

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-08 Thread Matt Hogstrom
Is that code in the incubator at Apache now? Jeff Genender wrote: Aaron, Please look at the openejb3-persistence module as it does a majority of what you described below... 1) Takes a classloader 2) looks for persistence.xml files 3) parses found persistence.xml files 4) Creates

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-08 Thread Aaron Mulder
Unfortunately, that code is not particularly applicable to Geronimo 1.1 web applications. Just to give a tiny example, a web app never has an InitialContext to store JNDI data, only a Map. I'm guessing you also have some special hooking during EJB deployment to invoke the PersistenceDeployer,

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-08 Thread David Blevins
So who is we and why SourceForge? I can certainly see having Hibernate provider plugins and stuff there, but I definitely intend on writing the core bits in Geronimo svn. More bellow... but in a different order. On Aug 8, 2006, at 11:52 AM, Aaron Mulder wrote: In the mean time, have you

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-08 Thread David Blevins
On Aug 8, 2006, at 12:23 PM, Matt Hogstrom wrote: Is that code in the incubator at Apache now? /me hopes matt knew the answer to that question when he did an OpenEJB release yesterday :) Jeff Genender wrote: Aaron, Please look at the openejb3-persistence module as it does a majority

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-08 Thread Aaron Mulder
On 8/8/06, David Blevins [EMAIL PROTECTED] wrote: So who is we and why SourceForge? I can certainly see having Hibernate provider plugins and stuff there, but I definitely intend on writing the core bits in Geronimo svn. we is myself and some folks at Chariot. At SourceForge because 1) we

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-08 Thread Matt Hogstrom
:) David Blevins wrote: On Aug 8, 2006, at 12:23 PM, Matt Hogstrom wrote: Is that code in the incubator at Apache now? /me hopes matt knew the answer to that question when he did an OpenEJB release yesterday :) Jeff Genender wrote: Aaron, Please look at the openejb3-persistence

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-08 Thread David Blevins
On Aug 8, 2006, at 12:47 PM, Aaron Mulder wrote: On 8/8/06, David Blevins [EMAIL PROTECTED] wrote: So who is we and why SourceForge? I can certainly see having Hibernate provider plugins and stuff there, but I definitely intend on writing the core bits in Geronimo svn. we is myself and

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-08 Thread David Jencks
On Aug 8, 2006, at 1:43 PM, David Blevins wrote: On Aug 8, 2006, at 12:47 PM, Aaron Mulder wrote: On 8/8/06, David Blevins [EMAIL PROTECTED] wrote: So who is we and why SourceForge? I can certainly see having Hibernate provider plugins and stuff there, but I definitely intend on writing

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-08 Thread Aaron Mulder
On 8/8/06, Kevan Miller [EMAIL PROTECTED] wrote: On Aug 8, 2006, at 3:47 PM, Aaron Mulder wrote: On 8/8/06, David Blevins [EMAIL PROTECTED] wrote: So who is we and why SourceForge? I can certainly see having Hibernate provider plugins and stuff there, but I definitely intend on writing

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-08 Thread Dain Sundstrom
On Aug 8, 2006, at 2:52 PM, Aaron Mulder wrote: On 8/8/06, Kevan Miller [EMAIL PROTECTED] wrote: On Aug 8, 2006, at 3:47 PM, Aaron Mulder wrote: On 8/8/06, David Blevins [EMAIL PROTECTED] wrote: So who is we and why SourceForge? I can certainly see having Hibernate provider plugins and

Re: JPA plugin (was Re: Java 1.4 and JEE 5)

2006-08-08 Thread Kevan Miller
Aaron, I didn't disagree with your conclusion. You gave 3 reasons for not performing the work at Apache. All you needed was one -- licensing issues prevent this work from occurring at Apache. Maybe so, but so far only you have made that evaluation. I'm not intimating that you are wrong,