Java EE Tutorial #3 - JPA Database Connection Part 2

preview_player
Показать описание
Java EE Tutorial #3 - JPA Database Connection Part 2

In this Video I show you how to use Databases in Java EE. We will work with JPA and Glassfish JDBC Resources.

JDBC Connection Pool URL: jdbc:mysql://localhost:3306/youtube

If you have any questions, feel free to write a comment ;).

Subscribe now!

Рекомендации по теме
Комментарии
Автор

Danke schön,
Sie wahren sehr hilfreich gewesen :)
Machen Sie weiter so!

shadpwness
Автор

Many-many thanks to you! Great tutorial!

BigAliFamily
Автор

Can you please elaborate a bit more about what is userBean.allusers in <h:datatable value="#{userBean.allusers}", as I could find that userBean is the name of UserBean class mention by @ManagedBean annotation but sure about 'allUsers' ?

anshumansrivastava
Автор

when i deplyer ejb it's says "The module has not been deployed.
See the server log for details."

Gayan
Автор

Hi, thanks a lot for your great tutorial. One thing I don't get: You create the UserBean with a method getAllUsers, then in the JSF you use userBean.allUsers ... where does this come from? Has it been "mysterically" created automatically? Does the ManagedBean class UserBean imply that you get an instance userBean in your JSF, and does the getter getAllUsers imply that you get a member of the instance called allUsers?

devnull
Автор

Hi, I got the following error:

HTTP Status 500 -
type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception

root cause

note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 3.1.2 logs.

How to fix this error? Thanks in advance

ThaoLe-ymll
Автор

any idea what to do with this error message?

cannot Deploy TestGlassfish
deploy is failing=Error occurred during deployment: Exception while deploying the app [TestGlassfish] : Error parsing descriptor Deployment descriptor file WEB-INF/glassfish-web.xml in archive [TestGlassfish].. Please see server.log for more details.

tobiassen
Автор

Hey Dennis I got stucked with this error, searched StackOverflow and google for help but couldn't find anything to solve this issue, hope you might help:

Severe: Exception while invoking class load method
java.lang.RuntimeException: EJB Container initialization error


My code is 100% the same as yours Youtube repository. I even copy pasted everything since I don't know what is wrong. It started appearing after making the empty beans.xml file.

matc
Автор

Can you improve the example plz ? .. adding a name to database from text input.
thx in advance ^^

devillspdr