Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to pass Data User submitted Data from a servlet to EJB Session Bean when using JPA :

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I have a jsp page in which the user fills up the Data and submits it to the servlet :

Inside servlets i am getting all the parameters and setting it to the Entity Class .

Sample Entity class is shown below :



After calling setters of my Entity Class .

I am using JNDI lookup to call my session Bean method and pass this Entity class to the session Bean to persist data

Please let me know what will be the right approach :

1. Passing parameters whole as a Entity Class
that is




Or



Thank you in advance .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic