wood burning stoves 2.0*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 8935
    
    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.

"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: 9307
    
  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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2.0 and EJB