• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts-EJB recipe in the Recipe book

 
manasa teja
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear authors,
Does have your book have any recipe for Struts and EJB..
it will be really good if we have a chapter explaining how to use with struts ..

what other topics does your book have? Any tips, best practices for each concept?


thanks
[ January 26, 2005: Message edited by: manasa teja ]
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think there's any difference in how one uses EJB's with Struts compared to any other MVC framework or regular servlets.
 
friso dejonge
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

any tips on ejb's ? Take a look at Rod Johnson's book Expert - One-on-One J2EE Development without EJB. This is exactly the opposite of what you might want, but it does give you valuable (and life saving) tips.

regards,
friso
 
manasa teja
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Lasse Koskela:
I don't think there's any difference in how one uses EJB's with Struts compared to any other MVC framework or regular servlets.


Mmmm.. Just want to know, whether there are plug-ins, extension points, or configuring some XMLs (like struts-config.xml) etc, when we use struts with EJB...
 
George Franciscus
author
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As stated above, there is nothing special about calling an EJB from Struts. All you need to do is call the EJB from the Action and you are away to the races - albeit a better approach is to use a delegate to abstract away the fact you are using EJB technology.

Is there a plug-in? Not that I'm aware of. If you wire Spring and Struts together then you may have what you are looking for.

However, if you wanted to call an EJB from a Struts Action, then you should cache the home interface. One option of doing this is to create your own Struts plug-in. In Struts Recipes we show you how to create a Struts plug-in to cache things. We didn't cache an EJB home interface because we didn't want to predicate the recipe on EJB knowledge, but this recipe will show you how to do it (See 8.1 Caching using a Struts plug-in).
 
manasa teja
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks George!!
 
bas duijzings
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a lot of things are out there already,

have a look

http://www.laliluna.de/integration-struts-ejb-tutorial.html

dont know if this is usefull to you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic