This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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

Eshwar Prasad
Ranch Hand

Joined: Mar 21, 2008
Posts: 202

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

Joined: Oct 29, 2001
Posts: 8836
    
    7

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.

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

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
 
 
subject: Struts 2.0 and EJB
 
Similar Threads
EJB 2.0 or 2.1
cleared part -1 83%
RAD 7.0 SUPORT FOR STRTS 2. AND EJB 3.0
Amazon advertising latest edition of Head First EJB...
EJB 3.0