Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

JPA, EJB and Web Application

 
Greenhorn
Posts: 26
Hibernate Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 662
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you getting any exceptions?
 
Prateek Jauhari
Greenhorn
Posts: 26
Hibernate Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 26
Hibernate Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any hot redeployment issues with JBoss AS 5.1.0GA...
or any other issue with this server...?
 
Your mother was a hamster and your father was a tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic