The moose likes EJB and other Java EE Technologies and the fly likes Bringing EJB and Struts together... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Bringing EJB and Struts together..." Watch "Bringing EJB and Struts together..." New topic
Author

Bringing EJB and Struts together...

Chris Montgomery
Ranch Hand

Joined: Jan 14, 2004
Posts: 141
I've been programming Struts for over a year and have a pretty good understanding of it.

I am finally getting the grasp of EJB's, but as a stand-alone container. Up to this point, I've only been using test clients (Lomboz wizards are pretty slick!).

Now I'm at the point where I want to bring them together, but need a little help.

I'm using Eclipse 3.1 (with Lomboz, Jboss 3.2.5, Tomcat 4.1.9) and quickly have become dependant on those wizards for writing EJB's

With Struts, I'm a bit old school. I am used to creating EVERYTHING manually.

As a result, I'm extremely confused on how to merge the two entities into ONE Eclipse/JBoss J2EE project. I just don't see it yet.

Thanks!
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
are you using Tomcat seperately from the JBoss. although we have tomcat, as a servlet container, integrated with JBoss.

if you use JBoss you dont need tomcat externally. i can send you the tutorial doc "Tutorial for building J2EE Applications using JBOSS and ECLIPSE". this document also contains Configuration of ECLIPSE using JBOSS and LOMBOZ.

its almost of 6.xx MB. i think i can send you that via email. wht you say?
[ September 09, 2004: Message edited by: adeel ansari ]
Lu Huang
Greenhorn

Joined: Sep 09, 2004
Posts: 1
I would be very interested to receive the "Tutorial for building J2EE Applications using JBOSS and ECLIPSE" as well. Does ECLIPSE support Struts and be able to put Struts/Web apps into an EAR with EJBs? Thanks.
Chris Montgomery
Ranch Hand

Joined: Jan 14, 2004
Posts: 141
I didn't realize an external version of Tomcat isn't necessary. Now I'm even more confused!

Definitely send me the tutorial you are referring to.

Thanks!

mont0165@yahoo.com
amit mawkin
Ranch Hand

Joined: Oct 31, 2001
Posts: 73
Calling EJB's from Struts should be just like calling EJb's from any client, what you can actually do is in your struts you can take help of helper classes whose responsibilities are to call EJB and invoke the desired functionality. You call the helper classes from your Struts Action class execute method.
I was successful in integrating Struts Eclipse, weblogic should be the same for Jboss


regards, Amit
coffee drinker and Sun Certified Programmer for Java 2 Platform
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
hey buddies the URL of that tutorial i mentioned is,

www.tusc.com.au/tutorial/html/

need help in this tutorial. please refer to this thread

and for the JBoss stuff read JBoss documentation.
- go to jboss.org
- click on documentation, you will find the link in the menu on your right
- get if for free

hope it will help.
[ September 09, 2004: Message edited by: adeel ansari ]
Martin Gross
Greenhorn

Joined: Sep 10, 2004
Posts: 11
Hi, there is also a good tutorial at devx.com Practical Guide for Integrating EJB and Struts

Martin
 
Consider Paul's rocket mass heater.
 
subject: Bringing EJB and Struts together...