Hi,
Alternatively(instead of the subclass part), 
i could define the session beans,managed beans and entity beans in
separate xmls and create a dependency of the UI part on model at the
same time complying with MVC architecture.rht?

Divya 

On Tue, 2009-11-03 at 04:28 -0800, joe sams wrote:
> make usre you clearly separate your business layer from your
> controller and view..i mean stick to the MVC architectture.
> create a model(business class that has all your DB connection and CRUD
> code(insert update ,delete etc). then let it be a subclass to which
> ever object you want to manipulate eg Student. then let your managed
> bean be the middle person betwn your model and your view.
> you can stick to OOP- inheritance model
> bind your ui components to your managed bean(backingBean)...
> deploy..up you go...
> sorry i'm lazy to explain in more details.
>  
> Joe
> 
> 
> --- On Mon, 11/2/09, Divya S <div...@suntecinfosystems.com> wrote:
> 
>         
>         From: Divya S <div...@suntecinfosystems.com>
>         Subject: [java ee programming] Re: jsf, managedbeans entity
>         beans and DB
>         To: java-ee-j2ee-programming-with-passion@googlegroups.com
>         Date: Monday, November 2, 2009, 11:29 PM
>         
>         
>         Hi,
>         I think...first create a JSF page...associate with a managed
>         bean...and
>         through the managed bean contact the session to execute
>         queries which
>         will make the needed changes in database.
>         
>         
>         >         
>         
> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to