Re: [jira] Closed: (DAYTRADER-16) JPA mode

2006-11-02 Thread Matt Hogstrom
In order to clear things up a bit I made the following changes (this was the result of a conversation with David J on IRC earlier today and Chris).  I have copied trunk before the JPA changes into daytrader/branches/1.2 and we'll leave the 1.x stream as J2EE 1.4 and enhancements.  svn co -r 469283 https://svn.apache.org/repos/asf/geronimo/daytrader/trunk 1.21.2 will include the new Dojo look and feel as well as the SLSB mode and Piyush's changes to create the databases.  I'd like to fix the market summary queries also as they're killing me in that they're so heavy.  These changes will go into trunk as well.trunk will become 2.0-SNAPSHOT and will become the Java EE 5.0 release.  I think starting with 2.0 we'll layer in JPA and it will become a Java 1.5 build as well and may not work on earlier Java Versions.  I would also like to incorporate some caching features so we can characterize G-Cache functionality as well.I'm planning on proposing a release of DayTrader 1.1.1 this week that has improved documentation, plans, and a few bug fixes.Other ideas?On Oct 31, 2006, at 11:19 AM, Matt Hogstrom wrote:On Oct 30, 2006, at 6:09 PM, Christopher Blythe wrote:David...Read through your notes late last week concerning the JPA mode additions and figured I would add my comments here. We definitely need to add support for JPA and EJB 3.0 into Daytrader; however, we also need to maintain the existing JDBC and EJB 2.1 operating modes in some way shape of form for functional/performance regression testing purposes. What I would really like to see are continued enhancements to clean-up Daytrader in it's existing form in the 1.2.X release stream. This would include things like the SSB to JDBC mode that I submitted in DAYTRADER-15, the Dojo interface in DAYTRADER-17, etc. This would leave Daytrader 1.2.X as an excellent testcase for J2EE 1.4 functionality.  Matt Hogstrom[EMAIL PROTECTED] 

Re: [jira] Closed: (DAYTRADER-16) JPA mode

2006-10-31 Thread Matt Hogstrom
On Oct 30, 2006, at 6:09 PM, Christopher Blythe wrote:David...Read through your notes late last week concerning the JPA mode additions and figured I would add my comments here. We definitely need to add support for JPA and EJB 3.0 into Daytrader; however, we also need to maintain the existing JDBC and EJB 2.1 operating modes in some way shape of form for functional/performance regression testing purposes. What I would really like to see are continued enhancements to clean-up Daytrader in it's existing form in the 1.2.X release stream. This would include things like the SSB to JDBC mode that I submitted in DAYTRADER-15, the Dojo interface in DAYTRADER-17, etc. This would leave Daytrader 1.2.X as an excellent testcase for J2EE 1.4 functionality. Geronimo as well as DayTrader are at a cross roads in terms of leaving J2EE 1.4 and moving to Java EE 5.0.  I have applied your patches in -15 and started looking at them.  I haven't finished as I'm juggling a couple of things.  For the JPA, EJB 3.0 and other EE 5 related stuff, I feel like these should go into a new version of Daytrader (perhaps Daytrader 2.0) where we can completely replace the existing Direct and EJB modes with their JPA and EJB 3.0 equivalents. It would also be nice to add some additional complexity to the Daytrader data model at this time. Just a few ideas that have been floating around in my head include...- batch order processing- quote price and stock index histories - configurable buy/sell orders We are planning on releasing JPA functionality in Geronimo 1.2 so a preview would be nice.  The question is exactly what you laid out Chris in terms of making the build more modular.  It would be nice to be able to abstract the persistence mechanisms away from the app in a clean way so they can be dynamically bound to the application.  Although, the tradeoff is flexibility which won't directly model real-world development in terms of exploiting a programming model.  I'm not sure how this aligns with the Geronimo release plan in terms EE 5 support and Daytrader/Geronimo versioning. Another idea I've been toying with is a pluggable model for the persistence layer that would allow us to run Daytrader in a larger number of configurations and environments. Currently, the Direct mode impl is packaged inside the ejb jar. Consequently, you need a full EJB container just to run Direct mode even though you could theoretically run Direct mode on base Tomcat server. Anyway, I was thinking of something like... Yup...can we put some effort on the above and help to address the JPA problem as well as the persistence options you added in -15?  Also, how do you guys feel about moving to Java 1.5.   I think we should make the break in 1.2 of DT.- re-organizing some of the common code (data beans, config, etc.) into a util jar - use some form of factory pattern for detecting the available persistence mechanisms (aka. JDBC, Session to JDBC, Session to Entity, JPA, EJB 3.0, etc)- provide separate ejb jars for each of these impls- depending on which ejb jar is loaded with the application, provide the available runtime option (use JNDI lookups to determine which modes are available) The only reason I mention this here is because we could use something like this to maintain the existing runtime modes and introduce the new runtime modes offered by JPA and EJB 3.0.I know that is a lot to consume and think about... but figured I should start shoving the snowball. Thoughts and comments?On 10/30/06, David Jencks (JIRA)  wrote:  [ http://issues.apache.org/jira/browse/DAYTRADER-16?page=all  ]David Jencks closed DAYTRADER-16.-Resolution: FixedAdded in rev 469284.  Don't know if direct or ejb mode still work.> JPA mode>  >> Key: DAYTRADER-16> URL: http://issues.apache.org/jira/browse/DAYTRADER-16> Project: DayTrader >  Issue Type: New Feature>  Components: EJB Tier>Affects Versions: 1.2>Reporter: David Jencks> Assigned To: David Jencks> Fix For: 1.2>> Attachments: DAYTRADER-16.patch>>> Daytrader needs a JPA mode.  Simplest way is to make the XXXDataBeans enhanced.  This will make daytrader java 5 only: it won't compile on jdk 1.4.--This message is automatically generated by JIRA.-If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa -For more information on JIRA, see: http://www.atlassian.com/software/jira-- "I say never be complete, I say stop being perfect, I say let... lets evolve, let the chips fall where they may." - Tyler Durden Matt Hogstrom[EMAIL PROTECTED] 

Re: [jira] Closed: (DAYTRADER-16) JPA mode

2006-10-30 Thread Christopher Blythe
David...Read through your notes late last week concerning the JPA mode additions and figured I would add my comments here. We definitely need to add support for JPA and EJB 3.0 into Daytrader; however, we also need to maintain the existing JDBC and EJB 
2.1 operating modes in some way shape of form for functional/performance regression testing purposes. What I would really like to see are continued enhancements to clean-up Daytrader in it's existing form in the 1.2.X
 release stream. This would include things like the SSB to JDBC mode that I submitted in DAYTRADER-15, the Dojo interface in DAYTRADER-17, etc. This would leave Daytrader 1.2.X as an excellent testcase for J2EE 1.4 functionality.
For the JPA, EJB 3.0 and other EE 5 related stuff, I feel like these should go into a new version of Daytrader (perhaps Daytrader 2.0) where we can completely replace the existing Direct and EJB modes with their JPA and EJB 
3.0 equivalents. It would also be nice to add some additional complexity to the Daytrader data model at this time. Just a few ideas that have been floating around in my head include...- batch order processing- quote price and stock index histories
- configurable buy/sell orders I'm not sure how this aligns with the Geronimo release plan in terms EE 5 support and Daytrader/Geronimo versioning. Another idea I've been toying with is a pluggable model for the persistence layer that would allow us to run Daytrader in a larger number of configurations and environments. Currently, the Direct mode impl is packaged inside the ejb jar. Consequently, you need a full EJB container just to run Direct mode even though you could theoretically run Direct mode on base Tomcat server. Anyway, I was thinking of something like...
- re-organizing some of the common code (data beans, config, etc.) into a util jar - use some form of factory pattern for detecting the available persistence mechanisms (aka. JDBC, Session to JDBC, Session to Entity, JPA, EJB 
3.0, etc)- provide separate ejb jars for each of these impls- depending on which ejb jar is loaded with the application, provide the available runtime option (use JNDI lookups to determine which modes are available)
The only reason I mention this here is because we could use something like this to maintain the existing runtime modes and introduce the new runtime modes offered by JPA and EJB 3.0.I know that is a lot to consume and think about... but figured I should start shoving the snowball.
Thoughts and comments?On 10/30/06, David Jencks (JIRA)  wrote:
 [ http://issues.apache.org/jira/browse/DAYTRADER-16?page=all
 ]David Jencks closed DAYTRADER-16.-Resolution: FixedAdded in rev 469284.  Don't know if direct or ejb mode still work.> JPA mode> 
>> Key: DAYTRADER-16> URL: http://issues.apache.org/jira/browse/DAYTRADER-16> Project: DayTrader
>  Issue Type: New Feature>  Components: EJB Tier>Affects Versions: 1.2>Reporter: David Jencks> Assigned To: David Jencks> Fix For: 
1.2>> Attachments: DAYTRADER-16.patch>>> Daytrader needs a JPA mode.  Simplest way is to make the XXXDataBeans enhanced.  This will make daytrader java 5 only: it won't compile on jdk 
1.4.--This message is automatically generated by JIRA.-If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-For more information on JIRA, see: http://www.atlassian.com/software/jira-- "I say never be complete, I say stop being perfect, I say let... lets evolve, let the chips fall where they may." - Tyler Durden


[jira] Closed: (DAYTRADER-16) JPA mode

2006-10-30 Thread David Jencks (JIRA)
 [ http://issues.apache.org/jira/browse/DAYTRADER-16?page=all ]

David Jencks closed DAYTRADER-16.
-

Resolution: Fixed

Added in rev 469284.  Don't know if direct or ejb mode still work.

> JPA mode
> 
>
> Key: DAYTRADER-16
> URL: http://issues.apache.org/jira/browse/DAYTRADER-16
> Project: DayTrader
>  Issue Type: New Feature
>  Components: EJB Tier
>Affects Versions: 1.2
>Reporter: David Jencks
> Assigned To: David Jencks
> Fix For: 1.2
>
> Attachments: DAYTRADER-16.patch
>
>
> Daytrader needs a JPA mode.  Simplest way is to make the XXXDataBeans 
> enhanced.  This will make daytrader java 5 only: it won't compile on jdk 1.4.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira