Nice Java Web App - Struts->Spring->Hibernate

good article about setting up a sweet web app architecture using exsiting open source frameworks.

Wiring Your Web Application with Open Source Java

Comments

RE: Nice Java Web App - Struts->Spring->Hibernate

Actually, replace Spring with hand-code and Hibernate with Castor, and that is exactly how the jTOTSP is put together.

RE: Nice Java Web App - Struts->Spring->Hibernate

I am just starting to use Castor with Axis, but I thought Castor was for creating Java Objects from XML Schema (and vice versa, serializing to XML Schema I guess) and I thought Hibernate was a proprietary thing to persist java objects and then it manages an offline store to a database (uses memory for all its interaction with the app and then periodically persists to database)?

So I probably dont understand correctly but the two dont really seem interchangeable to me. Does Castor persist somewhere other than to filesystem?

RE: Nice Java Web App - Struts->Spring->Hibernate

And actually, you might want to check out spring for replacing the "hand code" part?

RE: Nice Java Web App - Struts->Spring->Hibernate

Castor does JDBC persistence. I honestly have never been a fan of using its XML binding and code generation stuff, myself. Some people feel its not a flexible as Hibernate. However, it has the best OQL support of anything out there, and the option of doing "Lazy Loading" with the Castor data bound collections makes it much more memory friendly if you are dealing with very large datasets.

I have never looked really hard Spring, but I might. However, I am so far along with the code now that I might go back and retrofit it later.

RE: Nice Java Web App - Struts->Spring->Hibernate

Well I am very eager to learn Castor and Hibernate some. And all that jTotSP stuff, so get something there and I will be contributing code daily.

RE: Nice Java Web App - Struts->Spring->Hibernate

I'm reworking the plans on the feed stuff, but I hope to have something there soon.

RE: Nice Java Web App - Struts->Spring->Hibernate

�鸟,努力在学�

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.