Help coderanch get a
new server
by contributing to the fundraiser
  • 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 with EJB and WebService....possible!!!

 
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ted,
Iam currently working on a Enterprise application where the client is a thick one i.e C#>.Net and we are having jsps too, now we are having facade beans to talk to the Domain layer.The requirements is such that the the C#.Net Client should acess the various functionality through webservice and jsps should also do the same.As if of now we are deliberating with the idea of having a Request Processor bean(as a controller which further delegates the request to a Request Dispatcher ) .
I would like to know how to best integrate Struts with EJB layer and make it work for WebServices also.
Rishi Singh
SCJP,SCWCD
 
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I used MiddleGen to create a layered Struts application that is fully EJB 2.0 compliant. Middlegen is an open source project, and I found it to be outstanding(although there are some bugs-but its all workable.) I would recommend that you consider at least for a starting point, using middlegen to create a pilot app that uses struts and ejb.
 
Rishi Singh
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Matthew,
Can you give any reference url where i can read and download MiddleGen.
Thanking You,
Rishi Singh
SCJP,SCWCD
 
Author
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Generally, Struts applications should access any and all persistence layers through a facade accessed through an Action. The ActionForms bring the data up from the input forms, and the Action passes it through a facade to the persistence layer. Whether the persistence layer is a EJBs, CORBA, a web service, or plain old JDBC really doesn't matter.
For some EJB-specific advice see my Tip Use EJBs with Care.
HTH, Ted.
And I would also recommend taking a look at Middlegen before beginning a EJB project.
 
Does this tiny ad smell okay to you?
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic