Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts with EJB and WebService....possible!!!

 
Rishi Singh
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
  • 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
 
Matthew X. Brown
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Ted Husted
Author
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic