Apache Geronimo > Discussion Forums  User List | Dev List | Wiki | Issue Tracker  

Daytrader for Tomcat

View: New views
11 Messages — Rating Filter:   Alert me  

Daytrader for Tomcat

by Forrest_Xia :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I trimed daytrader by removing ejb, jms, web services, and etc, and generated a version for Tomcat, anyone interested?

Re: Daytrader for Tomcat

by Jack Cai :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes that will be interesting for Web app users. How is the customization done? Ideally we can use the same set of code to generate different target (Web, Full, etc.).

-Jack


2009/3/2 Forrest_Xia <forrestxm@...>

I trimed daytrader by removing ejb, jms, web services, and etc, and generated
a version for Tomcat, anyone interested?
--
View this message in context: http://www.nabble.com/Daytrader-for-Tomcat-tp22290310s134p22290310.html
Sent from the Apache Geronimo - Dev mailing list archive at Nabble.com.



Re: Daytrader for Tomcat

by Forrest_Xia :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There will be some code duplicate inevitably. To make daytrader work in Tomcat, I changed some java classes and jsp files to remove ejb, jms, and web services related code. For example, config.jsp, TradeDirect.java, TradeServletAction.java, etc.

Having a web-container only version of daytrader will benefit people who has interests at comparing the tomcat custom server assembly of geronimo with standalone tomcat. Potentially, it might be expand the influence of daytrader sample, attract more people to know it and use it. Maybe there are new idea coming out to improve it in future. Does it make sense? Let me know your comments!

Cheers,
Forrest



Re: Daytrader for Tomcat

by kevan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Mar 2, 2009, at 10:32 AM, Forrest_Xia wrote:

>
> I trimed daytrader by removing ejb, jms, web services, and etc, and  
> generated
> a version for Tomcat, anyone interested?

I'm a bit interested in a version for Tomcat, but would be more  
interested in a version for Geronimo Tomcat and Geronimo Jetty --  
ideally a war (for Tomcat deployment and Geronimo deployment -- if  
someone desired) and a Geronimo plugin (that could be used to generate  
custom assemblies). Is that what you had in mind?

--kevan

Re: Daytrader for Tomcat

by Forrest_Xia :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

A separate maven project for daytrader tomcat version is ready.

Consequently, Adding it to daytrader trunk bundle is easy, and further making it as a geronimo server plugin is not a big problem either, I can do that :-)

Forrest

Re: Daytrader for Tomcat

by Joe Bohn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Forrest,

How is this working coming along?  Are you at a point you are ready to
contribute it yet (or was it already contributed and I just missed it)?

I guess we would still have to figure out how to manage the two
implementations but it sounds interesting to have the simplified version
available.  It would be cool if we could figure out a way (using
plugins?) to install the core Daytrader (simplified) and extend it with
the full function by another plugin for more robust environments.

Thanks,
Joe


Forrest_Xia wrote:
> A separate maven project for daytrader tomcat version is ready.
>
> Consequently, Adding it to daytrader trunk bundle is easy, and further
> making it as a geronimo server plugin is not a big problem either, I can do
> that :-)
>
> Forrest
>


Re: Daytrader for Tomcat

by Forrest_Xia :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Joe,

We recently found some problems in some primitive servlets, so the tomcat version is not really ready for contribution.

As to how to package it into daytrader code base, rough idea is to create a sub module in daytrader root, and use maven-war-plugin to create a war ball for tomcat deployment.

|-- It would be cool if we could figure out a way (using plugins?) to install the core Daytrader (simplified) and extend it with the full function |-- by another plugin for more robust environments.

I will try to see if it is possible, thank you for your suggestion :)

Cheers,
Forrest

Re: Daytrader for Tomcat

by kevan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Apr 9, 2009, at 11:26 AM, Forrest Xia wrote:

> Hi Joe,
>
> We recently found some problems in some primitive servlets, so the  
> tomcat version is not really ready for contribution.
>
> As to how to package it into daytrader code base, rough idea is to  
> create a sub module in daytrader root, and use maven-war-plugin to  
> create a war ball for tomcat deployment.
>
> |-- It would be cool if we could figure out a way (using plugins?)  
> to install the core Daytrader (simplified) and extend it with the  
> full function |-- by another plugin for more robust environments.
>
> I will try to see if it is possible, thank you for your suggestion :)

Hi Forrest,
Things don't have to be perfect before you can start collaborating  
with community members. Understand the desire to get everything "just  
so". But you might find that other people are willing to help and  
answer questions.

--kevan

Re: Daytrader for Tomcat

by Joe Bohn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Are you getting any closer Forrest?  As Kevan mentioned, it might be
helpful to get this contributed so that others can collaborate.

Thanks,
Joe


Kevan Miller wrote:

>
> On Apr 9, 2009, at 11:26 AM, Forrest Xia wrote:
>
>> Hi Joe,
>>
>> We recently found some problems in some primitive servlets, so the
>> tomcat version is not really ready for contribution.
>>
>> As to how to package it into daytrader code base, rough idea is to
>> create a sub module in daytrader root, and use maven-war-plugin to
>> create a war ball for tomcat deployment.
>>
>> |-- It would be cool if we could figure out a way (using plugins?) to
>> install the core Daytrader (simplified) and extend it with the full
>> function |-- by another plugin for more robust environments.
>>
>> I will try to see if it is possible, thank you for your suggestion :)
>
> Hi Forrest,
> Things don't have to be perfect before you can start collaborating with
> community members. Understand the desire to get everything "just so".
> But you might find that other people are willing to help and answer
> questions.
>
> --kevan
>


Re: Daytrader for Tomcat

by Joe Bohn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Forrest,

Are you planning to do anything more with the Daytrader?

There was some discussion in
http://issues.apache.org/jira/browse/DAYTRADER-68 about next steps with
this web-only version of daytrader ... but that was a while ago and I'm
not sure if you are still working on these items or if they were
displaced by other more pressing issues.

Included in jira discussion you mentioned that you would be working on
several things, among those:
- a description of how the web-only version differs from the full
Daytrader including changes made for removal of EJB/JPA dependencies.
- support for jetty in addition to tomcat for the web-only version
- better instructions in readme for installation on both the minimal
assemblies and tomcat/jetty containers
- investigation into non-container managed JPA for db access
- possible creation of plugins for the webonly installation
- and perhaps some work on the dependencies and datasource deployment plan.

Can you fill us in on the latest on these items?

Thanks,
Joe

Joe Bohn wrote:

> Are you getting any closer Forrest?  As Kevan mentioned, it might be
> helpful to get this contributed so that others can collaborate.
>
> Thanks,
> Joe
>
>
> Kevan Miller wrote:
>>
>> On Apr 9, 2009, at 11:26 AM, Forrest Xia wrote:
>>
>>> Hi Joe,
>>>
>>> We recently found some problems in some primitive servlets, so the
>>> tomcat version is not really ready for contribution.
>>>
>>> As to how to package it into daytrader code base, rough idea is to
>>> create a sub module in daytrader root, and use maven-war-plugin to
>>> create a war ball for tomcat deployment.
>>>
>>> |-- It would be cool if we could figure out a way (using plugins?) to
>>> install the core Daytrader (simplified) and extend it with the full
>>> function |-- by another plugin for more robust environments.
>>>
>>> I will try to see if it is possible, thank you for your suggestion :)
>>
>> Hi Forrest,
>> Things don't have to be perfect before you can start collaborating
>> with community members. Understand the desire to get everything "just
>> so". But you might find that other people are willing to help and
>> answer questions.
>>
>> --kevan
>>
>
>


Re: Daytrader for Tomcat

by Forrest_Xia :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I will make progress on it as part of G 2.2 sample release work. Thank you for patience.

If there is anything sounds urgent that you want from me, feel free to let me know.

Forrest