Question about Frameworks

6 views
Skip to first unread message

Ashish Kulkarni

unread,
Jul 17, 2008, 7:16:14 AM7/17/08
to Pune-Java
Dear all,

Imagine a typical day in a developer's life. We are given a new
database table and asked to create functionality that would do Create,
Retrieve, Update and Delete operations on this new table. And while we
are at it, we are also asked to list the records, be able to sort
them, filter them and do pagination on this list.

I have 2 questions for all of you.

1. What framework do you currently use to do this? (For example, JSP +
Struts + EJB or JSP + Struts + Hibernate or JSF + EJB3 + JPA or JSF +
Seam + JPA, etc.)
2. How much time does it usually take you to do all this starting from
scratch?

Assumption: It is a simple table with no relationships with any other
tables.

I look forward to your response.

Best Regards,

Ashish.

Dhananjay Nene

unread,
Jul 17, 2008, 7:27:26 AM7/17/08
to Pune...@googlegroups.com
1. Is Ruby on Rails or Python + Django an option ? They rock at this kind of stuff.
2. I cannot see any strong reason to bring in EJB here - there's simply no reason to IMHO. Many of the options you suggest are meant to do some kind of heavy lifting.
3. While I haven't worked with JSF much, I would assume JSF + Hibernate would be my choice. Around 4+ years ago I had worked on something similar and used displaytag (displaytag.sourceforge.net + webwork 2.0 + hibernate to do the same) .. took me 5 days to write the backend framework and would take devs a few hrs (4-6 ?) to get one more table up and running.
--
-----------------------------------------------------------------------------------------------------------------------
Opinions : http://blog.dhananjaynene.com

Ashish Kulkarni

unread,
Jul 17, 2008, 8:39:12 AM7/17/08
to Pune-Java
Dhananjay,

Thanks for your response.

RoR or Python + Django is certainly an option and I do agree that they
rock at such stuff.

I am just trying to ascertain what things people are using in
different companies.

I am going to post an article about using JBoss Seam which gives RoR
or anything else out there a run for its money [why would anyone talk
about money when its all free? :-)]. And it would be helpful for me to
find out what kind of target audience I have got.

With JBoss Seam, just like RoR, you have a utility called seam-gen
which generates all your scaffolding code for doing Create, Retrieve
(fantastic lists with search, filter and sort options), Update and
Delete. But unlike RoR, the seam-gen generated forms can do AJAX based
front-end validations.

Of course, this is only a fraction of what we can achieve using Seam.
And since a lot of its functionality is going to become part of Java
EE under WebBeans, it is certainly something worth looking at.

How does less than 10 minutes to do all that I have mentioned sound?
But talk is cheap. Anyone can talk. In my article I am going to
actually show how to do it all - front-ent JSFs with AJAX, Java
Classes, everything. And the best part is, if you make any change to
the underlying database schema, simply re-generate the JSFs and Java
classes :-).

Best Regards,

Ashish.

On Jul 17, 12:27 pm, "Dhananjay Nene" <dhananjay.n...@gmail.com>
wrote:
> 1. Is Ruby on Rails or Python + Django an option ? They rock at this kind of
> stuff.
> 2. I cannot see any strong reason to bring in EJB here - there's simply no
> reason to IMHO. Many of the options you suggest are meant to do some kind of
> heavy lifting.
> 3. While I haven't worked with JSF much, I would assume JSF + Hibernate
> would be my choice. Around 4+ years ago I had worked on something similar
> and used displaytag (displaytag.sourceforge.net + webwork 2.0 + hibernate to
> do the same) .. took me 5 days to write the backend framework and would take
> devs a few hrs (4-6 ?) to get one more table up and running.
>
> On Thu, Jul 17, 2008 at 4:46 PM, Ashish Kulkarni <ashishkulka...@hotmail.com>
> wrote:
>
>
>
>
>
>
>
> > Dear all,
>
> > Imagine a typical day in a developer's life. We are given a new
> > database table and asked to create functionality that would do Create,
> > Retrieve, Update and Delete operations on this new table. And while we
> > are at it, we are also asked to list the records, be able to sort
> > them, filter them and do pagination on this list.
>
> > I have 2 questions for all of you.
>
> > 1. What framework do you currently use to do this? (For example, JSP +
> > Struts + EJB or JSP + Struts + Hibernate or JSF + EJB3 + JPA or JSF +
> > Seam + JPA, etc.)
> > 2. How much time does it usually take you to do all this starting from
> > scratch?
>
> > Assumption: It is a simple table with no relationships with any other
> > tables.
>
> > I look forward to your response.
>
> > Best Regards,
>
> > Ashish.
>
> --
> ---------------------------------------------------------------------------­--------------------------------------------
> Opinions :http://blog.dhananjaynene.com- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages