wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes JPA, EJB and Web Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "JPA, EJB and Web Application" Watch "JPA, EJB and Web Application" New topic
Author

JPA, EJB and Web Application

Prateek Jauhari
Greenhorn

Joined: Mar 07, 2011
Posts: 26

Is there any tutorial or example for using JPA and EJB3.0 and test client as a servlet or struts action class.
I am trying to save value in database using a stateless session bean and JPA and the invoke that session bean in servlet.

Here is my entity class



Here Is my session bean





This is my servlet


I am using JBoss 5.1GA application server, MySQL and Netbeans 6.9.1 IDE


I am not able to get this thing worked...
Any help please ...
I need this thing up badly...

Thanks In Advance..

Regards
Prateek
Arun Kumarr
Ranch Hand

Joined: May 16, 2005
Posts: 513

Are you getting any exceptions?


If you are not laughing at yourself, then you just didn't get the joke.
Prateek Jauhari
Greenhorn

Joined: Mar 07, 2011
Posts: 26

I am not able to deploy the bean over the server..
Each time I do a deployment, I get a new Exception.
Prateek Jauhari
Greenhorn

Joined: Mar 07, 2011
Posts: 26

Is there any hot redeployment issues with JBoss AS 5.1.0GA...
or any other issue with this server...?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JPA, EJB and Web Application