• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

struts-EJB recipe in the Recipe book

 
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 ]
 
author
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.
 
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...
 
author
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!!
 
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
 
He puts the "turd" in "saturday". Speaking of which, have you smelled this tiny ad?
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!