Bookmark Topic Watch Topic
  • New Topic

Integration of struts2..x with Ejb3.0  RSS feed

 
selvaraju sellamuthu
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • 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
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36446
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • 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
Sheriff
Posts: 36446
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • 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
Sheriff
Posts: 36446
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • 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.
 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • 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 .
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • 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.
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
Closing this one.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!