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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Integration of struts2..x with Ejb3.0

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Need related links for given below

1.Struts2.0+Spring2.0+Ejb3.0 Integration material
2.Struts2.0+Ejb3.0 integration material
 
author & internet detective
Posts: 42024
916
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
That's very specific. On a high level, the Struts action calls a session bean which calls the data access layer (Spring or JPA or DAOs.) You should be able to use the separate tutorials for Struts/Spring/EJB 3 for each of the relevant sections. There isn't anything magical about the integration.
 
selvaraju sellamuthu
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Thanks for reply.In our business application project
,our team decided to use strut2.0 and ejb3.0 for both web and business tier.Which pattern or service iterface is very suitable to lookup beans from Actions.
if you suggest with detail, i would be happy.
thanks in advance
 
Jeanne Boyarsky
author & internet detective
Posts: 42024
916
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator

Originally posted by selvaraju sellamuthu:
Which pattern or service iterface is very suitable to lookup beans from Actions.


A JNDI lookup is used to look up the beans from actions.
 
selvaraju sellamuthu
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Which service class or interface should be suitable for separate the business tier and web tier in distributed environment.
thanks
 
Jeanne Boyarsky
author & internet detective
Posts: 42024
916
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Selvaraju,
You can have the action call or have a helper layer that does the JNDI lookup. I prefer the later.
 
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator

Jeanne Boyarsky wrote:Selvaraju,
You can have the action call or have a helper layer that does the JNDI lookup. I prefer the later.



Extremely sorry for asking question in middle of Thread than creating a New Thread.

Jeanne Boyarsky ,

AS you said "have a helper layer that does the JNDI lookup" .This would be better .

Now i want to ask

1. Should i write this helper class as a Interceptor and integrate it with Struts 2 Framework ? OR

Do i write a individual class that will be responsible to do this operation ??

What approach will be better .

Waiting for your response .
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator

RaviNada Kiran wrote:
Extremely sorry for asking question in middle of Thread than creating a New Thread.



It's called "hijacking" and it's considered rude, as is crossposting the same question more than once.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Closing this one.
 
Men call me Jim. Women look past me to this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
    Bookmark Topic Watch Topic
  • New Topic