File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2.0 and EJB" Watch "Struts 2.0 and EJB" New topic

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

Joined: Oct 29, 2001
Posts: 8964

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

Joined: Aug 03, 2008
Posts: 9313

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:
subject: Struts 2.0 and EJB