This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to make struts1 restful  RSS feed

 
zb cong
Ranch Hand
Posts: 416
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello

i have a struts1+ejb3 project, currently, we want to open the logic to other client except jsp client, the restful webservice may be the better solution, but i wonder if there is the better way to make the struts1 action restful?


Thanks.
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
There is no need to make Struts RESTful. What you may want to do is make it use a RESTful client to retrieve data from an underlying service layer. However, this is, strictly speaking, also unnecessary work, since you can retain your EJBs and expose them as RESTful resources, according to this article:
http://www.adam-bien.com/roller/abien/entry/simplest_possible_ejb_3_13
The Struts presentation layer may still invoke the EJBs as plain EJBs and ignore the fact that they are also exposed as RESTful web services.
You may want to rearrange the responsibilities of the EJBs and, possibly, add new EJBs etc etc, but this is left as a topic for further questions!
Best wishes!
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!