Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSF 2 what is the recommended way to use JDBC?

653831Jun 9 2012 — edited Jun 11 2012
Hi,

I 'm using Glassfish v3.1, currently confused on how do i use Database access using JDBC in JSF 2. All my bean annotation is @ManagedBean, I have a class named as DBDao which primary responsibility is just to perform CRUD on db and shared across all my ManagedBean JSF page. How do i inject this class? do i use @SessionScoped? or @ApplicationScoped?

please advice
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 9 2012
Added on Jun 9 2012
8 comments
875 views