aspose file tools*
The moose likes Struts and the fly likes Struts with EJB and WebService....possible!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts with EJB and WebService....possible!!!" Watch "Struts with EJB and WebService....possible!!!" New topic
Author

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

Rishi Singh
Ranch Hand

Joined: Dec 09, 2000
Posts: 321
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

Joined: Nov 08, 2000
Posts: 165
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

Joined: Dec 09, 2000
Posts: 321
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

Joined: Dec 02, 2002
Posts: 37
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.


<a href="http://husted.com/struts/book.html" target="_blank" rel="nofollow">Struts in Action</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts with EJB and WebService....possible!!!
 
Similar Threads
Exception thrown while invoke .NET service from Java client
a new method is added to the old wsdl file causing issue
Chapter 2 (HFSJ) notes , may be useful for anyone
Struts & Web Service
.Net Interoperablity issue with Xfire generated Webserivces