This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts 2.0 and EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2.0 and EJB" Watch "Struts 2.0 and EJB" New topic
Author

Struts 2.0 and EJB

Skanda Raman
Ranch Hand

Joined: Mar 21, 2008
Posts: 205


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.


Skanda
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 9137
    
    9

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.

[How To Ask Questions On JavaRanch]
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9400
    
  20

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...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Struts 2.0 and EJB
 
It's not a secret anymore!