• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

struts-EJB recipe in the Recipe book

 
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
author
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks George!!
 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic