Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2.0 and EJB

 
Skanda Raman
Ranch Hand
Posts: 205
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am new to struts 2.0. There is a requirement to use ejb 2.0 in struts 2.0.

Please let me know how this can be done.
 
Joe Ess
Bartender
Pie
Posts: 9259
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts (both 1 and 2) is a front controller. It has nothing to do with back-end technology like EJB's.
You can use EJB's just like you would with any other program.
We have a Struts-specific forum. I'll move this question there for more input.
 
Ankit Garg
Sheriff
Posts: 9509
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well you can create an Enterprise application (EAR) and build an EJB module in it. Then create a Web module (WAR) based on struts and use EJB in it just as in servlets i.e. using lookups etc...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic