Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bringing EJB and Struts together...

 
Chris Montgomery
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, there is also a good tutorial at devx.com Practical Guide for Integrating EJB and Struts

Martin
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic